On 08/12/2022 18:39, Ihor Radchenko wrote:
h...@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_example
It is the reason why \label must be outside. I do not remember if line
break penalty helps after \label.