Increase Distance Between Table Caption Number and Text

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
Toko
Propeller Head
Posts: 25
Joined: Thu Jul 05, 2018 3:24 am

Increase Distance Between Table Caption Number and Text

Post by Toko »

I have table numbering in table captions, for example:
Table 4-1: This is My Table

However, when the numbering gets a bit long, there is no space between the colon (:) and the text, for example:
Table 10-15:This is Another Table

How do I increase the spacing between colon and text?

This is my style code:

CT:{b}Table {chapnum}-{n+}: {/b}
doloremipsum
Sr. Propeller Head
Posts: 290
Joined: Mon Aug 26, 2019 2:11 pm

Re: Increase Distance Between Table Caption Number and Text

Post by doloremipsum »

That one's pretty tricky, unfortunately. The autonumbers have a fixed width - they're kind of just objects that Flare is inserting beside your text much like custom list bullets. The best thing to do is to give them a width and position that is unlikely to cause overlap and just accept that it is fixed.

For example, my autonumbering looks like this:

h1.numberedheading
{
padding-left: 15mm;
mc-auto-number-format: 'GH:{n+}. ';
mc-auto-number-position: outside-head;
mc-auto-number-offset: 15mm;
}

(The padding on the h1 stops the paragraph itself from clipping back into the autonumber, I believe.)
in hoc foro dolorem ipsum amamus, consectimur, adipisci volumus.
Toko
Propeller Head
Posts: 25
Joined: Thu Jul 05, 2018 3:24 am

Re: Increase Distance Between Table Caption Number and Text

Post by Toko »

I worked it out! Very easy:

Select the style in Flare, right-click and choose Properties.
Then under the Paragraph tab, increase the length in the Left field in the Indentation group

IGNORE above! it didn't work!

Flare claims that all that needs to be done is add spaces after colon in the mc-autonumber-format:
CT:{b}Table {chapnum}-{n+}: {/b}

but doesn't work!
Toko
Propeller Head
Posts: 25
Joined: Thu Jul 05, 2018 3:24 am

Re: Increase Distance Between Table Caption Number and Text

Post by Toko »

So should I use the padding-left to increase space between number and actual text?
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Increase Distance Between Table Caption Number and Text

Post by ChoccieMuffin »

I suggest you try adjusting it like this, to make it really obvious, and then have a play with the number you put instead of the red bits:

h1.numberedheading
{
padding-left: 100mm;
mc-auto-number-format: 'GH:{n+}. ';
mc-auto-number-position: outside-head;
mc-auto-number-offset: 100mm;
}
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Post Reply