Configuring VSCode for Gregorio
+ +Automatic score compilation
+ +A feature of Gregorio version 3.0 and later is the automatic compilation of gabc scores when needed to complete a LaTeX document. For this feature to work, lualatex must be able to launch the gregorio program during compilation.
VSCode can be configured (using the LaTeX-workshop extension) to do this by creating a new tool and a new recipie for compilation.
+ +To create it, open up the JSON user preferences and add the following under "latex-workshop.latex.tools"
+ +
+ {
+ "name": "lualatex",
+ "command": "lualatex.exe",
+ "args": [
+ "%DOC%"
+ ]
+ },
+
+
+And add the following under "latex-workshop.latex.recipes"
+ +
+ {
+ "name": "LuaLaTex",
+ "tools": ["lualatex"]
+ },
+
+
+This has been tested using LaTeXLive 2023 and Gregorio 6.0.0.
+ +You should now be able to open up the extension commands and run the "LuaLaTex" recipe on your root file.
+ +Using VSCode
+ +Once VSCode is ready, refer to the introduction page to start using Gregorio!
+ + +
+