How to adjust spacing between autonumbered figure & caption

This forum is for all Flare issues not related to any of the other categories.
Post Reply
tekwrite
Propeller Head
Posts: 11
Joined: Fri Sep 14, 2007 7:28 am

How to adjust spacing between autonumbered figure & caption

Post by tekwrite »

How to adjust spacing between autonumbered figure & caption text?

I thought it would be in the Paragraph section when I edited the figure tag?
robdocsmith
Sr. Propeller Head
Posts: 247
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: How to adjust spacing between autonumbered figure & capt

Post by robdocsmith »

The vertical spacing between image and a following (or preceding) caption? You could set a margin-top or margin-bottom as appropriate on the image, or the caption style.

If you mean the spacing between the caption number and the caption itself, that's in the caption style. My p.FigureCaption style includes

Code: Select all

{mc-auto-number-format: 'CF:Figure {chapnum}-{n+}   ';}
Which has three spaces after the auto-number defintiion and the closing quote.

Cheers,

Rob
tekwrite
Propeller Head
Posts: 11
Joined: Fri Sep 14, 2007 7:28 am

Re: How to adjust spacing between autonumbered figure & capt

Post by tekwrite »

I tried that but it still has about half an inch of space between the autonumber and the caption text
robdocsmith
Sr. Propeller Head
Posts: 247
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: How to adjust spacing between autonumbered figure & capt

Post by robdocsmith »

To help us troubleshoot, can you attach an image showing the space and the code used in your caption style?

Cheers,

Rob
tekwrite
Propeller Head
Posts: 11
Joined: Fri Sep 14, 2007 7:28 am

Re: How to adjust spacing between autonumbered figure & capt

Post by tekwrite »

Attaching images of the output and the tag information.
You do not have the required permissions to view the files attached to this post.
robdocsmith
Sr. Propeller Head
Posts: 247
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: How to adjust spacing between autonumbered figure & capt

Post by robdocsmith »

What's in the auto-number section of the style defintion?

Rob
tekwrite
Propeller Head
Posts: 11
Joined: Fri Sep 14, 2007 7:28 am

Re: How to adjust spacing between autonumbered figure & capt

Post by tekwrite »

Here is a screen shot of the autonumber tab.
You do not have the required permissions to view the files attached to this post.
robdocsmith
Sr. Propeller Head
Posts: 247
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: How to adjust spacing between autonumbered figure & capt

Post by robdocsmith »

Ahhh. Try changing the Auto-number to Inside Head with offset '0', and add a space or two to the auto-number definitions so it reads CF:Figure {n+}... (where the periods are replaced with spaces).

Rob
tekwrite
Propeller Head
Posts: 11
Joined: Fri Sep 14, 2007 7:28 am

Re: How to adjust spacing between autonumbered figure & capt

Post by tekwrite »

I tried the values but it won't "save" them. It reverts back to the original values after I click OK. The three spaces stayed put though.
robdocsmith
Sr. Propeller Head
Posts: 247
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: How to adjust spacing between autonumbered figure & capt

Post by robdocsmith »

That's odd. Can you change the value directly in the stylesheet in a text editor? It's usually in project folder/content/resources/stylesheets. Have a look for your caption style (make sure you're in the right medium section if you're using mediums (an @<medium> { } label) ) and change:

Code: Select all

mc-auto-number-position: outside-head;
mc-auto-number-offset: 1in;
to

Code: Select all

mc-auto-number-position: inside-head;
mc-auto-number-offset: 0;

Rob
tekwrite
Propeller Head
Posts: 11
Joined: Fri Sep 14, 2007 7:28 am

Re: How to adjust spacing between autonumbered figure & capt

Post by tekwrite »

Thanks! I will try that! I appreciate your help.
tekwrite
Propeller Head
Posts: 11
Joined: Fri Sep 14, 2007 7:28 am

Re: How to adjust spacing between autonumbered figure & capt

Post by tekwrite »

Changing the .css file worked! I have had to do that sometimes with variable sets (editing in notepad)
robdocsmith
Sr. Propeller Head
Posts: 247
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: How to adjust spacing between autonumbered figure & capt

Post by robdocsmith »

No worries. It was the offset that was creating the extra space you didn't want. Not sure why you couldn't edit in the CSS editor (I generally do all my styling in the raw CSS). Perhaps the wrong medium was selected in the editor.

Rob
tekwrite
Propeller Head
Posts: 11
Joined: Fri Sep 14, 2007 7:28 am

Re: How to adjust spacing between autonumbered figure & capt

Post by tekwrite »

Good point about the medium. Thanks!
Post Reply