2009/2/5 Ray Van Dolson <[email protected]> > Hi guys; can I get some best practice advice on how to do step by step > lists that include fixed width font? For example: > > Here are some sample instructions: > > 1. First, run the following shell commands: > > # command1 > # command2 > > 2. Now, run these commands: > > # command3 -1 -2 -3 -4 > <output> > > 3. That's it! > > Currently I'm using styles and formatting. I begin my list, and after > entry point 1 I remove the automatically created "2.", indent it in, > type my text and then use a new style I created that uses a fixed width > font. > > This works "OK", but if I have multiple lines of input it looks a > little weird and I keep having to reapply my style. > > Surely there must be a quicker more efficient way to do this. > > Any advice? > > Ray > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > Hello Ray,
I think a good way of doing what you want is to define one new style for the shell commands and one numbered paragraph style. First create the shell commands paragraph style. The properties should be something like: o indentation x cm o monospace font (e.g. Courier New, Bitstream Vera Sans Mono) o some spacing above and below the paragraph Then modify the style Numbering 1: o in the numbering page of the style dialog select Numbering 1 o in the organizer page select "shell commands" as next paragraph o make any other modification you may need Now, if you want to be decadent customize the keyboard and create a shortcut that applies the paragraph style Numbering 1. You are now ready. Select the style Numbering 1 and type your text (the numbering appears automatically). When you are done, press return and automagically you can start inserting the shell commands. Everything is already formatted. When you are done with the list of commands, select o the style Numbering 1 if you want to add another step o the default style if you are done When you need to restart numbering the steps, right click on the paragraph and select "Restart numbering" from the context menu. A bit complicated to set up, but afterwards really easy. Cheers, Michele
