* \\ in headlines
@ 2015-05-06 11:58 Vikas Rawal
2015-05-06 16:14 ` Ken Mankoff
2015-05-06 16:39 ` Rasmus
0 siblings, 2 replies; 6+ messages in thread
From: Vikas Rawal @ 2015-05-06 11:58 UTC (permalink / raw)
To: org-mode mailing list
Isn’t \\ in headlines expected to cause a line break?
It gets exported in LaTeX to $\backslash$
Is this intended behaviour?
Thanks,
Vikas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \\ in headlines
2015-05-06 11:58 \\ in headlines Vikas Rawal
@ 2015-05-06 16:14 ` Ken Mankoff
2015-05-06 16:39 ` Rasmus
2015-05-06 23:59 ` Vikas Rawal
2015-05-06 16:39 ` Rasmus
1 sibling, 2 replies; 6+ messages in thread
From: Ken Mankoff @ 2015-05-06 16:14 UTC (permalink / raw)
To: Vikas Rawal; +Cc: org-mode mailing list
Recent update means you have to put it in a macro...
#+TITLE: Foo @@latex:\\@@ Bar
Or:
#+MACRO: NEWLINE @@latex:\\@@ @@html:<br>@@
#+TITLE: Foo {{{NEWLINE}}} Bar
https://emacs.stackexchange.com/questions/255/new-line-in-title-of-an-org-mode-exported-html-document
-k.
On 2015-05-06 at 07:58, Vikas Rawal <vikaslists@agrarianresearch.org> wrote:
> Isn’t \\ in headlines expected to cause a line break?
>
> It gets exported in LaTeX to $\backslash$
>
> Is this intended behaviour?
>
> Thanks,
>
> Vikas
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \\ in headlines
2015-05-06 16:14 ` Ken Mankoff
@ 2015-05-06 16:39 ` Rasmus
2015-05-06 23:59 ` Vikas Rawal
1 sibling, 0 replies; 6+ messages in thread
From: Rasmus @ 2015-05-06 16:39 UTC (permalink / raw)
To: emacs-orgmode
Ken Mankoff <mankoff@gmail.com> writes:
> Or:
> #+MACRO: NEWLINE @@latex:\\@@ @@html:<br>@@
> #+TITLE: Foo {{{NEWLINE}}} Bar
For some instances of "foo" and "bar", this may be a nicer solution:
#+title: foo
#+subtitle: bar
--
. . . The proofs are technical in nature and provides no real understanding
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \\ in headlines
2015-05-06 11:58 \\ in headlines Vikas Rawal
2015-05-06 16:14 ` Ken Mankoff
@ 2015-05-06 16:39 ` Rasmus
2015-05-06 22:09 ` Nicolas Goaziou
1 sibling, 1 reply; 6+ messages in thread
From: Rasmus @ 2015-05-06 16:39 UTC (permalink / raw)
To: emacs-orgmode
Vikas Rawal <vikaslists@agrarianresearch.org> writes:
> Isn’t \\ in headlines expected to cause a line break?
(member 'line-break (org-element-restriction 'headline)) => nil
I don't know the rational.
—Rasmus
--
May the Force be with you
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \\ in headlines
2015-05-06 16:39 ` Rasmus
@ 2015-05-06 22:09 ` Nicolas Goaziou
0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2015-05-06 22:09 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
Hello,
Rasmus <rasmus@gmx.us> writes:
> Vikas Rawal <vikaslists@agrarianresearch.org> writes:
>
>> Isn’t \\ in headlines expected to cause a line break?
>
> (member 'line-break (org-element-restriction 'headline)) => nil
>
> I don't know the rational.
Because, in Org, line breaks can only happen at the end of line, and
headlines are only 1 line long.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \\ in headlines
2015-05-06 16:14 ` Ken Mankoff
2015-05-06 16:39 ` Rasmus
@ 2015-05-06 23:59 ` Vikas Rawal
1 sibling, 0 replies; 6+ messages in thread
From: Vikas Rawal @ 2015-05-06 23:59 UTC (permalink / raw)
To: Ken Mankoff; +Cc: org-mode mailing list
> On 06-May-2015, at 9:44 pm, Ken Mankoff <mankoff@gmail.com> wrote:
>
>
> Recent update means you have to put it in a macro...
>
> #+TITLE: Foo @@latex:\\@@ Bar
>
> Or:
> #+MACRO: NEWLINE @@latex:\\@@ @@html:<br>@@
> #+TITLE: Foo {{{NEWLINE}}} Bar
>
> https://emacs.stackexchange.com/questions/255/new-line-in-title-of-an-org-mode-exported-html-document
>
This solution works for headlines as well.
Thanks.
Vikas
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-05-06 23:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-06 11:58 \\ in headlines Vikas Rawal
2015-05-06 16:14 ` Ken Mankoff
2015-05-06 16:39 ` Rasmus
2015-05-06 23:59 ` Vikas Rawal
2015-05-06 16:39 ` Rasmus
2015-05-06 22:09 ` Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).