[Top][All Lists]
[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: |
Wed, 09 Sep 2009 11:47:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Hi Nick,
Nick Dokos wrote:
> Bastien <address@hidden> wrote:
>> Sébastien Vauban <address@hidden> 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/1b1af2e5291270e2#
>
> 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:
#+KEYWORDS:
#+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 lines
(perfectly centered, horizontally).
Is your `\maketitle' redefined?
Best regards,
Seb
--
Sébastien Vauban
- [Orgmode] How to get \\ in title or author?, Sébastien Vauban, 2009/09/07
- Re: [Orgmode] How to get \\ in title or author?, Bastien, 2009/09/08
- [Orgmode] Re: How to get \\ in title or author?, Sébastien Vauban, 2009/09/08
- Re: [Orgmode] Re: How to get \\ in title or author?, Bastien, 2009/09/08
- [Orgmode] Re: How to get \\ in title or author?, Sébastien Vauban, 2009/09/08
- Re: [Orgmode] Re: How to get \\ in title or author?, Bastien, 2009/09/08
- Re: [Orgmode] Re: How to get \\ in title or author?, Nick Dokos, 2009/09/09
- [Orgmode] Re: How to get \\ in title or author?,
Sébastien Vauban <=
- Re: [Orgmode] Re: How to get \\ in title or author?, Bastien, 2009/09/09
- [Orgmode] Re: How to get \\ in title or author?, Sébastien Vauban, 2009/09/10
- Re: [Orgmode] Re: How to get \\ in title or author?, Carsten Dominik, 2009/09/10
- Re: [Orgmode] Re: How to get \\ in title or author?, Nick Dokos, 2009/09/10
- Re: [Orgmode] Re: How to get \\ in title or author?, Nick Dokos, 2009/09/09
- Re: [Orgmode] Re: How to get \\ in title or author?, Bastien, 2009/09/09
- [Orgmode] Re: How to get \\ in title or author?, Sébastien Vauban, 2009/09/10
- Re: [Orgmode] Re: How to get \\ in title or author?, Tim Burt, 2009/09/09
- Re: [Orgmode] Re: How to get \\ in title or author?, Brian van den Broek, 2009/09/08