From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Latex export bugs and a request Date: Sat, 21 Mar 2009 18:21:29 +0100 Message-ID: <9A193714-0153-46CC-BF39-B8866130282C@uva.nl> References: <87zlflcm6t.fsf@fastmail.fm> <4CCC1BE5-B46F-4A01-AB69-AB1A28F4FF86@uva.nl> <87bpryeqpm.fsf@fastmail.fm> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary="===============0779249685==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ll7M0-0007fB-JD for emacs-orgmode@gnu.org; Sat, 21 Mar 2009 15:59:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ll7Lv-0007cj-Q3 for emacs-orgmode@gnu.org; Sat, 21 Mar 2009 15:59:35 -0400 Received: from [199.232.76.173] (port=41365 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ll7Lv-0007cd-Ai for emacs-orgmode@gnu.org; Sat, 21 Mar 2009 15:59:31 -0400 Received: from ey-out-1920.google.com ([74.125.78.150]:1602) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ll7Lu-0000eE-J7 for emacs-orgmode@gnu.org; Sat, 21 Mar 2009 15:59:30 -0400 Received: by ey-out-1920.google.com with SMTP id 13so217118eye.24 for ; Sat, 21 Mar 2009 12:59:29 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matthew Lundin Cc: Org-mode ml --===============0779249685== Content-Type: multipart/alternative; boundary=Apple-Mail-4--496631689 --Apple-Mail-4--496631689 Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Hi Matthew, I have worked on this part of the LaTeX exporter. Among other things, =20= I now export these headers as an itemize list by default, parallel to the HTML =20 exporter. You can customize org-export-latex-low-levels to specify what exactly =20= you want, you can get description or enumerate lists as well. Let me know if the problems now go away. - Carsten On Mar 20, 2009, at 3:43 AM, Matthew Lundin wrote: > > Hi Carsten, > >>>>> 2. Headlines greater than n when H:n (e.g., level three headlines >>>>> when H >>>>> is set to 2) are exported as description lists. >>>>> >>>>> Is this the intended behavior? >>>> >>>> This is how Bastien designed it, and it is similar to the HTML way, >>>> turning these into lists. It works fine if there is any text =20 >>>> before >>>> the plain list bullets. >>>> >>> >>> When I use a paragraph of text instead of plain list bullets, the >>> subsequent paragraph becomes the definition of the headline, which >>> becomes the list label. Is this correct? >> >> I am confused, could you make a detailed example, please? > > Sorry for being unclear. Take, for instance, the following source =20 > file: > > --8<---------------cut here---------------start------------->8--- > #+OPTIONS: H:2 > > * This is the first heading > > Here is some text after the first heading. > > ** This is the second heading > > Here is some text after the second heading. > > *** This is the third heading > > Here is some text after the third heading. > --8<---------------cut here---------------end--------------->8--- > > This outputs to tex as follows (preamble excluded): > > --8<---------------cut here---------------start------------->8--- > \section{This is the first heading} > \label{sec-1} > > > Here is some text after the first heading. > > \subsection{This is the second heading} > \label{sec-1.1} > > > Here is some text after the second heading. > > \begin{description} > > \item[This is the third heading]\label{sec-1.1.1} > > > > Here is some text after the third heading. > \end{description} > --8<---------------cut here---------------end--------------->8--- > > When latex is run, the output looks like this. Note how the text after > the third heading is folded into the same line: > > --8<---------------cut here---------------start------------->8--- > 1 This is the =EF=AC=81rst heading > > Here is some text after the =EF=AC=81rst heading. > > 1.1 This is the second heading > > Here is some text after the second heading. > > This is the third heading Here is some text after the third heading. > --8<---------------cut here---------------end--------------->8--- > > - Matt --Apple-Mail-4--496631689 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi = Matthew,

I have worked on this part of the LaTeX = exporter.  Among other things, I now export
these headers = as an itemize list by default, parallel to the HTML = exporter.

You can customize = org-export-latex-low-levels to specify what exactly you want, you can = get description or enumerate lists as well.

Let = me know if the problems now go away.

- = Carsten

On Mar 20, 2009, at 3:43 AM, Matthew = Lundin wrote:


Hi = Carsten,

2. = Headlines greater than n when H:n (e.g., level three = headlines
when = H
is set to 2) are exported as = description = lists.

Is this the intended = behavior?

This = is how Bastien designed it, and it is similar to the HTML = way,
turning = these into lists.  It works fine if there is any text = before
the = plain list = bullets.


When I use a paragraph of text = instead of plain list bullets, = the
subsequent paragraph becomes the definition of the = headline, which
becomes the list label. Is this = correct?

I am confused, = could you make a detailed example, please?

Sorry for = being unclear. Take, for instance, the following source = file:

--8<---------------cut = here---------------start------------->8---
#+OPTIONS: H:2

* = This is the first heading

Here is some text after the first = heading.

** This is the second heading

Here is some text = after the second heading.

*** This is the third = heading

Here is some text after the third = heading.
--8<---------------cut = here---------------end--------------->8---

This outputs to tex = as follows (preamble excluded):

--8<---------------cut = here---------------start------------->8---
\section{This is the = first heading}
\label{sec-1}


Here is some text after the = first heading.

\subsection{This is the second = heading}
\label{sec-1.1}


Here is some text after the = second heading.

\begin{description}

\item[This is the = third heading]\label{sec-1.1.1}



Here is some text after = the third heading.
\end{description}
--8<---------------cut = here---------------end--------------->8---

When latex is run, = the output looks like this. Note how the text after
the third heading = is folded into the same line:

--8<---------------cut = here---------------start------------->8---
1 This is the =EF=AC=81rs= t heading

Here is some text after the =EF=AC=81rst heading. =

1.1 This is the second heading

Here is some text after = the second heading.

This is the third heading Here is some text = after the third heading.
--8<---------------cut = here---------------end--------------->8---

- = Matt

= --Apple-Mail-4--496631689-- --===============0779249685== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0779249685==--