Eraldo Helal <[email protected]> wrote:
> When I export an org file like the following to pdf:
> test.org
> > line1
> > line2
> > line3
>
> what I get is:
> test.pdf
> > line1 line2 line3
>
> however, I would like to get the following in the pdf:
> test.pdf
> > line1
> > line2
> > line3
>
> How can I get pdf export to keep my org newlines?
> Remark: I do have "\n:t" set in my options line.
>
org-to-pdf is really org-to-latex-to-pdf, and generally
speaking[1] newlines in latex are not significant. One way
to make them significant is
line1\\
line2\\
line3
Another might be
#+LATEX: \obeylines { %}
line1
line2
line3
#+LATEX: }
The %} might or might not be necessary to prevent the org LaTeX exporter
from complaining, but it's a useful workaround for an area that has had
problems in the past.
HTH,
Nick
[1] with exceptions, e.g. paragraph demarcation.
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode