From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Holst Thomas (DS-ET/ECF1)" Subject: Bug in LaTeX export Date: Fri, 10 Jul 2009 12:50:06 +0200 Message-ID: <23C69956B336A746BD3E1CD955C7A6992A51205019@SI-MBX03.de.bosch.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MPDgL-0007KS-TF for emacs-orgmode@gnu.org; Fri, 10 Jul 2009 06:50:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MPDgF-0007HQ-Sx for emacs-orgmode@gnu.org; Fri, 10 Jul 2009 06:50:20 -0400 Received: from [199.232.76.173] (port=33055 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPDgF-0007HA-Kr for emacs-orgmode@gnu.org; Fri, 10 Jul 2009 06:50:15 -0400 Received: from smtp2-v.fe.bosch.de ([139.15.237.6]:38509) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MPDgF-0006Ux-1y for emacs-orgmode@gnu.org; Fri, 10 Jul 2009 06:50:15 -0400 Received: from vsmta2.fe.internet.bosch.com (unknown [10.4.98.30]) by imta8.fe.bosch.de (Postfix) with ESMTP id 296A2248066 for ; Fri, 10 Jul 2009 12:43:50 +0200 (CEST) Received: from fe-imc01.de.bosch.com (vsgw3.fe.internet.bosch.com [10.4.98.16]) by vsmta2.fe.internet.bosch.com (Postfix) with ESMTP id C7B69223548 for ; Fri, 10 Jul 2009 12:50:11 +0200 (CEST) Content-Language: de-DE 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: "emacs-orgmode@gnu.org" 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} `---- Kapitel 2 is also included. This does not happen if the subtree has additonal subtrees. If I mark the Kapitel 1 subtree the output is as expected. When the bug happens, `org-export-latex-default-class' does not work. Instead the class 'article' is used. It does not happen if the region is exported to ASCII or HTML. My setup is: emacs 22.2.1, WinXP, org-mode 6.28trans from yesterday. I also observed this bug with org-mode 6.28b. And when I start emacs with the option '-Q'. Thomas -- "Das Leben ist so einfach, dass es schon wieder schwierig ist!"