From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Export to latex ignores user-mail-address Date: Thu, 11 Mar 2010 23:51:32 +0530 Message-ID: <4B9934AC.2000909@gmail.com> References: <4B928706.20209@gmail.com> <204C45B9-FF30-4E33-8098-A20B56E5C67A@gmail.com> <4B93D8C7.8010503@gmail.com> <8C2DD5B2-DFA6-4214-A482-D594F94E8783@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Npn18-0006yS-0j for emacs-orgmode@gnu.org; Thu, 11 Mar 2010 13:21:54 -0500 Received: from [140.186.70.92] (port=41092 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Npn16-0006vT-M0 for emacs-orgmode@gnu.org; Thu, 11 Mar 2010 13:21:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Npn15-0002r8-4U for emacs-orgmode@gnu.org; Thu, 11 Mar 2010 13:21:52 -0500 Received: from mail-pz0-f173.google.com ([209.85.222.173]:64278) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Npn15-0002qx-09 for emacs-orgmode@gnu.org; Thu, 11 Mar 2010 13:21:51 -0500 Received: by pzk3 with SMTP id 3so191467pzk.24 for ; Thu, 11 Mar 2010 10:21:49 -0800 (PST) In-Reply-To: <8C2DD5B2-DFA6-4214-A482-D594F94E8783@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org 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 > > >