Hi everyone,
I need to increase the space between the chapter number and the title in the ToC. I have been fiddling around, but haven't found a solution yet. Does anyone have a solution? Thanks!
ToC Chapter to Heading Space
ToC Chapter to Heading Space
You do not have the required permissions to view the files attached to this post.
-
- Sr. Propeller Head
- Posts: 247
- Joined: Thu May 24, 2018 3:11 pm
- Location: Queensland, Australia
Re: ToC Chapter to Heading Space
Hi,
Autonumbering formats are specified usually in the heading style in a property like the below:
The spacing is set in the autonumber string. Spaces in this string don't collapse into a single space like they do in normal html, so you could change the definition to something like 'GH:{n}.{n+} '; to add a few extra spaces between number and text. These spaces will appear in both the heading and related TOC entry.
Cheers,
Rob
Autonumbering formats are specified usually in the heading style in a property like the below:
Code: Select all
mc-auto-number-format: 'GH:{n}.{n+} ';
Cheers,
Rob
Re: ToC Chapter to Heading Space
Okay, that's strange. My headings have:robdocsmith wrote:Hi,
Autonumbering formats are specified usually in the heading style in a property like the below:The spacing is set in the autonumber string. Spaces in this string don't collapse into a single space like they do in normal html, so you could change the definition to something like 'GH:{n}.{n+} '; to add a few extra spaces between number and text. These spaces will appear in both the heading and related TOC entry.Code: Select all
mc-auto-number-format: 'GH:{n}.{n+} ';
Cheers,
Rob
{
mc-auto-number-position: outside-head;
mc-auto-number-offset: 20mm;
padding-left: 20mm;
}
The padding-left and the mc-auto-number-offset must be the same to control the space, so I presumed it would be the same case for the ToC. Putting extra spaces is a bit, well, not good.
-
- Sr. Propeller Head
- Posts: 247
- Joined: Thu May 24, 2018 3:11 pm
- Location: Queensland, Australia
Re: ToC Chapter to Heading Space
Well, I've not worried about lining up the headings at a particular indent before, but I can see how that would be advantageous, particularly in a TOC. I saw that spaces in the number-format became hard spaces and that was good enough for my purposes. The width of the gap varied proportionately with the font of both the heading and TOC paragraph and meant I could control the spacing in a single location.
If I include:
in my H1 heading and:
in my p.TOC1 style, I get the appropriate indents between numbers and text (10mm for H1 and 5mm for corresponding TOC entries).
Rob
If I include:
Code: Select all
mc-auto-number-position: outside-head;
mc-auto-number-offset: 10mm;
padding-left: 10mm;
Code: Select all
mc-auto-number-offset: 5mm;
padding-left: 0mm;
mc-auto-number-position: outside-head;
Rob
Re: ToC Chapter to Heading Space
I was unable to replicate that. So instead I increased the padding-left and mc-auto-number-offset incrementally:
This gave me:
Code: Select all
p.TOC1
{
}
p.TOC2
{
mc-auto-number-position: outside-head;
padding-left: 3mm;
mc-auto-number-offset: 6mm;
}
p.TOC3
{
mc-auto-number-position: outside-head;
padding-left: 6mm;
mc-auto-number-offset: 9mm;
}
p.TOC4
{
mc-auto-number-position: outside-head;
padding-left: 9mm;
mc-auto-number-offset: 12mm;
}
p.TOC5
{
mc-auto-number-position: outside-head;
padding-left: 12mm;
}
You do not have the required permissions to view the files attached to this post.