Page 1 of 1
Posted: 2018-11-11 08:20:37
I am trying to write a legal citation macro that looks like this: United States v. [the name of the appellant], [volume number of the legal reporter] M.J. [the page number] (C.A.A.F. [the year the opinion was issued]).
Any help would be appreciated. Thanks
Posted: 2018-11-11 09:29:36
I think we might need a bit more information to understand what you are trying to accomplish. The description that you are giving is of citations in your document that you are trying to find? When you find them, what do you want the macro to do with them?
Or maybe I am completely misunderstanding…
Posted: 2018-11-11 15:51:46
Thanks so much for your interest in helping me.
I already have the citations. I just need to type it in an exact format. So when the macro runs it should
first toggle to italics, then print out "United States v. "
Then I want to be able to input the name of the case
Next, I want to toggle out of italics and have the macro print out ", " and allow me to input the volume number of the reporter in which the case is located.
Next, print out "M.J. "
Allow me to input the page number of the volume on which the case is found
And then print out "(C.A.A.F. "
Allow me to input the year the case was decided
And then print out ")"
Posted: 2018-11-11 19:08:51
Nisus macros aren't really ideal for interactive use of the kind you are aiming for. For example there is really no need to work 'bit by bit', and in fact it's often just inconvenient, though you can write the macro that way if you prefer.
Here is a macro that will do what you want. It works by asking for the bits of information. Then it puts out the information all at once as one citation. It's embedded in a endless loop so you'll have to interrupt it from the Input dialog by clicking on "Stop Macro". I think the inner workings should be easy enough to understand, so you could adjust it to your needs as required.
Alternative methods in Nisus would be to use Glossary entries or Quick Fix to do this. Personally I would probably just type in the changing bits in the file then use a single Find/Replace statement to adjust the formatting and add the missing parts. But how that would work would depend on the exact format of the information, the number of citations entered at any given time, how often you need to do this, and other similar variables.
Posted: 2018-11-12 04:28:32
Thanks so much. It works perfectly.