Shell commands plugin: Convert Obsidian .md file to .tex LaTeX file and then directly compile it to PDF with pdflatex (trouble with the last step)

See here for more info: Convert Obsidian .md file to .tex LaTeX file and then directly compile it to PDF with pdflatex (trouble with the last step) · Taitava/obsidian-shellcommands · Discussion #360 · GitHub

Basically, I’d like to use the shell commands plugin to convert my Obsidian file directly to PDF via LaTeX so that it uses the latter’s citation and formatting capabilities.

The script is

mkdir -p /Obsidian/Output/{{title}} 
pandoc -r markdown-auto_identifiers -w latex {{file_path:absolute}} -o /Obsidian/Output/{{title}}/{{title}}.tex --template="s/LaTeX/My Templates/Paper/default.tex" --lua-filter=/home/paul/Documents/LaTeX/Filters/highlight.lua --lua-filter=/Documents/LaTeX/Filters/highlight-period.lua --lua-filter=/Documents/LaTeX/Filters/Span.lua --lua-filter=/Documents/LaTeX/Filters/Span-period.lua & pdflatex {{title}}.tex

The last part is where I’m having trouble: The little pop up in the top right corner keeps telling me that it’s Executing my scrit but if I look in that folder there’s nothing there but the .tex file. For reference, if I run it manually from the command line it does exactly what I want it to.

Thanks :slight_smile: