From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: [PATCH] latex export - title placement Date: Sat, 28 May 2011 07:27:11 -1000 Message-ID: References: <87wrhbdmjk.wl%sebhofer@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQNIE-0002p2-0T for emacs-orgmode@gnu.org; Sat, 28 May 2011 13:27:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQNIC-0002Wr-QQ for emacs-orgmode@gnu.org; Sat, 28 May 2011 13:27:17 -0400 Received: from oproxy7-pub.bluehost.com ([67.222.55.9]:43084) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QQNIC-0002Wj-IL for emacs-orgmode@gnu.org; Sat, 28 May 2011 13:27:16 -0400 In-Reply-To: <87wrhbdmjk.wl%sebhofer@gmail.com> (Sebastian Hofer's message of "Sat, 28 May 2011 14:42:07 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Hofer Cc: emacs-orgmode@gnu.org Sebastian Hofer writes: > Hi all, > > This patch addresses the problem of ambiguous conventions for the > placement of the title related macros (\author, \date,...) with > respect to the main document body in different latex classes. It > introduces the following changes: > > * org-exp.el: > - added the following options: > - title-position (tpos) > - with-title (wtitle) > - with-author (wauth) > - with-date (wdate) > - with-maketitle (wmtitle) > > * org-latex.el: > - implemented handling of new options (see above): > - title-position controls placement of \title, \author, \date; > possible values are "b" = before \begin{document}, > any other values default to after \begin{document} > - with-* controls if the corresponding macro is exported at all > this can be convenient for more complex titles (e.g. several > authors including affiliations,...) > > The patch seems to work for me so far. What do you all think? IMO it > would be useful to integrate this, as it gives slightly more control > over the export process. Of course one might want to think about > better option names. The diff is done against commit > bc161ded3693f752616dcd247fc9d638789025ee. > > Let me briefly describe my current use case: > I disable all commands except \title, use babel to created a title.tex > file (including several authors and affiliations) by tangling latex > code and then include the file (into the main body of the document, > not the preamble). That's the only decent way I've found to do this, > if anyone knows an easier way (I have the feeling that I might be > overlooking an obvious solution) please let me know! > > Cheers > Sebastian > > Aloha Sebastian, Your patch should prove useful in the situation where one has to use a particular class file that requires \title and friends to be declared in the body of the document rather than the preamble. That functionality is a welcome addition to the LaTeX exporter, IMO. Another way to achieve your current use case, IIUC, which might or might not seem easier, is to redefine \maketitle along the lines suggested by Nick Dokos (see http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-11_2). All the best, Tom -- Thomas S. Dye http://www.tsdye.com