Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-21 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: What about excluding most tempting locations instead? I pushed a change, mixing this suggestion and the suggestion to be more explicit about where it is allowed: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=343a6dd0 Luke, let's

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Eric S Fraga
Luke Crook l...@balooga.com writes: I tried creating a custom class and then tried creating a custom style. But I found the easiest to be the following; #+AUTHOR: author #+LATEX_HEADER: \newcommand{\orgauthor}{author} [...] Works very well, apart from the duplication of author, email,

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Rasmus
Eric S Fraga e.fr...@ucl.ac.uk writes: Luke Crook l...@balooga.com writes: I tried creating a custom class and then tried creating a custom style. But I found the easiest to be the following; #+AUTHOR: author #+LATEX_HEADER: \newcommand{\orgauthor}{author} [...] Works very well,

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Bastien
Hi Nicolas, thanks for the thorough answer, I agree. Can we sum it up as Macros are only available in headlines and paragraphs, for the sake of clarifying the Macro section in the manual? Also, it seems that macros are only fontified in headlines and paragraphs, which matches the short

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Nicolas Goaziou
Bastien b...@gnu.org writes: thanks for the thorough answer, I agree. Champagne! ;) Can we sum it up as Macros are only available in headlines and paragraphs, for the sake of clarifying the Macro section in the manual? The manual states: in paragraphs, verse blocks, table cells and some

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Bastien
Nicolas Goaziou n.goaz...@gmail.com writes: Bastien b...@gnu.org writes: thanks for the thorough answer, I agree. Champagne! ;) Hehe. Can we sum it up as Macros are only available in headlines and paragraphs, for the sake of clarifying the Macro section in the manual? The manual

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Luke Crook
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?

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Luke Crook
Eric S Fraga e.fraga at ucl.ac.uk writes: You could always use the new command in the org directive, assuming you only use LaTeX export: #+LATEX_HEADER: \newcommand{\orgauthor}{author} #+AUTHOR: \orgauthor This would avoid duplication. Brilliant!! Thank you.

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Nicolas Goaziou
Bastien b...@altern.org writes: Nicolas Goaziou n.goaz...@gmail.com writes: As you noticed, secondary strings are omitted in the manual, but still valid locations: titles in headlines or inlinetasks, inline footnotes, and plain list item tags. Any reason not to mention secondary strings?

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-19 Thread Rasmus
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

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-18 Thread Bastien
Hi Luke, Luke Crook l...@balooga.com writes: #+LATEX_HEADER: \newcommand{\orgtitle}TITLE My understanding is that Org's macros cannot be used within #+... options. HTH, -- Bastien

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-18 Thread Luke Crook
Bastien bzg at gnu.org writes: Hi Luke, Luke Crook luke at balooga.com writes: #+LATEX_HEADER: \newcommand{\orgtitle}TITLE My understanding is that Org's macros cannot be used within #+... options. HTH, Bastien, thanks. That would certainly explain it. I think I

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-18 Thread Luke Crook
I tried creating a custom class and then tried creating a custom style. But I found the easiest to be the following; #+AUTHOR: author #+LATEX_HEADER: \newcommand{\orgauthor}{author} #+EMAIL: email #+LATEX_HEADER: \newcommand{\orgemail}{email} #+TITLE: Title #+LATEX_HEADER:

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-18 Thread Bastien
Luke Crook l...@balooga.com writes: It would be great if org-mode added support for substitution to the #+ fields. Nicolas, what do you think? -- Bastien

[O] #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}}

2014-03-17 Thread Luke Crook
I'm looking for a quick and dirty way to use the org-mode variables within Latex. I thought the following might work; #+TITLE: A nice title #+LATEX_HEADER: \newcommand{\orgtitle}TITLE And then in the .tex file; \orgtitle{} Suggestions? Thanks