emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Export to latex ignores user-mail-address
@ 2010-03-06 16:47 Jambunathan K
  2010-03-07 15:24 ` Carsten Dominik
  0 siblings, 1 reply; 8+ messages in thread
From: Jambunathan K @ 2010-03-06 16:47 UTC (permalink / raw)
  To: emacs-orgmode

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).

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Export to latex ignores user-mail-address
  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
  0 siblings, 1 reply; 8+ messages in thread
From: Carsten Dominik @ 2010-03-07 15:24 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Export to latex ignores user-mail-address
  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
  0 siblings, 2 replies; 8+ messages in thread
From: Jambunathan K @ 2010-03-07 16:48 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

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?

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
>
>
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Export to latex ignores user-mail-address
  2010-03-07 16:48   ` Jambunathan K
@ 2010-03-09 16:26     ` Carsten Dominik
  2010-03-09 17:10     ` Carsten Dominik
  1 sibling, 0 replies; 8+ messages in thread
From: Carsten Dominik @ 2010-03-09 16:26 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Hi Jambunathan,

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?


You can do this.

1. pull again from the git repository
2. Use this code:

     #+AUTHOR: Andrew Roberts\\\texttt{{{{email}}}}

HTH

- Carsten

>
> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Export to latex ignores user-mail-address
  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
  1 sibling, 1 reply; 8+ messages in thread
From: Carsten Dominik @ 2010-03-09 17:10 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode


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}}}}}


>
> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Export to latex ignores user-mail-address
  2010-03-09 17:10     ` Carsten Dominik
@ 2010-03-11 18:21       ` Jambunathan K
  2010-03-11 19:32         ` Jambunathan K
  0 siblings, 1 reply; 8+ messages in thread
From: Jambunathan K @ 2010-03-11 18:21 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

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
>
>
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Export to latex ignores user-mail-address
  2010-03-11 18:21       ` Jambunathan K
@ 2010-03-11 19:32         ` Jambunathan K
  2010-03-12 14:21           ` Carsten Dominik
  0 siblings, 1 reply; 8+ messages in thread
From: Jambunathan K @ 2010-03-11 19:32 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode


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

I would like to add the following observation as well -

---> org input <---
#+AUTHOR: Jambunathan K\cr\href{mailto:{{{EMAIL}}}}{{{{EMAIL}}}}

---> actual tex output <---
\author{Jambunathan 
K\cr\href{mailto:kjambunathan@gmail.com}\{kjambunathan@gmail.com\}}

The above tex snippet has the effect of getting the "Url Box" wrong.

I was hoping to produce the following line -
\author{Jambunathan 
K\cr\href{mailto:kjambunathan@gmail.com}{kjambunathan@gmail.com}}

Generally speaking, macro expansion in author string behaves strangely.

Thanks,
Jambunathan K.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Export to latex ignores user-mail-address
  2010-03-11 19:32         ` Jambunathan K
@ 2010-03-12 14:21           ` Carsten Dominik
  0 siblings, 0 replies; 8+ messages in thread
From: Carsten Dominik @ 2010-03-12 14:21 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Fixed as well, thanks.

- Carsten

On Mar 11, 2010, at 8:32 PM, Jambunathan K wrote:

>
>> My gut feelings is that although macros are enabled for author  
>> string, the parsing is broken when the invocation spans multiple  
>> lines.
>
> I would like to add the following observation as well -
>
> ---> org input <---
> #+AUTHOR: Jambunathan K\cr\href{mailto:{{{EMAIL}}}}{{{{EMAIL}}}}
>
> ---> actual tex output <---
> \author{Jambunathan K\cr\href{mailto:kjambunathan@gmail.com}\{kjambunathan@gmail.com 
> \}}
>
> The above tex snippet has the effect of getting the "Url Box" wrong.
>
> I was hoping to produce the following line -
> \author{Jambunathan K\cr\href{mailto:kjambunathan@gmail.com}{kjambunathan@gmail.com 
> }}
>
> Generally speaking, macro expansion in author string behaves  
> strangely.
>
> Thanks,
> Jambunathan K.
>
>

- Carsten

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-03-12 14:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-03-11 19:32         ` Jambunathan K
2010-03-12 14:21           ` Carsten Dominik

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).