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 be

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: [PATCH] function and symbol for headline and olp for org-capture-templates

2024-06-01 Thread Nafiz Islam
Craig Topham has cleared me to contribute to Emacs. I have attached the latest version of my patch. > All you need to create a new symbol in local context is (let ((my-symbol > value)) ...). I don't think that will work because of lexical binding. For example: (should    (equal     "* A\n* B\n

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 h

[PATCH] org-test: Fix zone-dependent miscalculation of days of week

2024-06-01 Thread Kyle Meyer
Hello, Three clock tests are failing on my end: FAILED test-org-clock/clock-drawer-dwim (... :explanation (array-elt 35 (different-atoms (87 "#x57" "?W") (84 "#x54" "?T" FAILED test-org-clock/org-clock-timestamps-change (... :explanation (array-elt 20 (different-atoms (

Possible bug: Adding a new item to a list "a)"

2024-06-01 Thread Kepa
I have a weird behavior when trying to add a new item to an ordered list. Version: Org mode version 9.7-pre (release_N/A-N/A-a3c1a8502 @ c:/.../elpa/org-9.7pre0.20240524.175607/) Instructions for the example: Point: placed after "[...]" instead of "(point)". Send: M-ENTER Result: First line "a)..

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 chall