// just like an fyi i added this to my settings.json that i pulled from // stackoverflow because i wanted to automatically have the pdf output // move to the export folder so it's a lot cleaner. can't really get around // the img folder being duplicated though because in the tex it wants the // same cwd and in the latexml it wants the same cwd so that requires some // duplication for the upload ANYWAY just like for posterity be aware ya feeL? // it breaks the auto preview if you don't change that though too. annoying. // this whole thing is a learning exercise for me. i'm a nerd not a tech pervert { "latex-workshop.latex.tools": [ // list of tools to be used by recipes { "name": "latexmk", "command": "latexmk", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-pdf", "-outdir=%OUTDIR%", "%DOC%" ], "env": {} }, { "name": "pdflatex", "command": "pdflatex", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "%DOC%" ], "env": {} }, { "name": "bibtex", "command": "bibtex", "args": ["%DOCFILE%"], "env": {} }, { "name": "pdf windows", "command": "move", "args": ["%OUTDIR_W32%\\%DOCFILE%.pdf", "%OUTDIR_W32%\\export"] }, // export folder :) or could copy if you wanted but lame { "name": "pdf linux & mac", "command": "mv", "args": ["%OUTDIR%/%DOCFILE%.pdf", "%OUTDIR%/export"] } // whewn i swap to linux i'll be glad i didn't remove this. ], "latex-workshop.latex.recipes": [ { "name": "latexmk", "tools": ["latexmk", "pdf windows"] // or "pdf linux & mac" if you are on linux or mac }, { "name": "pdflatex -> bibtex -> pdflatex * 2", "tools": ["pdflatex", "bibtex", "pdflatex", "pdflatex", "pdf windows"] // or "pdf linux & mac" if you are on linux or mac } ], }