by trabant00 · 4y ago · 0 comments
I've tried doing my CV and some presentations in markdown cause I just didn't want to put the time to learn latex. I went markdown -> html -> pdf. I just couldn't get something satisfactory. The pains: pagination, centering, columns, image positioning, colors.
And then I took a day to learn enough latex - https://latex-beamer.com/quick-start/ - to create a presentation for work. It was a lot easier than I thought and it came out looking great. Here is the skeleton of it so you can judge how complex it is:
\documentclass{beamer}
\usepackage{hyperref}
\usetheme {teheme-name}
\title{My Title}
\subtitle{My subtitle}
\author{me@example.com}
\date{\today}
\setlength{\parindent}{4ex}
\setlength{\parskip}{1ex}
\begin{document}
\begin{section}{Title}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Contents}
\tableofcontents
\end{frame}
\end{section}\begin{section}{Some section}
\begin{frame}{Page title}
My text here
\begin{itemize}
\item one item
\item another item
\end{itemize}
\end{frame}
\end{section}\end{document}
No one should ever ask themselves "how do I do image positioning" or "how do I add pagination" when dealing with markdown. That's just not what it's good for.
Imagine having to write comments on HN using LaTeX.
Also renderable safely and in bounded time (TeX is turing complete).
> No one should ever ask themselves "how do I do image positioning" or "how do I add pagination" when dealing with markdown. That's just not what it's good for.
Meh. This is a common question for table extensions, and the full-blown image commonmark spec is a bit of a mess.
> Imagine having to write comments on HN using LaTeX.
That would be an improvement over the current state of affairs at least, though probably a tad overdone on the other side of proper complexity.
And have you ever tried to write complex tables with Latex? A nightmare!
The best approach to write structured documents in a non-WYSIWYG way is AsciiDoc. You get a clean separation between content with its semantics and styling and you have a all the features you need for the biggest technical or scientific books.
[0] https://bookdown.org/yihui/rmarkdown/ [1] https://github.com/TudorAndrei/dotfiles/blob/1b118830315cdcc...