From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hsiu-Khuern Tang Subject: LaTeX export gives extra lines between table of contents and first section Date: Thu, 2 Oct 2008 18:04:17 -0700 Message-ID: <20081003010416.GY17766@hplhtang1> Reply-To: Hsiu-Khuern Tang 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 1KlZ7N-0003MV-9c for emacs-orgmode@gnu.org; Thu, 02 Oct 2008 21:06:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KlZ7M-0003MB-6k for emacs-orgmode@gnu.org; Thu, 02 Oct 2008 21:06:04 -0400 Received: from [199.232.76.173] (port=39181 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlZ7M-0003M8-3E for emacs-orgmode@gnu.org; Thu, 02 Oct 2008 21:06:04 -0400 Received: from madara.hpl.hp.com ([192.6.19.124]:60608) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KlZ7L-0007y2-Oq for emacs-orgmode@gnu.org; Thu, 02 Oct 2008 21:06:04 -0400 Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by madara.hpl.hp.com (8.14.3/8.14.3/HPL-PA Relay) with ESMTP id m9314QmE004841 for ; Thu, 2 Oct 2008 18:04:26 -0700 (PDT) Received: from hplhtang1.hpl.hp.com (hplhtang1.hpl.hp.com [15.4.92.205]) by mailhub-pa1.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id m9314Obb013370 for ; Thu, 2 Oct 2008 18:04:26 -0700 Received: from htang by hplhtang1.hpl.hp.com with local (Exim 4.62) (envelope-from ) id 1KlZ5d-0006f7-Fj for emacs-orgmode@gnu.org; Thu, 02 Oct 2008 18:04:17 -0700 Content-Disposition: inline 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 I'm new to Org-Mode, and I'm getting to like it a lot! I am running Org 6.07b. I have this simple Org file: ---------------------------------------- * top level ** second level test ---------------------------------------- If I run M-x org-export-region-as-latex, I get this output: ---------------------------------------- % Created 2008-10-02 Thu 17:58 \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{hyperref} \title{* top level} \author{Tang Hsiu Khuern} \date{02 October 2008} \begin{document} \maketitle \setcounter{tocdepth}{3} \tableofcontents ** second level test \section{second level} test \end{document} ---------------------------------------- As you can see, there are extra lines between \tableofcontents and \section, which I think shouldn't be there. If I select the whole file as the region and run M-x org-export-region-as-latex, the extra lines get _duplicated_: ---------------------------------------- ... \tableofcontents ** second level test ** second level test \section{second level} ... ---------------------------------------- -- Best, Hsiu-Khuern.