emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] ? Stray \end{LIST} in latex export
@ 2011-02-26 18:45 Kieran Healy
  2011-02-27 21:32 ` Jeff Horn
  2011-02-28 10:33 ` [BUG] ? Stray \end{LIST} in latex export Nicolas
  0 siblings, 2 replies; 12+ messages in thread
From: Kieran Healy @ 2011-02-26 18:45 UTC (permalink / raw)
  To: emacs-orgmode

I've had the following issue with recent org-mode builds (since early January, I think). A document with an itemized list in it does not export properly to latex: the export process inserts/leaves behind a stray \end{LIST} statement which breaks the .tex file. For example, doing C-c C-e l on this document:

--------------------------------------------
#+TITLE: Example
#+AUTHOR: Example

** Example
- Lorem ipsum dolor sit amet
- Lorem ipsum dolor sit amet

The end.
--------------------------------------------

gives the following relevant bit of output:

> \Section{Example}
> \label{sec-1}
> 
> \begin{itemize}
> \item Lorem ipsum dolor sit amet
> \item Lorem ipsum dolor sit amet
> \end{itemize}
> \end{LIST}
> 
> The end.

I initially assumed this was some error in my own org-mode export setup, as list export is so common I thought it surely would have been reported. But I can reproduce this on a default org-mode install, so now I'm wondering whether it is in fact a bug. 

--
Kieran Healy :: http://www.kieranhealy.org

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

* Re: [BUG] ? Stray \end{LIST} in latex export
  2011-02-26 18:45 [BUG] ? Stray \end{LIST} in latex export Kieran Healy
@ 2011-02-27 21:32 ` Jeff Horn
  2011-02-27 22:47   ` Nicolas
  2011-02-28  7:57   ` [BUG] ? Stray \end{LIST} in latex export -> thanks Manuel Hermenegildo
  2011-02-28 10:33 ` [BUG] ? Stray \end{LIST} in latex export Nicolas
  1 sibling, 2 replies; 12+ messages in thread
From: Jeff Horn @ 2011-02-27 21:32 UTC (permalink / raw)
  To: Kieran Healy; +Cc: emacs-orgmode

I noticed this last week and can reproduce it. I was just preparing a
bug report on this very problem, and my test file is similar to yours.

Minimal org setup.
Org-mode version 7.4 (release_7.4.501.gc6dbde.dirty)
GNU Emacs 24.0.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
of 2011-02-10 on braeburn.aquamacs.org - Aquamacs Distribution 3.xdev

On Sat, Feb 26, 2011 at 1:45 PM, Kieran Healy <kjhealy@gmail.com> wrote:
> I've had the following issue with recent org-mode builds (since early January, I think). A document with an itemized list in it does not export properly to latex: the export process inserts/leaves behind a stray \end{LIST} statement which breaks the .tex file. For example, doing C-c C-e l on this document:
>
> --------------------------------------------
> #+TITLE: Example
> #+AUTHOR: Example
>
> ** Example
> - Lorem ipsum dolor sit amet
> - Lorem ipsum dolor sit amet
>
> The end.
> --------------------------------------------
>
> gives the following relevant bit of output:
>
>> \Section{Example}
>> \label{sec-1}
>>
>> \begin{itemize}
>> \item Lorem ipsum dolor sit amet
>> \item Lorem ipsum dolor sit amet
>> \end{itemize}
>> \end{LIST}
>>
>> The end.
>
> I initially assumed this was some error in my own org-mode export setup, as list export is so common I thought it surely would have been reported. But I can reproduce this on a default org-mode install, so now I'm wondering whether it is in fact a bug.
>
> --
> Kieran Healy :: http://www.kieranhealy.org


-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

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

* Re: [BUG] ? Stray \end{LIST} in latex export
  2011-02-27 21:32 ` Jeff Horn
@ 2011-02-27 22:47   ` Nicolas
  2011-02-27 23:48     ` Thomas S. Dye
  2011-02-28  2:49     ` Jeff Horn
  2011-02-28  7:57   ` [BUG] ? Stray \end{LIST} in latex export -> thanks Manuel Hermenegildo
  1 sibling, 2 replies; 12+ messages in thread
From: Nicolas @ 2011-02-27 22:47 UTC (permalink / raw)
  To: Jeff Horn; +Cc: emacs-orgmode, Kieran Healy

Hello,

Jeff Horn <jrhorn424@gmail.com> writes:

> I noticed this last week and can reproduce it. I was just preparing a
> bug report on this very problem, and my test file is similar to yours.
>
> Minimal org setup.
> Org-mode version 7.4 (release_7.4.501.gc6dbde.dirty)
> GNU Emacs 24.0.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
> of 2011-02-10 on braeburn.aquamacs.org - Aquamacs Distribution 3.xdev

I cannot reproduce this. Could you try to upgrade to a more recent
version, just in case?

Regards,

-- 
Nicolas

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

* Re: Re: [BUG] ? Stray \end{LIST} in latex export
  2011-02-27 22:47   ` Nicolas
