[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] lisp/ox-latex.el: put labels inside example blocks
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH] lisp/ox-latex.el: put labels inside example blocks |
Date: |
Thu, 08 Dec 2022 12:46:15 +0000 |
Max Nikulin <manikulin@gmail.com> 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
>
> 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.
Oops. You are indeed right.
Reverted.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>