Hi all, I don't know if the following scenario usually appears in the workflow of other Org users as well. Otherwise, I think this patch could be ignored. In my workflow I often need to pre- or postpend some LaTeX code immediately before or after a section. Consider the following example: ------------------ * A section Lorem ipsum #+latex: \foo * Another section Lorem ipsum ----------------- The \foo command affects the second section, but for Org it belongs to the content of the first section. If I comment this section out or mark it as non-exportable, then the LaTeX code has no effect. I think a simple solution could be to have the PRESEC AND POSTSEC properties to prepend or postpend arbitrary code to a section. These properties could be extended with PRESEC+ and POSTSEC+. An example of use: * Section :PROPERTIES: :presec: \begingroup\foo :postsec: \endgroup :END: ... Best regards, Juan Manuel -- -- ------------------------------------------------------ Juan Manuel MacĂ­as https://juanmanuelmacias.com https://lunotipia.juanmanuelmacias.com https://gnutas.juanmanuelmacias.com