-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tag author date references and format references.yml entries #14
Comments
Just a note that you need to hit the regex button in Find and Replace before using the suggested find formulas. That button looks like this |
Oh, speaking of which, you may also need to hit the Match Case button as well |
@geealbers I was able to do the find and replace for the essays. But when I went to test the bibliography find and replace, it was a little funky. It seems to skip every other entry. I've included a screenshot. Not sure if that's helpful. . |
@Erin-Cecele, I'm not sure what's going on but when I used the regex pattern on the same file as in your screenshot, it works for me. We might need to look at it together |
@dimrkh please closely read Greg's instructions above. I have done the first portion pertaining to the essays. We now need your help with the second part, References YAML.
Let me know if you have any questions. Thank you for your help! |
@geealbers This is complete aside from one open question in PR #20. Thank you @dimrkh for your help! |
Instructions follow. I did an initial test for essay 1 in the
add-author-date
branch, which you can just take over and work in for the remaining essays.Essays
For each essay, run a regex find and replace with the patterns below. This will wrap the author date reference in a single set of curly brakckes, which we can then use to go back and turn into shortcodes with a single global command. It will catch standard uses like "Bachhuber 2006"; entries with "et al.", like "Kuniholm et al. 1996"; and entries with a and b years, like "Emanuel 2014a" and "Emanuel 2014b". However, it will not work for multiple name entries, like; "Aruz, Benzel, and Evans 2008"; or for hyphenated names or dates like "Suchowska-Ducke 2015" or "Whitley et al. 2005–6". So, you need to go through one at a time and either do the auto-replace by clicking the Replace button if the pattern caught the full reference, or manually highlight the full reference and add the curly brackets that way.
Find:
Replace:
References YAML
For each bibliography file, delete the "References Cited" heading and leave two line breaks at the top of the file. Run a regex find and replace using the pattern below, but update number in
essay: 1
to reflect the actual essay number. Copy and paste the results into references.yml, and make sure it's all indented in properly.Find:
Replace:
Next, manually go through the references and create the appropriate
id
text. Theseid
s will ultimately match those surrounded in curly brackets in the essays. So if you're not sure of the formatting, you can do a search in the essay itself to see how the editors formatted it. A couple examples:The text was updated successfully, but these errors were encountered: