LaTeX export: Preserve line breaks if requested by the user
This commit is contained in:
parent
7507bdd922
commit
8715928953
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue