From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Export bug: LaTeX TOC headline numbers above 100 overlap headline Date: Mon, 28 Sep 2009 08:16:01 +0100 Message-ID: <8029AE6C-0ACA-419E-88A8-02621319AA8E@gmail.com> References: <854060.71066.qm@web63401.mail.re1.yahoo.com> <10FA4328-3F65-4C50-B569-1792607B70A1@gmail.com> <19132.42029.238289.521092@nitrogen.burtket> Mime-Version: 1.0 (Apple Message framework v936) 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 1MsAyX-0008QB-6R for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 03:48:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MsAyS-0008Ny-QB for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 03:48:48 -0400 Received: from [199.232.76.173] (port=37141 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MsAyS-0008Nt-Hp for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 03:48:44 -0400 Received: from mx20.gnu.org ([199.232.41.8]:4360) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MsAyR-0005GL-Ux for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 03:48:44 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MsAyR-0007Vh-7j for emacs-orgmode@gnu.org; Mon, 28 Sep 2009 03:48:43 -0400 Received: by mail-ew0-f208.google.com with SMTP id 4so2290951ewy.31 for ; Mon, 28 Sep 2009 00:48:42 -0700 (PDT) In-Reply-To: <19132.42029.238289.521092@nitrogen.burtket> 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: tcburt@rochester.rr.com Cc: Jeff Kowalczyk , emacs-orgmode@gnu.org Wow, Tim, thanks a lot for this excellent answer. I am glad this is in the mailing list archive now. - Carsten On Sep 25, 2009, at 12:06 PM, Tim Burt wrote: > Carsten Dominik writes: >> On Sep 25, 2009, at 2:10 AM, Jeff Kowalczyk wrote: >> >>> When the headline count for a pdftolatex export gets to be more than >>> 100 lines, the TOC renders with the headline number directly >>> touching the headline text. More than 1,000, and it starts to >>> overlap. >> >> This is a LaTeX issue, which I do not know how to fix. >> >> - Carsten >> >>> >>> It would seem that LaTeX calculates the space to allocate for the >>> headline number based on too few initial entries. >>> >>> I have included a simple test case below. > > * Executive Summary > > Add the following two lines to the org file (after ensuring you have > the tocloft.sty package installed and visible to LaTeX). > #+LaTeX_HEADER: \usepackage{tocloft} > #+LaTeX_HEADER: \setlength{\cftsecnumwidth}{3em} > > * Supporting Jabber > > The formatting for Table of Contents (and its kin) is set deep in the > class definitions. The tocloft package provides user-level commands > to modify those internals which the tocloft documentation describes > quite well, including a figure that shows a value called 'numwidth' is > the length of the box in which the number is set. This value can be > different for each sectioning level (e.g. chapter, section, > subsection). In the test case below, the first org level[1] is being > exported as a \section{}. The box length for section can be set by > the value of \cftsecnumwidth using the \setlength command, as in > \setlength{\cftsecnumwidth}{3em} > The second argument must have a unit of length which in this example > is 'em' (the width of a capital M). This allows the width of the box > to scale with font changes, but other units are certainly permissible > (e.g. cm, mm, in). > > > Good morning, > Tim > > > [1] Note: This test case was run using the default org export > variables for LaTeX which means the article class was used. If > another class is used (e.g. report) then the first org level should be > exported as a \chapter{}. In this case, replace \cftsecnumwidth with > \cftchapnumwidth. >>> >>> Thanks, >>> Jeff >>> >>> * Headline 0 >>> * Headline 1 >>> * Headline 2 >>> * Headline 3 >>> * Headline 4 >>> * Headline 5 >>> * Headline 6 >>> * Headline 7 >>> * Headline 8 >>> * Headline 9 >>> * Headline 10 >>> * Headline 11 >>> * Headline 12 >>> * Headline 13 >>> * Headline 14 >>> * Headline 15 >>> * Headline 16 >>> * Headline 17 >>> * Headline 18 >>> * Headline 19 >>> * Headline 20 >>> * Headline 21 >>> * Headline 22 >>> * Headline 23 >>> * Headline 24 >>> * Headline 25 >>> * Headline 26 >>> * Headline 27 >>> * Headline 28 >>> * Headline 29 >>> * Headline 30 >>> * Headline 31 >>> * Headline 32 >>> * Headline 33 >>> * Headline 34 >>> * Headline 35 >>> * Headline 36 >>> * Headline 37 >>> * Headline 38 >>> * Headline 39 >>> * Headline 40 >>> * Headline 41 >>> * Headline 42 >>> * Headline 43 >>> * Headline 44 >>> * Headline 45 >>> * Headline 46 >>> * Headline 47 >>> * Headline 48 >>> * Headline 49 >>> * Headline 50 >>> * Headline 51 >>> * Headline 52 >>> * Headline 53 >>> * Headline 54 >>> * Headline 55 >>> * Headline 56 >>> * Headline 57 >>> * Headline 58 >>> * Headline 59 >>> * Headline 60 >>> * Headline 61 >>> * Headline 62 >>> * Headline 63 >>> * Headline 64 >>> * Headline 65 >>> * Headline 66 >>> * Headline 67 >>> * Headline 68 >>> * Headline 69 >>> * Headline 70 >>> * Headline 71 >>> * Headline 72 >>> * Headline 73 >>> * Headline 74 >>> * Headline 75 >>> * Headline 76 >>> * Headline 77 >>> * Headline 78 >>> * Headline 79 >>> * Headline 80 >>> * Headline 81 >>> * Headline 82 >>> * Headline 83 >>> * Headline 84 >>> * Headline 85 >>> * Headline 86 >>> * Headline 87 >>> * Headline 88 >>> * Headline 89 >>> * Headline 90 >>> * Headline 91 >>> * Headline 92 >>> * Headline 93 >>> * Headline 94 >>> * Headline 95 >>> * Headline 96 >>> * Headline 97 >>> * Headline 98 >>> * Headline 99 >>> * Headline 100 >>> * Headline 101 >>> * Headline 102 >>> * Headline 103 >>> * Headline 104 >>> * Headline 105 >>> * Headline 106 >>> * Headline 107 >>> * Headline 108 >>> * Headline 109 >>> * Headline 110 >>> * Headline 111 >>> * Headline 112 >>> * Headline 113 >>> * Headline 114 >>> * Headline 115 >>> * Headline 116 >>> * Headline 117 >>> * Headline 118 >>> * Headline 119 >>> * Headline 120 >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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 >> >> >> >> _______________________________________________ >> 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