From: Jambunathan K <kjambunathan@gmail.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Export to latex ignores user-mail-address
Date: Thu, 11 Mar 2010 23:51:32 +0530 [thread overview]
Message-ID: <4B9934AC.2000909@gmail.com> (raw)
In-Reply-To: <8C2DD5B2-DFA6-4214-A482-D594F94E8783@gmail.com>
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{andyr@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
>
>
>
next prev parent reply other threads:[~2010-03-11 18:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-06 16:47 Export to latex ignores user-mail-address Jambunathan K
2010-03-07 15:24 ` Carsten Dominik
2010-03-07 16:48 ` Jambunathan K
2010-03-09 16:26 ` Carsten Dominik
2010-03-09 17:10 ` Carsten Dominik
2010-03-11 18:21 ` Jambunathan K [this message]
2010-03-11 19:32 ` Jambunathan K
2010-03-12 14:21 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B9934AC.2000909@gmail.com \
--to=kjambunathan@gmail.com \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).