I have a large number of org-mode files where I took my class notes. I would like to export them as PDF files.
However, I like to take notes as in the following example:
#+LaTeX_HEADER: \newcommand\RR{\mathbb{R}}
#+LaTeX_HEADER: \newcommand{\norm}[1]{\left\lVert#1\right\rVert}
* Johnson-Lindenstrauss
** concentration on projection on first $k$ coordinates
$u \in S^{d-1}$ uniform, think $u \sim N(0, I)$, but normalized
each coordinate concentrates around $\frac{1}{d}$
$g : \RR^d \to \RR^k$ projection to first $k$ coordinates
then if $L = \mathbb E \norm{g(u)}^2$, then $L \sim \frac{k}{d}$
and the concentration is very strong:
$\mathbb P [L \ge \beta \frac{k}{d}] \le \exp(\frac{k}{2} (1 - \beta + \log \beta) )$
When read with org-latex-preview
, it is very readable.
The issue is, when exported to pdf, it loses all readability:
How can I enhance the pdf export to insert linebreaks, and maybe even to render the equations which are in their own lines as if they were in an align
environment?
Can I insert some parser before the export?
The pdf output format is not crucial, I just want to be able to send these notes to people who don't use org-mode.
template.org
so your example is self-contained? Thanks! If it is too long, then just add what's needed to compile:\RR
and\norm
is what I've hit so far. – NickD Dec 23 '20 at 22:53$$
on longer equations will get you proper equation environments. – Tyler Dec 23 '20 at 23:54