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: Wed, 09 Sep 2009 11:47:18 +0200 Message-ID: <873a6wmoux.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> 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, Nick Dokos wrote: > Bastien wrote: >> S=C3=A9bastien Vauban writes: >> >>>> Maybe \linebreak is less context-sensitive than \newline, which would >>>> mean that there are more contexts (like \title and \author) in which it >>>> behaves as expected. Just a guess. >>> >>> I've asked the question on FCTT (fr.comp.text.tex) and already got an >>> answer of Maneul Pegourie-Gonnard (who is expert on that matter): >>> >>> http://groups.google.fr/group/fr.comp.text.tex/browse_thread/thread/1b1= af2e5291270e2# > > Bastien, there is still one problem, I think, with > #+AUTHOR: > > \author{one \\ two} > > and > > \author{one \linebreak two} > > behave differently (the \linebreak has no effect), so if one wants the > first behavior, the exporter's penchant to change \\ to > \\textbackslash{} will not allow it. I'm not sure why \title and \author > behave differently: I guess it's because \author is expanded inside a > \tabular, whereas \title is not. For sure, it'd be better if `\\' wasn't converted at all when exporting to LaTeX (for the ones in the TITLE and AUTHOR meta-tags, at least). But, in my case, --8<---------------cut here---------------start------------->8--- #+TITLE: YYY \linebreak XXX #+AUTHOR: YYY \linebreak XXX #+DATE: 2009-09-09 #+DESCRIPTION:=20 #+KEYWORDS:=20 #+LANGUAGE: en [...] --8<---------------cut here---------------end--------------->8--- is correctly converted into: --8<---------------cut here---------------start------------->8--- % Created 2009-09-09 Wed 11:37 \documentclass[final,book]{myreport} % <-- our company class \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage{longtable} \usepackage{soul} \usepackage{xcolor} \usepackage{listings} \title{YYY \linebreak XXX} \author{YYY \linebreak XXX} \date{2009-09-09} \begin{document} [...] --8<---------------cut here---------------end--------------->8--- and the PDF output of both the Title line and the Author line is on two lin= es (perfectly centered, horizontally). Is your `\maketitle' redefined? Best regards, 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