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: Tue, 08 Sep 2009 09:50:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Hi Bastien,

Bastien wrote:
> Sébastien Vauban <address@hidden> writes:
>
>> I have a small problem when I want to put a double backslash in the list of
>> authors, for example.
>>
>> #+AUTHOR:    Main author \\ Second one
>>
>> gets exported in LaTeX as
>>
>> \author{Main author \\textbackslash{} Second one}
>>
>> What's not the expected result...
>>
>> Is this a bug?  Is there a workaround?
>
> The workaround I can think of is to use \linebreak instead of \\.
> "\\" really means "new paragraph" and it doesn't really make sense in the
> author or title environment, does it?

Of course, starting a new paragraph has no sense. But (AFAIK) -- unlike `\par'
-- `\\' does mean "start a new line", doesn't it?

Before sending this question, I had already tried a workaround with
`\newline', but though the authors and the title were on 2 lines, their
centering on the title page was completely broken.

But your solution using `\linebreak':

--8<---------------cut here---------------start------------->8---
#+TITLE:     Main title \linebreak Subtitle
#+AUTHOR:    Main author \linebreak Second one
--8<---------------cut here---------------end--------------->8---

DOES WORK. Thanks for your precious help!

I'm not sure to understand the subtle differences between `\\', `\newline' and
`\linebreak', though...

Best regards,
  Seb

-- 
Sébastien Vauban





reply via email to

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