inSileco / inSileco.github.io

:globe_with_meridians: Our blog powered by blogdown
https://blog.insileco.io/
GNU General Public License v3.0
8 stars 1 forks source link

2023/04/02/academic-writing-with-markdown-visual-studio-code-and-zotero/ #104

Open utterances-bot opened 10 months ago

utterances-bot commented 10 months ago

Academic writing with Markdown, Visual Studio Code and Zotero

https://blog.insileco.io/2023/04/02/academic-writing-with-markdown-visual-studio-code-and-zotero/

colmoneill commented 10 months ago

Hi, thanks for this post! I have been using Codium to write academic .md files for the last two year, betterBibTex and Pandoc for conversion. Your workflow is quite nice with the extensions, I'll have to try those next.

My question to you is: do you have a way of contextually citing referenced work? By this I mean that I often write sentences like as argued by Author X (year of reference) lorem ipsum doloret but when I cite in this way, the citation states (Author X, year) not just the year.

I don't know if I'm being very clear, I guess what I am looking for is a way of labelling the citation marks? So that I can manually mark out what needs to appear in the body of the text, but the correct reference still gets added to the references list at the end of the doc. Would you know a way of doing this?

Thanks and best regards,

Colm

colmoneill commented 10 months ago

For anybody that this might help later on: I have found the way to do this, and it was simply within the Pandoc documentation for citation syntax. https://pandoc.org/MANUAL.html#citation-syntax

I mostly use [@citationKey] to insert citations in a document, but simply adding - in front of the @ symbol outputs just the date of the reference. [-@citationKey]

More details:

In complex cases, you can force something to be treated as a locator by enclosing it in curly braces or prevent parsing the suffix as locator by prepending curly braces:

[@smith{ii, A, D-Z}, with a suffix]
[@smith, {pp. iv, vi-xi, (xv)-(xvii)} with suffix here]
[@smith{}, 99 years later]

A minus sign (-) before the @ will suppress mention of the author in the citation. This can be useful when the author is already mentioned in the text:

Smith says blah [-@smith04].

You can also write an author-in-text citation, by omitting the square brackets:

@smith04 says blah.
@smith04 [p. 33] says blah.

This will cause the author’s name to be rendered, followed by the bibliographical details. Use this form when you want to make the citation the subject of a sentence.

KevCaz commented 5 months ago

Hi @colmoneill sorry to answer soooo late (well and actually not even answering your question), for some reason I have missed this issue. Happy you've found your answer in the manual! Thanks for your post!