@ 2011-02-27 23:48     ` Thomas S. Dye
  2011-02-28  0:23       ` Kieran Healy
  2011-02-28  2:49     ` Jeff Horn
  1 sibling, 1 reply; 12+ messages in thread
From: Thomas S. Dye @ 2011-02-27 23:48 UTC (permalink / raw)
  To: Nicolas; +Cc: Kieran Healy, Jeff Horn, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1551 bytes --]


On Feb 27, 2011, at 12:47 PM, Nicolas wrote:

> Hello,
>
> Jeff Horn <jrhorn424@gmail.com> writes:
>
>> I noticed this last week and can reproduce it. I was just preparing a
>> bug report on this very problem, and my test file is similar to  
>> yours.
>>
>> Minimal org setup.
>> Org-mode version 7.4 (release_7.4.501.gc6dbde.dirty)
>> GNU Emacs 24.0.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
>> of 2011-02-10 on braeburn.aquamacs.org - Aquamacs Distribution 3.xdev
>
> I cannot reproduce this. Could you try to upgrade to a more recent
> version, just in case?
>
> Regards,
>
> -- 
> Nicolas
>

Aloha all,

I'm able to reproduce this with the latest version.

git bisect says:

> 69e02a73de7423bafa4df473cb746865c305b7ae is the first bad commit
> commit 69e02a73de7423bafa4df473cb746865c305b7ae
> Author: Nicolas Goaziou <n.goaziou@gmail.com>
> Date:   Sun Jan 2 13:52:16 2011 +0100
>
>     Modified export engines for lists
>
>     * lisp/org-exp.el (org-export-mark-lists): new function, replacing
>       org-export-mark-list-ending. It adds information as text  
> properties
>       to every list, before changes done by exporter destruct them.
>
>     * lisp/org-html.el (org-export-as-html): delegate list handling to
>       external function org-html-export-list-line.
>     (org-html-export-list-line): new function.
>
>     * lisp/org-latex.el (org-export-latex-lists): small modification.
>
> :040000 040000 5c6d7691e72af31680c5560171cc46bea56112ea  
> 4de9fe5e7c954b31ab23a9e84ba28fa818c368c8 M      lisp

All the best,
Tom

[-- Attachment #1.2: Type: text/html, Size: 3641 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

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

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

* Re: Re: [BUG] ? Stray \end{LIST} in latex export
  2011-02-27 23:48     ` Thomas S. Dye
@ 2011-02-28  0:23       ` Kieran Healy
  2011-02-28  2:43         ` Jeff Horn
  0 siblings, 1 reply; 12+ messages in thread
From: Kieran Healy @ 2011-02-28  0:23 UTC (permalink / raw)
  To: Thomas S. Dye; +Cc: emacs-orgmode, Jeff Horn, Nicolas

>>> I cannot reproduce this. Could you try to upgrade to a more recent
>>> version, just in case?
>>> 
>>> Regards,
>>> 
>>> -- 
>>> Nicolas
>>> 


I'm using the most recent git checkout, on GNU Emacs 23.2.94.1 (x86_64-apple-darwin10.6.0, Carbon Version 1.6.0 AppKit 1038.35) of 2011-02-22.

Also, it might be relevant that exporting the same test file to HTML gives this:

> <ul>
> <li>Lorem ipsum dolor sit amet
> </li>
> <li>Lorem ipsum dolor sit amet
> </div>
> 

The last <li> tag is not closed. This isn't strictly necessary for the HTML to be rendered properly, but seeing as prior ones are closed with </li> I thought it might be related.

--
Kieran Healy :: http://www.kieranhealy.org

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

