From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Bug in LaTeX export Date: Fri, 10 Jul 2009 07:19:01 -0500 Message-ID: References: <23C69956B336A746BD3E1CD955C7A6992A51205019@SI-MBX03.de.bosch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MPF4I-0002yg-8u for emacs-orgmode@gnu.org; Fri, 10 Jul 2009 08:19:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MPF4D-0002uA-S9 for emacs-orgmode@gnu.org; Fri, 10 Jul 2009 08:19:09 -0400 Received: from [199.232.76.173] (port=43239 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPF4D-0002tq-EX for emacs-orgmode@gnu.org; Fri, 10 Jul 2009 08:19:05 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:60050) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MPF4D-00081L-0T for emacs-orgmode@gnu.org; Fri, 10 Jul 2009 08:19:05 -0400 In-Reply-To: <23C69956B336A746BD3E1CD955C7A6992A51205019@SI-MBX03.de.bosch.com> (Holst Thomas's message of "Fri\, 10 Jul 2009 12\:50\:06 +0200") 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: "Holst Thomas (DS-ET/ECF1)" Cc: "emacs-orgmode@gnu.org" "Holst Thomas (DS-ET/ECF1)" 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