On 3/9/2010 10:40 PM, Carsten Dominik wrote:

On Mar 7, 2010, at 5:48 PM, Jambunathan K wrote:

Hi  Carsten

What can I do to get the email address automagically as in the header as below:

... [Snipped from Wikibook] ....

\title{How to Structure a \LaTeX{} Document}
\author{Andrew Roberts\\
\texttt{an...@comp.leeds.ac.uk}}
\date{\today}
\maketitle

Ascii export does plugin the email-address based on email property. Shouldn't (org-export-latex-make-header ...) test the email property and emit the required latex line?

Maybe this will work:

AUTHOR: Andrew Roberts\newline\texttt{{{{EMAIL}}}}}



On 3/10/2010 8:34 AM, Nick Dokos wrote:
Andrew Roberts\cr\texttt{{{{EMAIL}}}}

Thanks for this suggestion. This satisfactorily addresses the concern that I had raised.

For completion's sake, let me register my observations here.

I was trying to get in a newline (in sort of a roundabout way).

Facts
1. Author string can have macros
2. Macro arguments allow linebreaks to be reproduced verbatim in exported files

Putting 1 & 2 together, I had a partial success.

Variant-1:

----> org-input <----

#+MACRO: verbatim $1
#+AUTHOR: {{{verbatim(Jambunathan K)}}}
* Section

  {{{verbatim(Jambunathan K)}}}

  {{{verbatim(Jambunathan
          K)}}}

 ---> tex outut <---
...
\author{Jambunathan K}
...
\section{Section}
\label{sec-1}
  Jambunathan K
  Jambunathan
        K
...

This is a well-formed tex file. Key thing is it validates facts 1 & 2 above.

Variant-2:

---> org input <---

#+MACRO: verbatim $1
#+AUTHOR:   {{{verbatim(Jambunathan
          K)}}}

* Section
  {{{verbatim(Jambunathan K)}}}
  {{{verbatim(Jambunathan
          K)}}}

---> tex output <---
...
\author{{\{{verbatim(Jambunathan}
...
\section{Section}
\label{sec-1}
  Jambunathan K
  Jambunathan
        K

This is not a well-formed latex file.

My gut feelings is that although macros are enabled for author string, the parsing is broken when the invocation spans multiple lines.

Thanks,
Jambunathan K









Btw, I would like to thank you and all other contributors for making available this wonderful module.

Jambunathan K.


On 3/7/2010 8:54 PM, Carsten Dominik wrote:
Hi Jambunathan,

that is because \maketitle does not show an email address.

- Carsten

On Mar 6, 2010, at 5:47 PM, Jambunathan K wrote:

I am seeing latex export honors user-full-name but not user-mail-address.

The document header goes something like.

#+TITLE:    My Title
#+DESCRIPTION:
#+STARTUP: showall
#+LaTeX: \setlength\parindent{0.0in}
#+LaTeX: \setlength\parskip{0.1in}

orgmode-version is 6.33x -  Emacs 23.1.91.1 (i386-mingw-nt5.1.2600).






_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten





- Carsten



- Carsten






_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to