LaTeX export: Preserve line breaks if requested by the user

This commit is contained in:
Carsten Dominik 2009-10-29 09:15:28 +01:00
parent 7507bdd922
commit 8715928953
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,8 @@
* org-latex.el (org-export-latex-fontify): Apply verbatim
emphasis.
(org-export-latex-make-header): Insert \obeylines if line breaks
should be preserved.
* org-exp.el (org-export-protect-verbatim): Add an
`org-verbatim-emph' property to such text.

View File

@ -1007,7 +1007,9 @@ OPT-PLIST is the options plist for current buffer."
(format "\\setcounter{tocdepth}{%s}\n\\tableofcontents\n\\vspace*{1cm}\n"
(min toc (plist-get opt-plist :headline-levels))))
(toc (format "\\setcounter{tocdepth}{%s}\n\\tableofcontents\n\\vspace*{1cm}\n"
(plist-get opt-plist :headline-levels))))))))
(plist-get opt-plist :headline-levels)))))
(when (plist-get opt-plist :preserve-breaks)
"\\obeylines\n"))))
(defun org-export-latex-first-lines (opt-plist &optional beg end)
"Export the first lines before first headline.