From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Exporting org to LaTeX to PDF: headings do not convert to sections Date: Fri, 22 May 2009 09:17:56 +0100 Message-ID: <87ws89blfv.fsf@eeepc.chemeng.ucl.ac.uk> References: <7bef1f890905210650o1a4a66e1t5b87cbc363b44ac5@mail.gmail.com> <50C05343-0CF2-4E8A-873B-2E040C225789@gmail.com> <7929538D-33E3-4D6D-AC2B-BC12BFED2DD1@uva.nl> <7bef1f890905211314p4f14e44fj57aac5d339578a28@mail.gmail.com> <14B4D147-56B5-42F4-A2D0-05AABE808E54@gmail.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 1M7QRa-0008Jq-2w for emacs-orgmode@gnu.org; Fri, 22 May 2009 04:49:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M7QRV-0008AM-2z for emacs-orgmode@gnu.org; Fri, 22 May 2009 04:49:33 -0400 Received: from [199.232.76.173] (port=57347 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M7QRU-00089t-Mg for emacs-orgmode@gnu.org; Fri, 22 May 2009 04:49:28 -0400 Received: from main.gmane.org ([80.91.229.2]:36823 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M7QRU-0008HT-3A for emacs-orgmode@gnu.org; Fri, 22 May 2009 04:49:28 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M7QRP-0007jW-1B for emacs-orgmode@gnu.org; Fri, 22 May 2009 08:49:23 +0000 Received: from dip018.chemeng.ucl.ac.uk ([128.40.228.117]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 May 2009 08:49:23 +0000 Received: from e.fraga by dip018.chemeng.ucl.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 22 May 2009 08:49:23 +0000 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 Carsten Dominik writes: > On May 21, 2009, at 10:14 PM, Alan E. Davis wrote: >> I don't understand why I do not see "section" or "subsection", and >> the sections often come out with bare stars. Is this also because >> the number of levels has been exceeded? > > No, this must be a different bug, which I cannot reproduce. Example > file??? Carsten, I have been having this problem the past two days but had avoided posting until I determined it wasn't my fault. For the following org file: #----------------------------------------------- cut here #+TITLE: t.org #+AUTHOR: Eric S Fraga #+EMAIL: e.fraga@ucl.ac.uk #+DATE: 2009-05-11 Mon #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js #+EXPORT_SELECT_TAGS: export #+EXPORT_EXCLUDE_TAGS: noexport #+LINK_UP: #+LINK_HOME: * Testing embedded aligned equations \begin{eqnarray} x &=& a_i + b_j + c_{k} \\ y &=& \sqrt{x} \end{eqnarray} \begin{eqnarray*} x &=& a_i + b_j + c_{k} \\ y &=& \sqrt{x} \end{eqnarray*} *** This is a subsection with not very much text *** but another which might have had more text in an ideal world. #----------------------------------------------- cut here exporting to latex works fine if you export the whole file. If, however, you select a region, such as the region starting from the "*** This is a subsection" line to the end of the file, the latex export doesn't convert the leading *s to sections, putting the *s directly into the latex: ,---- | ... | \setcounter{tocdepth}{3} | \tableofcontents | \vspace*{1cm} | \textbf{*} This is a subsection | with not very much text | \textbf{*} but another | which might have had more text in an ideal world. | | \end{document} `---- hope this helps.