*Export bug: LaTeX TOC headline numbers above 100 overlap headline@ 2009-09-25 1:10 Jeff Kowalczyk2009-09-25 6:31 ` Carsten Dominik 0 siblings, 1 reply; 4+ messages in thread From: Jeff Kowalczyk @ 2009-09-25 1:10 UTC (permalink / raw) To: emacs-orgmode 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. 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. 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 ^ permalink raw reply [flat|nested] 4+ messages in thread

*Re: Export bug: LaTeX TOC headline numbers above 100 overlap headline2009-09-25 1:10 Export bug: LaTeX TOC headline numbers above 100 overlap headline Jeff Kowalczyk@ 2009-09-25 6:31 ` Carsten Dominik2009-09-25 11:06 ` Tim Burt 0 siblings, 1 reply; 4+ messages in thread From: Carsten Dominik @ 2009-09-25 6:31 UTC (permalink / raw) To: Jeff Kowalczyk;+Cc:emacs-orgmode 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. > > 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 ^ permalink raw reply [flat|nested] 4+ messages in thread

*Re: Export bug: LaTeX TOC headline numbers above 100 overlap headline2009-09-25 6:31 ` Carsten Dominik@ 2009-09-25 11:06 ` Tim Burt2009-09-28 7:16 ` Carsten Dominik 0 siblings, 1 reply; 4+ messages in thread From: Tim Burt @ 2009-09-25 11:06 UTC (permalink / raw) To: Carsten Dominik;+Cc:Jeff Kowalczyk, emacs-orgmode 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 ^ permalink raw reply [flat|nested] 4+ messages in thread

*2009-09-25 11:06 ` Tim BurtRe: Export bug: LaTeX TOC headline numbers above 100 overlap headline@ 2009-09-28 7:16 ` Carsten Dominik0 siblings, 0 replies; 4+ messages in thread From: Carsten Dominik @ 2009-09-28 7:16 UTC (permalink / raw) To: tcburt;+Cc:Jeff Kowalczyk, emacs-orgmode 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 ^ permalink raw reply [flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-09-28 7:48 UTC | newest]Thread overview:4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-09-25 1:10 Export bug: LaTeX TOC headline numbers above 100 overlap headline Jeff Kowalczyk 2009-09-25 6:31 ` Carsten Dominik 2009-09-25 11:06 ` Tim Burt 2009-09-28 7:16 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).