emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Bug in LaTeX export


From: Matthew Lundin
Subject: [Orgmode] Re: Bug in LaTeX export
Date: Fri, 10 Jul 2009 07:19:01 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin)

"Holst Thomas (DS-ET/ECF1)" <address@hidden> writes:

> Hello,
>
> I think I discoverd a bug in LaTeX export. I mark a subtree with C-c @
> and then export it to LaTeX with C-c C-e L.
>
> If the subtree has no further subtrees the LaTeX-file not only contains
> the region, but also the rest of the document to the end.
>
> Here is an example:
>
> ,----[ test.org ]
> | * Kapitel 1
> | ** Kapitel 1.1
> |    foo bar
> | * Kapitel 2
> |   bar foo
> `----
>
> If the Kapitel 1.1 subtree is marked the LaTeX output looks like this:
>
> ,----[ LaTeX output ]
> | % Created 2009-07-10 Fr 12:33
> | \documentclass[11pt,a4paper]{article}
> | \usepackage[latin1]{inputenc}
> | \usepackage[T1]{fontenc}
> | \usepackage{hyperref}
> |
> |
> | \title{Kapitel 1.1}
> | \author{Holst Thomas}
> | \date{10 Juli 2009}
> |
> | \begin{document}
> |
> | \textbf{Kapitel 1.1}
> |
> | \setcounter{tocdepth}{3}
> | \tableofcontents
> | \vspace*{1cm}
> |    foo bar
> | \begin{itemize}
> | \item Kapitel 2
> |   bar foo
> | \end{itemize}
> |
> | \end{document}
> `----

I can't reproduce this. Here is the output when I type C-c @ and C-c C-e
L. (I just pulled the most recent org from the git repo for emacs 22):

--8<---------------cut here---------------start------------->8---
% Created 2009-07-10 Fri 07:10
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{hyperref}


\title{Kapitel 1}
\author{Matthew Lundin}
\date{10 July 2009}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
\section{Kapitel 1.1}
\label{sec-1}

  foo bar
\end{document}
--8<---------------cut here---------------end--------------->8---

What are your other org-latex settings?

Best,
Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]