[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section
From: |
Max Nikulin |
Subject: |
Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section |
Date: |
Sun, 18 Sep 2022 23:14:26 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
On 18/09/2022 19:27, Juan Manuel Macías wrote:
* Section
:PROPERTIES:
:presec: \begingroup\foo
:postsec: \endgroup
:END:
Juan Manuel, can it be implemented using a derived backend that calls
the original variant of headline transcoder (`org-latex-headline') and
adds pre/post code to the returned value? I have not tried to implement
this idea, so perhaps I just have missed something obvious. Actually I
wonder if the purpose of your patch is solely convenience or you faced a
limitation with no reasonable workaround.
My only real objection is that the new keywords works for LaTeX only,
but their names are rather generic. Moreover, Org's term is "headline",
not "section". I would consider something like
- :headline_pre_latex: \begingroup\foo
- :headline_pre: :latex \begingroup\foo
By the way, are affiliated keywords a part of the following headline?
* Section One
#+attr_latex: :headline_pre \begingroup\foo
* Section Two
- [Patch] Pre-/postpend arbitrary LaTeX code to a section, Juan Manuel Macías, 2022/09/18
- Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section,
Max Nikulin <=
- Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section, Fraga, Eric, 2022/09/19
- Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section, Ihor Radchenko, 2022/09/20
- Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section, Juan Manuel Macías, 2022/09/20
- Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section, Ihor Radchenko, 2022/09/21
- Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section, Fraga, Eric, 2022/09/21
- Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section, Timothy, 2022/09/21
- Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section, Ihor Radchenko, 2022/09/22
- Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section, Daniel Fleischer, 2022/09/21
- Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section, Juan Manuel Macías, 2022/09/21
- Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section, Fraga, Eric, 2022/09/21