Re Using Org-mode macros as LaTeX macros

2024-06-01 Thread Pedro Andres Aranda Gutierrez
Hi Sebastien, maybe the idea is that you redefine the \maketitle command to fit your needs in a .tex file (maybe new_title.tex) and then #+LATEX_HEADER: \input{new_title} For this, you will need to go through the manual of the class you use for your documents. This is my way of solving this

Re: Using Org-mode macros as LaTeX macros

2024-06-01 Thread Berry, Charles
Sebastien, One way to propagate values prior to export is to use named src blocks and noweb references to them. For example, the following code: --- #+name: orga-def #+begin_src latex :exports none my old school #+end_src #+begin_src latex :noweb yes \begin{titlepage} Some custom LaTeX

Re: Using Org-mode macros as LaTeX macros

2024-06-01 Thread Sébastien Gendre
Thank you for your reply, Bruno. I need to have an Org document that could be used as easily as possible by anyone else. Sadly, having to define new Emacs function could be too much for what my school ask. Or I need to make it available publicly as an Emacs package. Bruno Barbier writes:

Re: Using Org-mode macros as LaTeX macros

2024-06-01 Thread Bruno Barbier
Hi Sébastien, Sébastien Gendre writes: > TL;DR: How can I use the Org-mode macros as LaTeX macros inside an >export LaTeX bloc ? > It looks like macros are not expanded in latex export blocks, indeed. You may define your own filter to ask Org to expand them. With the 2 functions