Luke Crook <l...@balooga.com> writes: > Rasmus <rasmus <at> gmx.us> writes: > >> >> I've used this snip to recover such fields >> >> \makeatletter >> \let\Title\ <at> title >> \let\Author\ <at> author >> \let\Date\ <at> date >> \makeatother >> >> Obviously, this is only good for LaTeX. >> > > How would I implement this? Is including in the .tex file sufficient? > Having these in the Org-mode file itself? When I try in the .tex file, it > appears almost verbatim as;
For some reason your "@" (the sign from email address) becomes "<at>". It needs to be "@". See the gmane version if you are in doubt. Here's a working example. #+TITLE: title #+AUTHOR: name #+LATEX: \newcommand{\myname}{\Author} Remember to escape latex macros like ~\myname~ as ~@@latex:\myname@@~ in Org to get "\myname" * make some latex commands :noexport: # Local Variables: # org-latex-title-command: "\\makeatletter\n \ # \\let\\Title\\@title\n \ # \\let\\Author\\@author\n \ # \\let\\Date\\@date\\makeatother\n \ # \\maketitle" # End: -- In theory, practice and theory are the same. In practice they are not