Hi Bastien,

Bastien wrote:
> Sébastien Vauban <wxhgmqzgw...@spammotel.com> 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



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

Reply via email to