-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation for setting up VSCode #108
Open
Nokel81
wants to merge
2
commits into
gregorio-project:master
Choose a base branch
from
Nokel81:patch-4
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+99
−2
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<!-- | ||
Gregorio web site. | ||
Copyright (C) 2007-2015 The Gregorio project | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
--> | ||
<title>Gregorio project website</title> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | ||
<meta name="description" content="Free software for typesetting Gregorian chant" lang="en"> | ||
<meta name="keywords" content="Gregorian chant, gregorio, gabc, gregoriotex" lang="en"> | ||
<meta name="author" content="The Gregorio project"> | ||
<link rel="shortcut icon" href="./illus/fav.ico"> | ||
<link rel="icon" href="./illus/fav.ico"> | ||
<link rel="stylesheet" href="./style.css" type="text/css" title="default"> | ||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | ||
<script type="text/javascript" src="./gregorio-menu.js"></script> | ||
<script> | ||
var context = 'gregorio'; | ||
var title = 'Gregorio project website' | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<div id="ban"> | ||
<img src="./illus/harpedroite.png" title="" class="hd" alt="" /> | ||
<a id="haut" name="haut"></a> | ||
<div id="banniere"> | ||
</div> | ||
</div> | ||
<script>write_gre_menu();</script> | ||
<div class="flux"> | ||
| ||
<!-- IE patch--> | ||
<div class="text"> | ||
<!-- End of header --> | ||
<!-- header --> | ||
|
||
<h1>Configuring VSCode for Gregorio</h1> | ||
|
||
<h3>Automatic score compilation</h3> | ||
|
||
<p>A feature of Gregorio version 3.0 and later is the automatic compilation of gabc scores when needed to complete a <span class="latex">L<span class="alpha">a</span>T<span class="epsilon">e</span>X</span> document. For this feature to work, <code>lualatex</code> must be able to launch the <code>gregorio</code> program during compilation.</p> | ||
|
||
<p>VSCode can be configured (using the <span class="latex">L<span class="alpha">a</span>T<span class="epsilon">e</span>X</span>-workshop extension) to do this by creating a new tool and a new recipie for compilation.</p> | ||
|
||
<p>To create it, open up the JSON user preferences and add the following under "latex-workshop.latex.tools"</p> | ||
|
||
<code style="display: block;white-space: pre-wrap;"> | ||
{ | ||
"name": "lualatex", | ||
"command": "lualatex.exe", | ||
"args": [ | ||
"%DOC%" | ||
] | ||
}, | ||
</code> | ||
|
||
<p>And add the following under "latex-workshop.latex.recipes"</p> | ||
|
||
<code style="display: block;white-space: pre-wrap;"> | ||
{ | ||
"name": "LuaLaTex", | ||
"tools": ["lualatex"] | ||
}, | ||
</code> | ||
|
||
<p>This has been tested using <span class="latex">L<span class="alpha">a</span>T<span class="epsilon">e</span>X</span>Live 2023 and Gregorio 6.0.0.</p> | ||
|
||
<p>You should now be able to open up the extension commands and run the "LuaLaTex" recipe on your root file.</p> | ||
|
||
<h3>Using VSCode</h3> | ||
|
||
<p>Once VSCode is ready, refer to <a href="introduction-editor.html">the introduction page</a> to start using Gregorio!</p> | ||
|
||
<!-- footer --> | ||
</div> | ||
<div class="bottom"> | ||
</div> | ||
<script>initialize_menu();</script> | ||
</body> | ||
</html> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly, this will work only with the Gregorio that comes packaged with TeXLive. Gregorio updates installed outside the TeXLive system requires the
--shell-escape
option to be active, which I don't see in this configuration.Now, since we haven't had such an update in several years now, it may not be worth mentioning here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was getting a warning for providing the
--shell-escape
option which is why I didn't provide it here. I can add a note about this being specifically for the TeXLive version