From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: How to get \\ in title or author? Date: Thu, 10 Sep 2009 16:27:00 +0200 Message-ID: <87ocpi98p7.fsf@mundaneum.com> References: <87ocpmc3mk.fsf@mundaneum.com> <87tyze4c7b.fsf@bzg.ath.cx> <87eiqhc1tt.fsf@mundaneum.com> <877hwadsb0.fsf@bzg.ath.cx> <87my55rw1b.fsf@mundaneum.com> <878wgou706.fsf@bzg.ath.cx> <23362.1252472459@gamaville.dokosmarshall.org> <873a6wmoux.fsf@mundaneum.com> <5605.1252506388@gamaville.dokosmarshall.org> <873a6wuqjl.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Nick and Bastien, Bastien wrote: > Nick Dokos 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=3D{}, logo=3D{}} % preset keys with a default v= alue, % so that above variables are crea= ted \renewcommand{\maketitle}[1][]{% \setkeys{myMkTitle}{#1} \null \thispagestyle{empty}% \begin{changemargin}{-3.5cm}{0cm} \begin{center} \leavevmode \ifthenelse{\equal{\myMkTitle@logo}{}} {}% {\includegraphics[height=3D2cm]{\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=3D2cm]{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=3DLaTeX2e, caption=3DLaTeX] --8<---------------cut here---------------end--------------->8--- to have both the "LaTeX2e" figure and the "LaTeX" string outputted on the t= op of the title page (for client reports). Seb --=20 S=C3=A9bastien 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