[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}
From: |
Rasmus |
Subject: |
Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}} |
Date: |
Thu, 20 Mar 2014 00:25:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Luke Crook <address@hidden> 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 \
# address@hidden \
# address@hidden \
# address@hidden \
# \\maketitle"
# End:
--
In theory, practice and theory are the same. In practice they are not
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}, (continued)
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}, Bastien, 2014/03/18
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}, Nicolas Goaziou, 2014/03/19
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}, Bastien, 2014/03/19
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}, Nicolas Goaziou, 2014/03/19
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}, Bastien, 2014/03/19
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}, Nicolas Goaziou, 2014/03/19
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}, Bastien, 2014/03/21
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}, Eric S Fraga, 2014/03/19
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}, Rasmus, 2014/03/19
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle} {{{{TITLE}}}}, Luke Crook, 2014/03/19
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}},
Rasmus <=
- Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle} {{{{TITLE}}}}, Luke Crook, 2014/03/19