emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: tcburt@rochester.rr.com
Cc: Jeff Kowalczyk <jtk@yahoo.com>, emacs-orgmode@gnu.org
Subject: Re: Export bug: LaTeX TOC headline numbers above 100 overlap headline
Date: Mon, 28 Sep 2009 08:16:01 +0100	[thread overview]
Message-ID: <8029AE6C-0ACA-419E-88A8-02621319AA8E@gmail.com> (raw)
In-Reply-To: <19132.42029.238289.521092@nitrogen.burtket>

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

      reply	other threads:[~2009-09-28  7:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8029AE6C-0ACA-419E-88A8-02621319AA8E@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jtk@yahoo.com \
    --cc=tcburt@rochester.rr.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).