PROBLEM WITH STEP

Post here questions and problems related to editing and publishing DITA content.
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

PROBLEM WITH STEP

Post 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
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: PROBLEM WITH STEP

Post 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
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

Re: PROBLEM WITH STEP

Post by Le Basque »

Thank you

I forgot to mention that this is a PDF publication
CSS also works for PDF publication?
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

Re: PROBLEM WITH STEP

Post 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

Code: Select all

10.XXXXXXX YYYYYYYY.
I WANT

Code: Select all


10.  XXXXXXX YYYYYYYY.
Thank you
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: PROBLEM WITH STEP

Post 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
Jamil
Posts: 97
Joined: Thu Oct 23, 2008 6:29 am

Re: PROBLEM WITH STEP

Post 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>
Post Reply