Page 1 of 1
PROBLEM WITH STEP
Posted: Tue Apr 29, 2014 4:18 pm
by Le Basque
Hi,
From step 10 there is more space between the point and the text
Example :
Code: Select all
1. Goto x
2. fdfdfdf
3. gggggg
...
10.fffdfdfd
where can I change the space between the step number and the text ?
Thank you
Re: PROBLEM WITH STEP
Posted: Tue Apr 29, 2014 5:18 pm
by alex_jitianu
Hello,
From the look of the sample I think your CSS uses counters for the the list numbering. The counter is probably put on a BEFORE pseudo element. In this case you can use the
width property to impose a fixed width so that all items have the text aligned. Here is a sample from the DITA CSS, modified to impose a fixed with for the counter part:
Code: Select all
*[class~="topic/ol"] > *[class~="topic/li"]:before {
content: counters(item-count, ".", decimal) ". ";
width:2em;
font-weight:bold;
}
There
Best regards,
Alex
Re: PROBLEM WITH STEP
Posted: Tue Apr 29, 2014 5:33 pm
by Le Basque
Thank you
I forgot to mention that this is a PDF publication
CSS also works for PDF publication?
Re: PROBLEM WITH STEP
Posted: Wed Apr 30, 2014 2:36 pm
by Le Basque
In may fo file :
Code: Select all
<fo:list-item space-after="3pt" space-before="3pt">
<fo:list-item-label end-indent="label-end()" keep-together.within-line="always" keep-with-next.within-line="always">
<fo:block font-weight="bold" text-align="start"><fo:inline/>10. </fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()"><fo:block>
<fo:block>XXXXXXX YYYYYYYY.</fo:block>
</fo:block>
</fo:list-item-body>
</fo:list-item>
I OBTAINS
I WANT
Thank you
Re: PROBLEM WITH STEP
Posted: Wed Apr 30, 2014 2:53 pm
by alex_jitianu
Hi,
I had the impression that your question was related to the author mode in Oxygen. I'm sorry for the confusion... The solution I've described above was intended for the Oxygen Author mode. Unfortunately I don't have that much experience with XSLT-FO so I don't know what advice to give you. Maybe it will help to redirect this question to a FO specific discussion list.
Best regards,
Alex
Re: PROBLEM WITH STEP
Posted: Wed Apr 30, 2014 8:45 pm
by Jamil
Le Basque wrote:
where can I change the space between the step number and the text ?
Thank you
Why not try wrapping your fo:list-item within an fo:list-block?
Then you can use the following fo:list-block attributes:
provisional-distance-between-starts
provisional-label-separation
start-indent
Try different values until you get the desired result.
Starting with something this this:
Code: Select all
<fo:list-block provisional-distance-between-starts="10mm"
provisional-label-separation="10mm"
start-indent="5mm">
</fo:list-block>