- Open your settings.json
- Under
"latex-workshop.latex.tools" add a new entry with your desired post-processing operation. The arguments and command depend on what you want to do, in my case it's generating a glossary so I just need the following:
{
"name": "makeglossaries",
"command": "makeglossaries",
"args": [
"%DOCFILE%"
],
"env": {}
},
- Under
"latex-workshop.latex.recipes" add a new entry. The order of the elements in "tools" is very important. In this case makeglossaries could go after or before bibtex, it doesn't really matter:
{
"name": "pdflatex ➞ makeglossaries ➞ bibtex ➞ pdflatex × 2",
"tools": [
"pdflatex",
"makeglossaries",
"bibtex",
"pdflatex",
"pdflatex"
]
},
- Press
CTRL+S to save your settings.
- Now press
CTRL+SHIFT+P to open the command palette. Search for LaTeX Workshop: Build with recipe and select your recipe. Done.