emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: How to get \\ in title or author?
Date: Thu, 10 Sep 2009 16:27:00 +0200	[thread overview]
Message-ID: <87ocpi98p7.fsf@mundaneum.com> (raw)
In-Reply-To: 873a6wuqjl.fsf@bzg.ath.cx

Hi Nick and Bastien,

Bastien wrote:
> Nick Dokos <nicholas.dokos-VXdhtT5mjnY@public.gmane.org> 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}
\define@key{myMkTitle}{caption}[]{\def\myMkTitle@caption{#1}}
\define@key{myMkTitle}{logo}[]{\def\myMkTitle@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
            \ifthenelse{\equal{\myMkTitle@logo}{}}
            {}%
            {\includegraphics[height=2cm]{\myMkTitle@logo}} \\%
            \ifthenelse{\equal{\myMkTitle@caption}{}}
            {}%
            {\textbf{\sc{\myMkTitle@caption}}}
            \par\vspace{\stretch{2}}
            \normalfont
            {\Huge \color{my-color-document-title}\textbf{\@title}\par}%
            \vskip 5mm
            {\large \@author\par}%
            \vskip 2mm
            {\large \@date\par}%
            \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



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2009-09-10 14:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-07 12:59 How to get \\ in title or author? Sébastien Vauban
2009-09-07 22:33 ` Bastien
2009-09-08  7:50   ` Sébastien Vauban
2009-09-08  3:33     ` Bastien
2009-09-08 21:01       ` Sébastien Vauban
2009-09-09  3:33         ` Bastien
2009-09-09  5:00           ` Nick Dokos
2009-09-09  9:47             ` Sébastien Vauban
2009-09-09 10:34               ` Bastien
2009-09-10 14:30                 ` Sébastien Vauban
2009-09-10 18:02                   ` Carsten Dominik
2009-09-10 18:30                     ` Nick Dokos
2009-09-09 14:26               ` Nick Dokos
2009-09-09 14:43                 ` Bastien
2009-09-10 14:27                   ` Sébastien Vauban [this message]
2009-09-09 21:08             ` Tim Burt
2009-09-09  2:15       ` Brian van den Broek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ocpi98p7.fsf@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).