Increase Distance Between Table Caption Number and Text

This forum is for all Flare issues related to styles, stylesheets and XML.

Increase Distance Between Table Caption Number and Text

Postby Toko on Sun Jan 05, 2020 11:56 pm

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}
Toko
Propeller Head
 
Posts: 19
Joined: Thu Jul 05, 2018 3:24 am

Re: Increase Distance Between Table Caption Number and Text

Postby doloremipsum on Mon Jan 06, 2020 1:09 pm

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.)
neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit - sed saepe cum dolor apud multos callidos mutuetur, reduci potest.
doloremipsum
Sr. Propeller Head
 
Posts: 131
Joined: Mon Aug 26, 2019 2:11 pm

Re: Increase Distance Between Table Caption Number and Text

Postby Toko on Tue Jan 07, 2020 9:10 am

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: 19
Joined: Thu Jul 05, 2018 3:24 am

Re: Increase Distance Between Table Caption Number and Text

Postby Toko on Thu Jan 09, 2020 7:26 am

So should I use the padding-left to increase space between number and actual text?
Toko
Propeller Head
 
Posts: 19
Joined: Thu Jul 05, 2018 3:24 am

Re: Increase Distance Between Table Caption Number and Text

Postby ChoccieMuffin on Thu Jan 09, 2020 8:22 am

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 2019r1 and 2020.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
ChoccieMuffin
Senior Propellus Maximus
 
Posts: 2376
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: Google [Bot] and 19 guests