emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: How to get \\ in title or author?


From: Sébastien Vauban
Subject: [Orgmode] Re: How to get \\ in title or author?
Date: Thu, 10 Sep 2009 16:27:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Hi Nick and Bastien,

Bastien wrote:
> Nick Dokos <address@hidden> writes:
>
>> The org->latex translation is no problem, but the resulting latex file
>> does not give me a two-line authorship, either through pdflatex (tested
>> with xpdf) or through latex->dvi (tested with xdvi) and then through
>> dvi->ps (tested with gv).
>
> Yes, \newline and \linebreak work in \title (with different outputs) but
> not in \author.   \\ works in \author.

I confirm this as well...

Though, it works (authors on two lines) with my company-class:

--8<---------------cut here---------------start------------->8---
\documentclass[11pt]{myreport}
--8<---------------cut here---------------end--------------->8---

and it's OK for me...

For your info (even if that does not change anything to the subject here),
here is the new definition of my title page:

--8<---------------cut here---------------start------------->8---
\RequirePackage{keyval}
address@hidden@caption{#1}}
address@hidden@logo{#1}}
\setkeys{myMkTitle}{caption={}, logo={}} % preset keys with a default value,
                                         % so that above variables are created
\renewcommand{\maketitle}[1][]{%
    \setkeys{myMkTitle}{#1}
    \null
    \thispagestyle{empty}%
    \begin{changemargin}{-3.5cm}{0cm}
        \begin{center}
            \leavevmode
            address@hidden
            {}%
            address@hidden \\%
            address@hidden
            {}%
            address@hidden
            \par\vspace{\stretch{2}}
            \normalfont
            {\Huge address@hidden
            \vskip 5mm
            {\large address@hidden
            \vskip 2mm
            {\large address@hidden
            \par\vspace{\stretch{3}}
            \includegraphics[height=2cm]{MissionCriticalIT}
        \end{center}%
    \end{changemargin}
    \null
    \clearpage
}
--8<---------------cut here---------------end--------------->8---

My "maketitle" accepts key-val pairs, such as:

--8<---------------cut here---------------start------------->8---
\maketitle[logo=LaTeX2e, caption=LaTeX]
--8<---------------cut here---------------end--------------->8---

to have both the "LaTeX2e" figure and the "LaTeX" string outputted on the top
of the title page (for client reports).

Seb

-- 
Sébastien Vauban





reply via email to

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