There are a couple of things that are unclear to me after reading the
manual for GNU refer. I have been toying with it with limited success.

So these are my questions:
1. How do I change the label expression conditionally?
2. How do I make the citation appear in the footnotes with only a
superscript number in the text?
3. Is it possible to modify the references section to include a page number
for every time a reference was cited?
4. How do I delete the parentheses surrounding citations to more than one
source?

*Conditional label expressions.*

In the refer documentation, there are five types of citation:

Type 0: if the reference doesn't trigger the other types
> Type 1: If it has a J field
> Type 2: if it has an I field
> Type 3: if it has a B field
> Type 4: if it has a G or R field


And the label command between .R1 and .R2 applies to every citation beneath
it until the next .R1/.R2 block.

*Conditional based on type.*
I generally only cite two or three types of reference (cases, court rules,
and statutes), but there are *many *types of reference in the law, and they
all have particular styles. There are also rules about citation styles when
citing to a source that has already been cited. Therefore, I would like to
have another field, %Y(type), in the .ref file, and have refer choose the
label expression based on the content of that field. Is that doable?

*Conditional based on repetition.*
I know that I can use the # flag to trigger the short style of the citation
with refer, but the rule in my citation style is to use the long style the
first time a reference is cited and the short style or ibid style for every
subsequent reference. How can I trigger the short style or ibid style
programmatically?

*Citation footnotes*

Another thing I could not find in the documentation is how to make a
footnote of the reference with a superscript number as the label in the
text and the full citation as the label in the footnote, kind of like how
Wikipedia does it. I've tried a couple things, but I could not figure out
how to get that behavior

*Parentheses around multiple citations in text*

For some reason, when I do multiple citations in a row, if I do not add my
own argument to .[ or .], groff puts parentheses around the label. Because
the delimiter for US legal citations is a semicolon, I can suppress that by
just putting a semicolon after the .] of all but the last citation.
However, that is inconvenient for moving things around later because I will
not want a semicolon after every citation. So how do I stop the ( citation)
and make it use only ;?

*The references section*

*Changing the label style in the references section.*
If I do not do the no-label-in-references command, the references section
has a completely different label style from the style I defined in the
label expression. How do I change the style used in that REFERENCES section?

*Putting page numbers in the references section.*
In legal briefs, in the references section, we put each page number on
which a reference was cited. I also like to break that down into a cases
section, a rules section, and a statutes section (another reason for the %Y
field, I think). Is it possible to have refer add a reference for page
numbers to be collected and placed by groff in the references section for
every citation in text?

Reply via email to