Creating customized ordered list

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
navoff
Sr. Propeller Head
Posts: 201
Joined: Mon Oct 06, 2008 7:26 am
Contact:

Creating customized ordered list

Post by navoff »

I have a procedure I'm trying to document. It involves a series of steps for the user to execute. I want to use the autoformatting of an ordered list but I want the output to appear like this:

Step 1: <text>
Step 2: <text>

I had figured out how to do this in word by custominzing my numbered list. Is there a way to get this effect using stylesheets in Flare?
JRP
"How many slime-trailing, sleepless, slimy, slobbering things do you know that will run and hide from your Eveready?"
--Maureen Birnbaum, Barbarian Swordsperson
SteveS
Senior Propellus Maximus
Posts: 2090
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Creating customized ordered list

Post by SteveS »

For my comments I use the autonumber setup:

Code: Select all

R:COMMENT {Gn+}: 
R is the counter I've assigned, Comment is the text that appears each time and it is globally updated.

So, try

Code: Select all

R:Step {Gn+}
Notice there is a space after the text Step

HTH
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
navoff
Sr. Propeller Head
Posts: 201
Joined: Mon Oct 06, 2008 7:26 am
Contact:

Re: Creating customized ordered list

Post by navoff »

Are you assigning this as part of a paragraph style? I tried creating an li style and modifying the mc-auto-number-format but since the list is already defined as an ordered list, I get:

Code: Select all

1. Step 1: <text>
2. Step 2: <text>
Even setting the list-style-type to none didn't fix the problem.

When I tried creating a paragraph style using the mc-auto-number-format, I could get:

Code: Select all

Step 1: <text>
Step 2: <text>
However, I can't get the text to offset correctly. In other words, when it wraps, it wraps under the Step 1:, Step 2: etc.:

Code: Select all

Step 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris 
iaculis viverra massa. Proin vel quam. Mauris at libero eu neque lobortis 
pulvinar. Donec varius felis id nibh.

Step 2: Nulla dignissim, augue quis hendrerit aliquam, libero augue 
adipiscing ipsum, et ultrices dui nisi quis felis. Ut lorem. Nam vel 
urna eget nibh ultrices adipiscing. Class aptent taciti sociosqu ad 
litora torquent per conubia nostra, per inceptos himenaeos. 
Suspendisse in urna. Curabitur interdum aliquet nisl.
I tried setting a left margin of 50px for the paragraph style's box margin-left attribute and then setting a -50px offset for the mc-auto-number-offset but all that did is indent everything, including the auto-numbering:

Code: Select all

       Step 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris
       iaculis viverra massa. Proin vel quam. Mauris at libero eu neque lobortis 
       pulvinar. Donec varius felis id nibh.

       Step 2: Nulla dignissim, augue quis hendrerit aliquam, libero augue
       adipiscing ipsum, et ultrices dui nisi quis felis. Ut lorem. Nam vel 
       urna eget nibh ultrices adipiscing. Class aptent taciti sociosqu ad 
       litora torquent per conubia nostra, per inceptos himenaeos.  
       Suspendisse in urna. Curabitur interdum aliquet nisl.
Ideally, it should look like this:

Code: Select all

Step 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris
        iaculis viverra massa. Proin vel quam. Mauris at libero eu neque lobortis 
        pulvinar. Donec varius felis id nibh.

Step 2: Nulla dignissim, augue quis hendrerit aliquam, libero augue
        adipiscing ipsum, et ultrices dui nisi quis felis. Ut lorem. Nam vel 
        urna eget nibh ultrices adipiscing. Class aptent taciti sociosqu ad 
        litora torquent per conubia nostra, per inceptos himenaeos.  
        Suspendisse in urna. Curabitur interdum aliquet nisl.
I just haven't figured out the right combination of settings (if there are any) to make it happen.
JRP
"How many slime-trailing, sleepless, slimy, slobbering things do you know that will run and hide from your Eveready?"
--Maureen Birnbaum, Barbarian Swordsperson
beagley
Sr. Propeller Head
Posts: 182
Joined: Tue May 06, 2008 1:33 pm
Location: Vermont

Re: Creating customized ordered list

Post by beagley »

You're really close.

I have done exactly as you are trying to do.

I did it with a paragraph style assigned to the first paragraph of each step, with mc-auto-number-format set to "Step {n+}:" I set mc-auto-number-position to "inside-head".. Then I set margin-left to -4.50em. I put the whole procedure in a div with a margin of 4.5em.

Result:
http://www2.pcc.com/staff/douglas/procedure01.png
beagley
Sr. Propeller Head
Posts: 182
Joined: Tue May 06, 2008 1:33 pm
Location: Vermont

Re: Creating customized ordered list

Post by beagley »

Looking at your "ideal" example again, I'm not sure I've been helpful. You want the first LINE of the paragraph to indent OUTWARD, but no the whol first paragraph of a step.

I'm not sure if CSS has elements for controlling the first line of a paragraph.

Maybe my system will serve as a close second place? :-)

Good luck!
-d
SteveS
Senior Propellus Maximus
Posts: 2090
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Creating customized ordered list

Post by SteveS »

beagley wrote:...I'm not sure if CSS has elements for controlling the first line of a paragraph...
Yup. Try text-indent to create "old" style paragraphs where the first line has an indent.

So, for the original poster, you are creating a paragraph style with mc-auto-number-format properties set (for your autonumbers), some method on controlling the whole paragraph indent (margin-left), and then text-indent.

HTH
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
Post Reply