* Re: Re: [BUG] ? Stray \end{LIST} in latex export
  2011-02-28  0:23       ` Kieran Healy
@ 2011-02-28  2:43         ` Jeff Horn
  2011-02-28  2:53           ` Kieran Healy
  0 siblings, 1 reply; 12+ messages in thread
From: Jeff Horn @ 2011-02-28  2:43 UTC (permalink / raw)
  To: Kieran Healy; +Cc: emacs-orgmode, Nicolas

> I'm using the most recent git checkout, on GNU Emacs 23.2.94.1 (x86_64-apple-darwin10.6.0, Carbon Version 1.6.0 AppKit 1038.35) of 2011-02-22.
>
> Also, it might be relevant that exporting the same test file to HTML gives this:
>
>> <ul>
>> <li>Lorem ipsum dolor sit amet
>> </li>
>> <li>Lorem ipsum dolor sit amet
>> </div>

Is the </div> hanging as well? It would make sense that whatever
regexp/code isolates an entire list "block" could cause both exporters
to "fail" in a similar way.

-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

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

* Re: [BUG] ? Stray \end{LIST} in latex export
  2011-02-27 22:47   ` Nicolas
  2011-02-27 23:48     ` Thomas S. Dye
@ 2011-02-28  2:49     ` Jeff Horn
  2011-02-28  9:17       ` Nicolas
  1 sibling, 1 reply; 12+ messages in thread
From: Jeff Horn @ 2011-02-28  2:49 UTC (permalink / raw)
  To: Jeff Horn, Kieran Healy, emacs-orgmode; +Cc: Nicolas

Just pulled. The following org src:

#+begin_src org
#+TITLE:     Test LaTeX Exporter and Lists
#+AUTHOR:    Jeffrey Horn
#+EMAIL:     jrhorn424@gmail.com
#+DATE:      2011-02-27 Sun
#+DESCRIPTION: Whenever a plain list is used in org and exported to
LaTeX, an "\end{LIST}" declaration appears in the .tex file and
generates compilation errors by ending the document prematurely.

* A Simple List
  The following list is exported correctly, except for an extra
=\end{LIST}= declaration after the last list item.
  1) A list item
  2) Another item

* Relevant Settings
  I'm not sure what is causing the problem, but these may be relevant:

  | variable               | setting |
  |------------------------+---------|
  | org-list-ending-method | indent  |
  | ...                    | ...     |

  org-special-blocks is enabled.
#+end_src

produces the following tex src (snipped the preamble):

#+begin_src latex
\begin{document}



\title{Test \LaTeX{} Exporter and Lists}
\author{Jeffrey Horn}
\date{2011-02-27 Sun}
\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}

\section{A Simple List}
\label{sec-1}

The following list is exported correctly, except for an extra
\texttt{\textbackslash{}end\{LIST\}} declaration after the last list
item.
\begin{enumerate}
\item A list item
\item Another item
\end{enumerate}
\end{LIST}
\section{Relevant Settings}
\label{sec-2}

I'm not sure what is causing the problem, but these may be relevant:


\begin{center}
\begin{tabular}{ll}
 variable                &  setting   \\
\hline
 org-list-ending-method  &  indent    \\
 \ldots{}                &  \ldots{}  \\
\end{tabular}
\end{center}



org-special-blocks is enabled.

\end{document}
#+end_src

The bug is definitely still present for me.

On Sun, Feb 27, 2011 at 5:47 PM, Nicolas <n.goaziou@gmail.com> wrote:
> Hello,
>
> Jeff Horn <jrhorn424@gmail.com> writes:
>
>> I noticed this last week and can reproduce it. I was just preparing a
>> bug report on this very problem, and my test file is similar to yours.
>>
>> Minimal org setup.
>> Org-mode version 7.4 (release_7.4.501.gc6dbde.dirty)
>> GNU Emacs 24.0.50.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
>> of 2011-02-10 on braeburn.aquamacs.org - Aquamacs Distribution 3.xdev
>
> I cannot reproduce this. Could you try to upgrade to a more recent
> version, just in case?
>
> Regards,
>
> --
> Nicolas
>



-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

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

* Re: Re: [BUG] ? Stray \end{LIST} in latex export
  2011-02-28  2:43         ` Jeff Horn
@ 2011-02-28  2:53           ` Kieran Healy
  0 siblings, 0 replies; 12+ messages in thread
From: Kieran Healy @ 2011-02-28  2:53 UTC (permalink / raw)
  To: Jeff Horn; +Cc: emacs-orgmode, Nicolas

On Feb 27, 2011, at 9:43 PM, Jeff Horn wrote:

>> I'm using the most recent git checkout, on GNU Emacs 23.2.94.1 (x86_64-apple-darwin10.6.0, Carbon Version 1.6.0 AppKit 1038.35) of 2011-02-22.
>> 
>> Also, it might be relevant that exporting the same test file to HTML gives this:
>> 
>>> <ul>
>>> <li>Lorem ipsum dolor sit amet
>>> </li>
>>> <li>Lorem ipsum dolor sit amet
>>> </div>
> 
> Is the </div> hanging as well? It would make sense that whatever
> regexp/code isolates an entire list "block" could cause both exporters
> to "fail" in a similar way.

Yes, it is — Emacs reports "unmatched tags <li> and </div>"

--
Kieran Healy :: http://www.kieranhealy.org

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

* Re: [BUG] ? Stray \end{LIST} in latex export -> thanks
  2011-02-27 21:32 ` Jeff Horn
  2011-02-27 22:47   ` Nicolas
@ 2011-02-28  7:57   ` Manuel Hermenegildo
  1 sibling, 0 replies; 12+ messages in thread
