From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: LaTeX export gives extra lines between table of contents and first section Date: Fri, 10 Oct 2008 23:13:18 +0200 Message-ID: <278A534D-0D8D-4179-9F80-FCFCE6C9BDA7@uva.nl> References: <20081003010416.GY17766@hplhtang1> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoPIY-0000dA-Mu for emacs-orgmode@gnu.org; Fri, 10 Oct 2008 17:13:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KoPIX-0000cX-Nf for emacs-orgmode@gnu.org; Fri, 10 Oct 2008 17:13:22 -0400 Received: from [199.232.76.173] (port=58768 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoPIX-0000cR-Il for emacs-orgmode@gnu.org; Fri, 10 Oct 2008 17:13:21 -0400 Received: from ik-out-1112.google.com ([66.249.90.182]:22838) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KoPIX-0001Ol-8R for emacs-orgmode@gnu.org; Fri, 10 Oct 2008 17:13:21 -0400 Received: by ik-out-1112.google.com with SMTP id c21so622783ika.2 for ; Fri, 10 Oct 2008 14:13:21 -0700 (PDT) In-Reply-To: <20081003010416.GY17766@hplhtang1> 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: Hsiu-Khuern Tang Cc: emacs-orgmode@gnu.org Hi Hsiu, looks like there is a bug in the LaTeX exporter when the very first line of the file is already a headline. I do not right now see an easy way to fix this, and Bastien does not seem to have time. So for the time being, just leave the first line of a file empty - that should help. - Carsten On Oct 3, 2008, at 3:04 AM, Hsiu-Khuern Tang wrote: > 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. > > > _______________________________________________ > 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