emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Export to Latex, multi-line headlines
@ 2014-10-07 14:22 hymie!
  2014-10-07 15:28 ` Thorsten Jolitz
  0 siblings, 1 reply; 4+ messages in thread
From: hymie! @ 2014-10-07 14:22 UTC (permalink / raw)
  To: emacs-orgmode

So the more I use orgmode, the more I'm enjoying it.

I'm now learning how to export my notes into LaTeX and/or PDF.  (I'm a
TeX user, so I don't know all of the intricacies of LaTeX, but I can
manage if I have to.)

Anyway, to the question.

When I have a long line in my notes, I keep it formatted like this for
easy reading:

*** This is a very long line which is way too long to fit on a single line
    so I have it broken up into smaller lines so that I can read it
    but still have the indentation lined up, so it's obvious (to me) that
    this is all designed to be a single sentence.

There is a "hard return" at the end of each line, because using emacs's
standard word-wrapping would put the text into a left-aligned paragraph
and I lose my outline structure.

The coloring of the second through fourth lines doesn't match the coloring
of the first line, so it appears that Org considers this to be a
single-line headline with some supporting text underneath it.

When I export to LaTeX, that concept continues.  The phrase
"This is a very long line which is way too long to fit on a single line"
is my headline, in big bold letters, while the rest of the text is
below it in smaller letters (formatted as a single paragraph).

Is there a way that I can specify, either to Orgmode in general or to
the LaTeX exporter specifically, that I want this to be considered
a single headline?

Alternative question -- is there a way that Orgmode (or emacs) can combine
line-wrapping with indent levels, so that if I were to write this all as
a single line, the word-wrapping would put the text in the correct column?

--hymie!    http://lactose.homelinux.net/~hymie    hymie@lactose.homelinux.net
-------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Export to Latex, multi-line headlines
  2014-10-07 14:22 Export to Latex, multi-line headlines hymie!
@ 2014-10-07 15:28 ` Thorsten Jolitz
  2014-10-07 16:01   ` hymie!
  0 siblings, 1 reply; 4+ messages in thread
From: Thorsten Jolitz @ 2014-10-07 15:28 UTC (permalink / raw)
  To: emacs-orgmode

hymie@lactose.homelinux.net (hymie!) writes:

> *** This is a very long line which is way too long to fit on a single line
>     so I have it broken up into smaller lines so that I can read it
>     but still have the indentation lined up, so it's obvious (to me) that
>     this is all designed to be a single sentence.

This looks pretty 'unidiomatic', so to say, better use

,----
| *** Lorem Ipsum
| 
| Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec
| hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl,
| tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque
| penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla
| posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras
| placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.
`----

instead.

-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Export to Latex, multi-line headlines
  2014-10-07 15:28 ` Thorsten Jolitz
@ 2014-10-07 16:01   ` hymie!
  2014-10-07 16:15     ` Rasmus
  0 siblings, 1 reply; 4+ messages in thread
From: hymie! @ 2014-10-07 16:01 UTC (permalink / raw)
  To: emacs-orgmode

In our last episode, the evil Dr. Lacto had captured our hero,
  Thorsten Jolitz <tjolitz@gmail.com>, who said:
>hymie@lactose.homelinux.net (hymie!) writes:
>
>> *** This is a very long line which is way too long to fit on a single line
>>     so I have it broken up into smaller lines so that I can read it
>>     but still have the indentation lined up, so it's obvious (to me) that
>>     this is all designed to be a single sentence.
>
>This looks pretty 'unidiomatic', so to say, better use

In other words, "Don't do that." :)  Keep my headings short.

Fair enough.

--hymie!    http://lactose.homelinux.net/~hymie    hymie@lactose.homelinux.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Export to Latex, multi-line headlines
  2014-10-07 16:01   ` hymie!
@ 2014-10-07 16:15     ` Rasmus
  0 siblings, 0 replies; 4+ messages in thread
From: Rasmus @ 2014-10-07 16:15 UTC (permalink / raw)
  To: hymie; +Cc: emacs-orgmode

hymie@lactose.homelinux.net (hymie!) writes:

> In our last episode, the evil Dr. Lacto had captured our hero,
>   Thorsten Jolitz <tjolitz@gmail.com>, who said:
>>hymie@lactose.homelinux.net (hymie!) writes:
>>
>
>>> *** This is a very long line which is way too long to fit on a single line
>>>     so I have it broken up into smaller lines so that I can read it
>>>     but still have the indentation lined up, so it's obvious (to me) that
>>>     this is all designed to be a single sentence.
>>
>>This looks pretty 'unidiomatic', so to say, better use
>
> In other words, "Don't do that." :)  Keep my headings short.

I agree with Thorsen.

The Org syntax specify that headlines are one line.  See
org-heading-regexp.  That being said, I think you can mimic your
desired behavior with the following:

   (progn (org-mode) (org-indent-mode t) (visual-line-mode t))

—Rasmus

-- 
. . . It begins of course with The Internet.  A Net of Peers

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-07 16:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-07 14:22 Export to Latex, multi-line headlines hymie!
2014-10-07 15:28 ` Thorsten Jolitz
2014-10-07 16:01   ` hymie!
2014-10-07 16:15     ` Rasmus

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).