parsing rules

Users asking other users for bibliography formats.
Post Reply
thecritic
Posts: 156
Joined: Tue Aug 09, 2005 2:10 pm

parsing rules

Post by thecritic »

I'm confused about parsing rules. How do I "bind" a string to a following field such that the string is output if and only if that following field is NOT empty, but regardless of the state of the preceding field? The $ character removes the string if EITHER field is empty.
ozean
Posts: 461
Joined: Fri Mar 04, 2005 11:53 am
Location: Norway
Contact:

Post by ozean »

you have to use ~ and |

say you would only like to have a colon after the author name only if the following field (page) is not empty

it would look like this:

a|~: ~p

the | breaks the binding of the ": " sequence with the author field and the ~ in front of the page field connects the ": " sequence to the existance of the page field so as to require a value for the page field to display the ": " sequence.

hope this helps.
Post Reply