I switched to this workflow over a year ago, and I don’t remember what exactly was going wrong with others, I just remember that I couldn’t get stuff to work, e.g. with Pandoc alone.
I don’t actually use \cite{
and instead mainly use \footcite
which creates footnotes with citations. And the Pandoc Reference plugin can’t seem to do that (that I’ve seen).
My workflow:
I have a note, with citations à la \footcite{citekey}
in them.
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\footcite[243-246]{Chiang2005What}
then I run a shell command on that note. This is my most favorite plugin ever, it’s so cool to have that integrated into Obsidian.
This is basically just a shell script which looks something like this:
mkdir -p /home/Obsidian/Vault/{{title}}
pandoc -f markdown-blank_before_blockquote-auto_identifiers -w latex {{file_path:absolute}} -o /home/Obsidian/Vault/{{title}}/{{title}}.tex \
--template=/home/LaTeX/Template/default-template.tex \
[here are some filters that convert Obsidian ==highlighting== to LaTeX highlighting]
gnome-terminal -- bash -c "cd /home/Obsidian/vault/{{title}} && latexmk -pv- -pdflua < /dev/null && latexmk -c && exit; exec bash"
This creates a new folder with the note title in my vault, creates a .tex file from the .md note, and then turns that .tex file into a PDF.
What’s important for this is that it uses a LaTeX template file. And this is where I can really finetune my citations, the formatting of the PDF, precise line spacing, different edge cases of footnotes, and whatever else that might happen.
In the end it looks like this:
Initially I had to write my Obsidian note, then convert it to .tex and then go into a LaTeX editor, I used TeXstudio, to finetune and output the PDF. I’m able to skip this step by using a template and just spit out the PDF thanks to the shellcommands plugin.
It’d be neat to be able to have an overview in the sidebar of all the sources I used in a note, which is why I’m looking for an implementation of the pandoc-reference plugin.
Any ideas on how to do this without breaking my system?
Thanks 