From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Exporting org to LaTeX to PDF: headings do not convert to sections Date: Thu, 21 May 2009 16:52:28 +0200 Message-ID: <7929538D-33E3-4D6D-AC2B-BC12BFED2DD1@uva.nl> References: <7bef1f890905210650o1a4a66e1t5b87cbc363b44ac5@mail.gmail.com> <50C05343-0CF2-4E8A-873B-2E040C225789@gmail.com> Mime-Version: 1.0 (Apple Message framework v935.3) 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 1M79dM-0007Yb-Co for emacs-orgmode@gnu.org; Thu, 21 May 2009 10:52:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M79dI-0007Y1-U3 for emacs-orgmode@gnu.org; Thu, 21 May 2009 10:52:36 -0400 Received: from [199.232.76.173] (port=60899 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M79dI-0007Xv-PH for emacs-orgmode@gnu.org; Thu, 21 May 2009 10:52:32 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:41728) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M79dI-00073l-9e for emacs-orgmode@gnu.org; Thu, 21 May 2009 10:52:32 -0400 Received: by ewy6 with SMTP id 6so1339230ewy.42 for ; Thu, 21 May 2009 07:52:31 -0700 (PDT) In-Reply-To: <50C05343-0CF2-4E8A-873B-2E040C225789@gmail.com> 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: Carsten Dominik Cc: org-mode Replying to my own message: On May 21, 2009, at 4:27 PM, Carsten Dominik wrote: > Hi Alan, > > this is a fundamental limitation in LaTeX > > See http://www.tex.ac.uk/cgi-bin/texfaq2html?label=toodeep > > The only thing you can do in Org is to increase the number of > headline levels to the maximum possible: > > #+OPTION H:5 > > is I think the maximum you can get. You cal also create a > LaTeX class with more headline leves and push H even further. > I believe there are some clases which provide at least > subsubparagraph. > > If you have a good idea how to represent deeper levels in LaTeX, > maybe we > can do something clever in the LaTeX exporter. > > Besides this, I see no further way out of this problem. I just realize that your question provides the answer to a question I had for a long time: Why did Bastien implement lower levels in the LaTeX export as {description} lists instead of {itemize} lists. Now I know the answer: Because the number of levels in a description list is not limited. I recently changed Bastien's code to use itemize instead, for consistence with HTML export. Fortunately I left the old code in, with a customization option. Please try: (setq org-export-latex-low-level 'description) - Carsten > > HTH > > - Carsten > > On May 21, 2009, at 3:50 PM, Alan E. Davis wrote: > >> An outline, when exported as PDF, shows no sections. When >> exporting to LaTeX, the following message is received: >> >> ERROR: LaTeX Error: Too deeply nested. >> >> --- TeX said --- >> >> See the LaTeX manual or LaTeX Companion for explanation. >> Type H for immediate help. >> ... >> >> l.110 \begin{itemize} >> >> --- HELP --- >> There are too many list-making environments nested within one >> another. >> How many levels of nesting are permitted may depend upon what >> computer >> you are using, but at least four levels are provided, which >> should be >> enough. >> >> When I am able to clear out a couple of levels of /begin{itemize}, >> LaTeX does compile, and produces a file with sections as expected. >> >> Is there a solution, or something I ought to know? >> >> I have tried to set some options, like sec:5, in the outline, but >> to no effect. In the PDF, instead of sections with numbers, one >> finds several stars, as though this were an ascii export. >> >> Thank you for any advice. >> >> >> Alan Davis >> >> It is undesirable to believe a proposition when >> there is no ground whatsoever for supposing it is true. >> ---- Bertrand Russell >> >> >> _______________________________________________ >> 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 > ======================= PLEASE NOTE NEW ADDRESS ======================= prof.dr. Carsten Dominik dominik@uva.nl Astronomical Institute 'Anton Pannekoek' www.astro.uva.nl/~dominik Faculty of Science, University of Amsterdam phone +31-20-5257477/7491 SCIENCE PARK 904, ROOM C4-106 fax +31-20-5257484 1098 XH Amsterdam, The Netherlands mail: PO BOX 94249, 1090GE, Amsterdam