>>> "ESF" == Eric S Fraga <e.fr...@ucl.ac.uk> writes:
> On Wednesday, 17 Nov 2021 at 14:58, Uwe Brauer wrote: >> Right, but how do you do this automatically? > John's given you an answer along the lines of what you wanted but I > would suggest that sometimes we over-complicate things? Hm not sure > LaTeX needs help because it's a lot more verbose. Org, however, has a > very simple markup ("It's all text" ;-)) and just typing what you want > is often quicker! Instead of key bindings to remember, I know I can > simply type > RET * <<label>> heading RET > and I'm done... Well you should try auctex+reftex, it is just easier and (faster) if all this is done automatically. In auctex, you can also do this as you describe and I found that terrible and was very relived to find out about reftex, that insert labels automatically (and systematically) > Likewise, typing the reference is simply typing [[label]]. > And both bits above benefit from electric-pair-mode... > But I'm glad you found your solution in any case! There is just a small problem with this approach. When exported to latex ** Hello :PROPERTIES: :CUSTOM_ID: sec:wo :END: Is exported as \subsection{Hello} \label{sec:wo} While ** That <<sec:That>> Is exported as \subsection{That \label{sec:That}} \label{sec:org213d0b6} The first one is much nicer and more in line with the logic of latex, the second however is not bad (since it generates correct pdf files when compiled) I might think how to generalize John's approach. Uwe
smime.p7s
Description: S/MIME cryptographic signature