From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: Heading numbering in latex export Date: Thu, 27 Sep 2012 21:07:40 +0530 Message-ID: <20120927153740.GA15691@panahar> References: <20120927064527.GA17906@panahar> <87haqj7tdq.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THGCp-000617-1y for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 11:40:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THGCg-0002cm-IC for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 11:40:50 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:36011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THGCg-0002cO-CG for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 11:40:42 -0400 Received: by padfa10 with SMTP id fa10so1562766pad.0 for ; Thu, 27 Sep 2012 08:40:41 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87haqj7tdq.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Thu, Sep 27, 2012 at 09:36:15AM +0200, Bastien wrote: > Hi Vikas, > > Vikas Rawal writes: > > > When I try to export the file to pdf via latex, I face a strange > > problem. When I export the file first time after opening it, the > > graph does not appear. When I do it again, the graph appears fine but > > Section numbers are messed up. The main sections are now numbered 0.1, > > 0.2 etc while the sub-sections are not numbered at all. > > Wild guess: you may need to configure `org-latex-to-pdf-process'. > > But without more information on the original file it's hard to debug. > > Can you provide a minimal reproducible example? I worked on my file further and by elimination identified the problem to the following. I am using xelatex. There are following two lines in my org file #+LATEX_CMD: xelatex #+LATEX_HEADER: \setmainfont{Adobe Garamond Pro} Where LATEX_CMD is defined as in http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export If I remove the above two lines, everything works fine (except the fonts, of course). Vikas