When you need to present lists of items in a stacked format, you may wish to include to the right of the next to last item an 'and' or an 'or' to signal that the list is about to end.

Manual Approach:    When the list is static, all you need to do is type the appropriate conjunction between the next to last and last item. But when the list is fluid, a much more challenging issue is presented, one that is  particularly difficult to program for.

 

1.   Here is my list of jobs:

a.Take out the garbage;

b.Mow the lawn;

c.Wash the dishes;

d.Vacuum the floor.

 

   Viewing the example about, you can see some of the complexities.The first issue deals with the punctuation of the intermediate and final choices.  Item d. ends with a period, whereas the others with a semicolon.

   You could append an 'and' at the end a-c and them remove (manually or with the help of a program) the unnecessary 'and' when the document is fully assembled.

   But that necessarily assumes that d. will always be the last choice. It doesn't work if you choose a and b (and not c and d) because the final punctuation mark is a semicolon, and you want a period.

Automated Approach:

   Other programs make setting up the handling of the 'final and' a programming nightmare.

   It's easy and all plain text and plainly visible in Pathagoras.

   If the last item is always the last item (example, the last item is "Other ___________."):.

 Since you are not worried about interim punctuation. Just add <&FINAND> (the case doesn't matter. ,<&FinAnd> works just as well.)

Here is my list of jobs:

a.Take out the garbage;<&FINAND>

b.Mow the lawn;<&FINAND>

c.Wash the dishes;<&FINAND>

d.Vacuum the floor;<&FINAND>

e.Other _______________.

 

 There are two part to this code. The first part is the '<&', and and text you want (here we use FIN for final. The second part is 'AND' and a final '>'

   If the last item can be any item in the list, including the first item,

There are 3 parts to this code. The first part is '<&' and any identifying text (here we use FIN for final. The second part is the final lines punctuation (which can only be a period) and the third part, 'AND' and a final '>'. The code must be appended to each line that could be the final line.

 

Here is my list of jobs:

a.Take out the garbage;<&Fin.And>

b.Mow the lawn;<&Fin.And>

c.Wash the dishes;<&Fin.And>

d.Vacuum the floor.

 

NOTE: The 'identifying text' must be unique for each list. This is how Pathagoras knows how to process multiple lists in your document as inidividual units.But they can be similar. For example <&FIN1AND> and <&FIN2AND> are unique enough to identify the two lists below.

Here is my list of jobs:

a.Take out the garbage;<&FIN1And>

b.Mow the lawn;<&FIN1And>

c.Wash the dishes;<&FIN1And>

d.Vacuum the floor.
 

This is a list of your jobs:

a.Do the laundry;<&Fin2And>

b.Edge the yard;<&Fin2And>

c.Empty the dishwasher;<&Fin2And>

d.Mop the floors.

 

OR conjunction:

For the Or conjunction, just substitute 'Or' for 'And' in any of the above setups.

 

Notes:

   Before adding the <&. . .> text, make sure the paragraphs have all the punctuation you want using the assumption that all elements will be chosen. Pathagoras doesn't 'add' the punctuation to the last line; it backspaces and replaces it.

   The 'And' or 'AND' or 'and' (or 'OR' or 'Or' or 'or') that you type in the list will control the replacement.

   The above lists suggest that the user will manually remove the items that are not to remain on the list. And if you do that, press Alt-P to processs the <&Fin. . .> blocks.

   The below example applies '<<*Options*' blocks to the last list shown above. When this list is processed, the <&Fin. . .> blocks are processed automatically with the rest of the document. (When processing a list with a 'Final And/Or' tag, you are presented 'connectors' ('and', 'or', 'space', etc.) after you select the second item. Choose 'None' because the connector is already selected.)

 

Here is my list of jobs:

<<*Options*!MyJobs!Garbage/Lawn/Dishes/Vacuum*

a.Take out the garbage;<&FIN1And>/

b.Mow the lawn;<&FIN1And>/

c.Wash the dishes;<&FIN1And>/

d.Vacuum the floor.

>>

This is a list of your jobs:

<<*Options*!YourJobs!Laundry/Yard/Dishwasher/Mop*

a.Do the laundry;<&Fin2And>/

b.Edge the yard;<&Fin2And>/

c.Empty the dishwasher;<&Fin2And>/

d.Mop the floors.

>>

Created with Help & Manual 7 and styled with Premium Pack Version 2.70 © by EC Software