Change citation style before-after periods
How can I change the placement of periods when I am changing a citation style? For instance, the citation number is currently a superscript at the end of a sentence after a period (ex: Currently the guidelines for the prevention of stroke in patients with stroke and transient ischemic attack advise against screening for hyperhomocysteinemia and vitamin supplementation for prevention of stroke.8)
If I have to submit it to a different journal, the formatting may now be required to have brackets with the citation number coming before the period (ex: Currently the guidelines for the prevention of stroke in patients with stroke and transient ischemic attack advise against screening for hyperhomocysteinemia and vitamin supplementation for prevention of stroke [8].)
Is there anyway to automatically do this with the Zotero Plugin in Microsoft Word or do I have to manually delete/insert/move the location of the periods for each citation?
Thanks in advance.
If I have to submit it to a different journal, the formatting may now be required to have brackets with the citation number coming before the period (ex: Currently the guidelines for the prevention of stroke in patients with stroke and transient ischemic attack advise against screening for hyperhomocysteinemia and vitamin supplementation for prevention of stroke [8].)
Is there anyway to automatically do this with the Zotero Plugin in Microsoft Word or do I have to manually delete/insert/move the location of the periods for each citation?
Thanks in advance.
Edit: If you want to follow instructions below, you will have to use the _final_ version of the document with field codes removed (use the "Remove Codes" button in the Zotero toolbar in Word). MAKE A COPY OF YOUR DOCUMENT _BEFORE_ REMOVING FIELD CODES!!! (this will break any links between the references in your document and your Zotero library)
You can semi-automate this by using Word's Find and Replace capabilities. In Word, open the Replace dialog (Ctrl + H). Click "More>>" then select "Use wildcards". In the "Find what" textbox type
.(\[[0-9, \-]@\])
and in the "Replace with" textbox type\1.
(note the space before \1). Now you can use the "Find Next" and "Replace" buttons to switch the position of the period. (I would not use "Replace All", since it may replace something you don't want)Thanks
Is that what you meant? (The citation numbers are supposed to be superscript)
.(\([0-9, \-]@\))
(changed the brackets that were preceded by a backslash to parentheses)That might be an en-dash (I used a hyphen in the string that I gave you). You can use this instead
.(\[[0-9, \-‒–—]@\])
which includes all sorts of dashes.https://github.com/ailintom/Cleanup-after-style-change-in-Zotero-for-Word
@adamsmith This is something that has bugged me as a weakness of CSL's ability to switch between author-date and numeric systems. I'd think that a CSL change to add a space before author-date citations makes sense, but is this sort of cleanup something that might be recommended for inclusion in the processors?
But may be the developers could find a more suitable place for this feature in the Zotero infrastructure.