From: Manuel Hermenegildo @ 2011-02-28  7:57 UTC (permalink / raw)
  To: Jeff Horn; +Cc: emacs-orgmode, Kieran Healy


     Thanks!

     Manuel




-- 
-------------------------------------------------------------------------------
Manuel Hermenegildo                       | Prof., C.S.Dept., T.U. Madrid (UPM)
Director, IMDEA SW Institute & CLIP Group | +34-91-336-7435 (W) -352-4819 (Fax)
-------------------------------------------------------------------------------

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

* Re: [BUG] ? Stray \end{LIST} in latex export
  2011-02-28  2:49     ` Jeff Horn
@ 2011-02-28  9:17       ` Nicolas
  0 siblings, 0 replies; 12+ messages in thread
From: Nicolas @ 2011-02-28  9:17 UTC (permalink / raw)
  To: Jeff Horn; +Cc: emacs-orgmode, Kieran Healy

Hello,

Jeff Horn <jrhorn424@gmail.com> writes:

>   | variable               | setting |
>   |------------------------+---------|
>   | org-list-ending-method | indent  |

Ok, this is the culprit. I'll investigate this today.

Thanks for the debugging.

Regards,

-- 
Nicolas

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

* Re: [BUG] ? Stray \end{LIST} in latex export
  2011-02-26 18:45 [BUG] ? Stray \end{LIST} in latex export Kieran Healy
  2011-02-27 21:32 ` Jeff Horn
@ 2011-02-28 10:33 ` Nicolas
  2011-02-28 14:20   ` Kieran Healy
  1 sibling, 1 reply; 12+ messages in thread
From: Nicolas @ 2011-02-28 10:33 UTC (permalink / raw)
  To: Kieran Healy; +Cc: emacs-orgmode

Hello,

Kieran Healy <kjhealy@gmail.com> writes:

> I've had the following issue with recent org-mode builds (since early
> January, I think). A document with an itemized list in it does not
> export properly to latex: the export process inserts/leaves behind
> a stray \end{LIST} statement which breaks the .tex file. For example,
> doing C-c C-e l on this document:
>
> --------------------------------------------
> #+TITLE: Example
> #+AUTHOR: Example
>
> ** Example
> - Lorem ipsum dolor sit amet
> - Lorem ipsum dolor sit amet
>
> The end.
> --------------------------------------------
>
> gives the following relevant bit of output:
>
>> \Section{Example}
>> \label{sec-1}
>> 
>> \begin{itemize}
>> \item Lorem ipsum dolor sit amet
>> \item Lorem ipsum dolor sit amet
>> \end{itemize}
>> \end{LIST}
>> 
>> The end.

It should be now fixed in master. Could you confirm this?

Thanks for reporting this bug !


Regards,

-- 
Nicolas

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

* Re: [BUG] ? Stray \end{LIST} in latex export
  2011-02-28 10:33 ` [BUG] ? Stray \end{LIST} in latex export Nicolas
@ 2011-02-28 14:20   ` Kieran Healy
  0 siblings, 0 replies; 12+ messages in thread
From: Kieran Healy @ 2011-02-28 14:20 UTC (permalink / raw)
  To: Nicolas; +Cc: emacs-orgmode


On Feb 28, 2011, at 5:33 AM, Nicolas wrote:

> It should be now fixed in master. Could you confirm this?
> 
> Thanks for reporting this bug !
> 
> 
> Regards,
> 
> -- 
> Nicolas

Everything works as it should now — thank you very much for the quick turnaround. 

Kieran

--
Kieran Healy :: http://www.kieranhealy.org

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

end of thread, other threads:[~2011-02-28 14:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-26 18:45 [BUG] ? Stray \end{LIST} in latex export Kieran Healy
2011-02-27 21:32 ` Jeff Horn
2011-02-27 22:47   ` Nicolas
2011-02-27 23:48     ` Thomas S. Dye
2011-02-28  0:23       ` Kieran Healy
2011-02-28  2:43         ` Jeff Horn
2011-02-28  2:53           ` Kieran Healy
2011-02-28  2:49     ` Jeff Horn
2011-02-28  9:17       ` Nicolas
2011-02-28  7:57   ` [BUG] ? Stray \end{LIST} in latex export -> thanks Manuel Hermenegildo
2011-02-28 10:33 ` [BUG] ? Stray \end{LIST} in latex export Nicolas
2011-02-28 14:20   ` Kieran Healy

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