emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] latex export - title placement


From: Thomas S. Dye
Subject: Re: [O] [PATCH] latex export - title placement
Date: Sat, 28 May 2011 07:27:11 -1000

Sebastian Hofer <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]