emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX export bug
@ 2009-07-30  0:51 Dan Griswold
  2009-07-30  2:08 ` Bernt Hansen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Dan Griswold @ 2009-07-30  0:51 UTC (permalink / raw)
  To: emacs-orgmode

Hi there,

Well, I think this a bug.

Given this org input file:

,----
| * Things
| ** A Heading
|    - some
|    - stuff
|    - in
|    - a
|    - list
| ** Another heading
|    - another
|    - list
`----

then if I select the level one heading (titled "Things") with C-c @, and
export to LaTeX using C-c C-e l, I get this output:

,----
| % Created 2009-07-29 Wed 20:24
| \documentclass[12pt]{article}
| \usepackage[utf8]{inputenc}
| \usepackage[T1]{fontenc}
| \usepackage{graphicx}
| \usepackage{longtable}
| \usepackage{hyperref}
| 
| 
| \title{Things}
| \author{Daniel M. Griswold}
| \date{July 29, 2009}
| 
| \begin{document}
| 
| \maketitle
| 
| ** A Heading
| \begin{itemize}
| \item some
| \item stuff
| \item in
| \item a
| \item list
| \end{itemize}
| ** Another heading
| \begin{itemize}
| \item another
| \item list
| \end{itemize}
| 
| \end{document}
`----

Note that the top level headings ("A Heading" and "Another Heading") are
not exported as \section, but with the asterisks they have in the org
file:

,----
| ** A Heading
| \begin{itemize}
| 
|   ... snip ...
| 
| \end{itemize}
| ** Another heading
`----

Exporting the whole file does what it's supposed to do: export the
headlines as \section and \subsection.

Can any of you reproduce this?

Thanks,
Dan


-- 
--------------
Dan Griswold
Rochester, NY
--------------

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

* Re: LaTeX export bug
  2009-07-30  0:51 LaTeX export bug Dan Griswold
@ 2009-07-30  2:08 ` Bernt Hansen
  2009-07-30 11:29   ` Dan Griswold
  2009-07-30 23:49 ` Bastien
  2009-08-05 16:19 ` Carsten Dominik
  2 siblings, 1 reply; 7+ messages in thread
From: Bernt Hansen @ 2009-07-30  2:08 UTC (permalink / raw)
  To: Dan Griswold; +Cc: emacs-orgmode

Dan Griswold <dgriswol@rochester.rr.com> writes:

> Note that the top level headings ("A Heading" and "Another Heading") are
> not exported as \section, but with the asterisks they have in the org
> file:
>
> ,----
> | ** A Heading
> | \begin{itemize}
> | 
> |   ... snip ...
> | 
> | \end{itemize}
> | ** Another heading
> `----
>
> Exporting the whole file does what it's supposed to do: export the
> headlines as \section and \subsection.
>
> Can any of you reproduce this?

Hi Dan,

Yes I can reproduce this too.
Org-mode version 6.28trans
GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2008-11-09 on raven, modified by Debian

-Bernt

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

* Re: LaTeX export bug
  2009-07-30  2:08 ` Bernt Hansen
@ 2009-07-30 11:29   ` Dan Griswold
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Griswold @ 2009-07-30 11:29 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode

Bernt Hansen <bernt@norang.ca> writes:

> Dan Griswold <dgriswol@rochester.rr.com> writes:
>
>> Note that the top level headings ("A Heading" and "Another Heading")
>> are not exported as \section, but with the asterisks they have in the
>> org file

... snip ...

>> Can any of you reproduce this?
>
> Hi Dan,
>
> Yes I can reproduce this too.

That's good to know. It's not my configuration, then.

Not sure, but I would guess that the problem lies in the function
org-export-as-latex in org-export-latex.el, probably in the section that
begins with the comment "export the content of headlines" (line 498).

But try as I might, I can't entirely grok this, so I don't know how else
to help track down the cause of the bug.

Dan

-- 
 _______________________________
/\                              \
\_| Dan Griswold                |
  | dgriswol@rochester.rr.com   |
  |   __________________________|_
   \_/____________________________/

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

* Re: LaTeX export bug
  2009-07-30  0:51 LaTeX export bug Dan Griswold
  2009-07-30  2:08 ` Bernt Hansen
