|
From: | Max Nikulin |
Subject: | Re: [PATCH] lisp/ox-latex.el: put labels inside example blocks |
Date: | Thu, 8 Dec 2022 19:36:42 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 08/12/2022 18:39, Ihor Radchenko wrote:
hugo@heagren.com writes:The attached patch forces example environments to be printed thus: ,--- | \begin{example}\label{ex:foo} | My example here | \end{example} `---Applied onto bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=304f18cb7
Please, revert this patch. Default environment for #+begin_example is verbatim. With this patch the following PDF is generated
\label{org9283054} code for #+name: test #+begin_example code #+end_exampleIt is the reason why \label must be outside. I do not remember if line break penalty helps after \label.
[Prev in Thread] | Current Thread | [Next in Thread] |