On Saturday, 11 Mar 2017 at 23:26, Doyley, Marvin M. wrote: > Hi John, > > I like the idea of special block that definitely solve the multi-line > problem. But I would need to write an latex exporter for the block, > how challenging would that be ? I am still learning lisp :)
You could use the mdframed LaTeX package, as in the attached example. Of course, this does not highlight the paragraphs in the org file but only in the output. Org will export any #+begin_XXX ... #+end_XXX to \begin{XXX}...\end{XXX} in LaTeX export. -- Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D)
t.pdf
Description: Adobe PDF document
% Created 2017-03-12 Sun 14:09 % Intended LaTeX compiler: pdflatex \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{grffile} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{textcomp} \usepackage{amssymb} \usepackage{capt-of} \usepackage{hyperref} \usepackage{xcolor} \usepackage{tikz} \usepackage{soul} \usepackage{listings} \usepackage[version=3]{mhchem} \usepackage{doi} \usepackage{amsmath} \usepackage[british, english]{babel} \usepackage[backgroundcolor=yellow!20!white]{mdframed} \author{Eric S Fraga} \date{\today} \title{} \hypersetup{ pdfauthor={Eric S Fraga}, pdftitle={}, pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 26.0.50.1 (Org mode 9.0.4)}, pdflang={English}} \begin{document} \section{highlighting text} \label{sec:org4ba738a} This is \hl{some text} that should be highlighted. \begin{mdframed} Here are two paragraphs that should be highlighted. This is the second of them. \end{mdframed} And we continue with normal text. \end{document}
#+options: toc:nil #+latex_header: \usepackage[backgroundcolor=yellow!20!white]{mdframed} * highlighting text This is +some text+ that should be highlighted. #+begin_mdframed Here are two paragraphs that should be highlighted. This is the second of them. #+end_mdframed And we continue with normal text.
signature.asc
Description: PGP signature