@ 2009-07-30 23:49 ` Bastien
  2009-07-31 11:32   ` Dan Griswold
  2009-08-05 16:19 ` Carsten Dominik
  2 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2009-07-30 23:49 UTC (permalink / raw)
  To: Dan Griswold; +Cc: emacs-orgmode

Dan Griswold <dgriswol@rochester.rr.com> writes:

> Hi there,
>
> Well, I think this a bug.

I can also reproduce this, I will fix it by sunday.

Thanks,

-- 
 Bastien

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

* Re: LaTeX export bug
  2009-07-30 23:49 ` Bastien
@ 2009-07-31 11:32   ` Dan Griswold
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Griswold @ 2009-07-31 11:32 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Bastien <bastienguerry@googlemail.com> writes:

> I can also reproduce this, I will fix it by sunday.

Excellent! Thank you!

Dan

-- 
 _______________________________
/\                              \
\_| Dan Griswold                |
  | dgriswol@rochester.rr.com   |
  |   __________________________|_
   \_/____________________________/

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

* Re: LaTeX export bug
  2009-07-30  0:51 LaTeX export bug Dan Griswold
  2009-07-30  2:08 ` Bernt Hansen
  2009-07-30 23:49 ` Bastien
@ 2009-08-05 16:19 ` Carsten Dominik
  2009-08-06  2:14   ` Dan Griswold
  2 siblings, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2009-08-05 16:19 UTC (permalink / raw)
  To: Dan Griswold; +Cc: emacs-orgmode

Hi,

I believe the issue is now fixed, please verify.

- Carsten

On Jul 30, 2009, at 2:51 AM, Dan Griswold wrote:

> Hi there,
>
> Well, I think this a bug.
>
> Given this org input file:
>
> ,----
> | * Things
> | ** A Heading
> |    - some
> |    - stuff
> |    - in
> |    - a
> |    - list
> | ** Another heading
> |    - another
> |    - list
> `----
>
> then if I select the level one heading (titled "Things") with C-c @,  
> and
> export to LaTeX using C-c C-e l, I get this output:
>
> ,----
> | % Created 2009-07-29 Wed 20:24
> | \documentclass[12pt]{article}
> | \usepackage[utf8]{inputenc}
> | \usepackage[T1]{fontenc}
> | \usepackage{graphicx}
> | \usepackage{longtable}
> | \usepackage{hyperref}
> |
> |
> | \title{Things}
> | \author{Daniel M. Griswold}
> | \date{July 29, 2009}
> |
> | \begin{document}
> |
> | \maketitle
> |
> | ** A Heading
> | \begin{itemize}
> | \item some
> | \item stuff
> | \item in
> | \item a
> | \item list
> | \end{itemize}
> | ** Another heading
> | \begin{itemize}
> | \item another
> | \item list
> | \end{itemize}
> |
> | \end{document}
> `----
>
> Note that the top level headings ("A Heading" and "Another Heading")  
> are
> not exported as \section, but with the asterisks they have in the org
> file:
>
> ,----
> | ** A Heading
> | \begin{itemize}
> |
> |   ... snip ...
> |
> | \end{itemize}
> | ** Another heading
> `----
>
> Exporting the whole file does what it's supposed to do: export the
> headlines as \section and \subsection.
>
> Can any of you reproduce this?
>
> Thanks,
> Dan
>
>
> -- 
> --------------
> Dan Griswold
> Rochester, NY
> --------------
>
>
>
> _______________________________________________
> 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

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

* Re: LaTeX export bug
  2009-08-05 16:19 ` Carsten Dominik
@ 2009-08-06  2:14   ` Dan Griswold
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Griswold @ 2009-08-06  2:14 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

> Hi,
>
> I believe the issue is now fixed, please verify.
>
> - Carsten

It is! Outstanding! Thank you.

Dan

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

end of thread, other threads:[~2009-08-06  2:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-30  0:51 LaTeX export bug Dan Griswold
2009-07-30  2:08 ` Bernt Hansen
2009-07-30 11:29   ` Dan Griswold
2009-07-30 23:49 ` Bastien
2009-07-31 11:32   ` Dan Griswold
2009-08-05 16:19 ` Carsten Dominik
2009-08-06  2:14   ` Dan Griswold

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