Re: [PATCH] lisp/ox-latex.el: put labels inside example blocks

2022-12-08 Thread Ihor Radchenko
Ihor Radchenko writes: >> 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 >>

Re: [PATCH] lisp/ox-latex.el: put labels inside example blocks

2022-12-08 Thread Ihor Radchenko
Max Nikulin writes: >> 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 >

Re: [PATCH] lisp/ox-latex.el: put labels inside example blocks

2022-12-08 Thread Max Nikulin
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/co

Re: [PATCH] lisp/ox-latex.el: put labels inside example blocks

2022-12-08 Thread Ihor Radchenko
h...@heagren.com writes: > The attached patch forces example environments to be printed thus: > > ,--- > | \begin{example}\label{ex:foo} > | My example here > | \end{example} > `--- > > This solves the problem. > > The logic/conditions for when to print a label, and how it is generated > rem