-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
208 additions
and
59 deletions.
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 @@ | ||
FROM alexpovel/latex |
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,69 @@ | ||
{ | ||
"name": "LaTeX", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
}, | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"James-Yu.latex-workshop" | ||
], | ||
"containerEnv": { | ||
// Inside the container, we want to compile like we are in CI, hence define this | ||
// variable. It's important for the Makefile to select the correct behaviour. | ||
"CI": "true", | ||
// The base image has this locale: | ||
// $ docker run --rm --entrypoint="locale" alexpovel/latex | ||
// LANG= | ||
// LANGUAGE= | ||
// LC_CTYPE="POSIX" | ||
// LC_NUMERIC="POSIX" | ||
// LC_TIME="POSIX" | ||
// LC_COLLATE="POSIX" | ||
// LC_MONETARY="POSIX" | ||
// LC_MESSAGES="POSIX" | ||
// LC_PAPER="POSIX" | ||
// LC_NAME="POSIX" | ||
// LC_ADDRESS="POSIX" | ||
// LC_TELEPHONE="POSIX" | ||
// LC_MEASUREMENT="POSIX" | ||
// LC_IDENTIFICATION="POSIX" | ||
// LC_ALL= | ||
// *However*, starting this very same container in VSCode's Remote Containers, | ||
// the locale changes to: | ||
// $ locale | ||
// locale: Cannot set LC_CTYPE to default locale: No such file or directory | ||
// locale: Cannot set LC_MESSAGES to default locale: No such file or directory | ||
// locale: Cannot set LC_ALL to default locale: No such file or directory | ||
// LANG=en_US.UTF-8 | ||
// LANGUAGE= | ||
// LC_CTYPE="en_US.UTF-8" | ||
// LC_NUMERIC="en_US.UTF-8" | ||
// LC_TIME="en_US.UTF-8" | ||
// LC_COLLATE="en_US.UTF-8" | ||
// LC_MONETARY="en_US.UTF-8" | ||
// LC_MESSAGES="en_US.UTF-8" | ||
// LC_PAPER="en_US.UTF-8" | ||
// LC_NAME="en_US.UTF-8" | ||
// LC_ADDRESS="en_US.UTF-8" | ||
// LC_TELEPHONE="en_US.UTF-8" | ||
// LC_MEASUREMENT="en_US.UTF-8" | ||
// LC_IDENTIFICATION="en_US.UTF-8" | ||
// LC_ALL= | ||
// There's three errors because the container doesn't seem to have the correct | ||
// locale files: | ||
// $ locale -a | ||
// locale: Cannot set LC_CTYPE to default locale: No such file or directory | ||
// locale: Cannot set LC_MESSAGES to default locale: No such file or directory | ||
// locale: Cannot set LC_COLLATE to default locale: No such file or directory | ||
// C | ||
// C.UTF-8 | ||
// POSIX | ||
// This leads to `lualatex` erroring out, see also https://tex.stackexchange.com/q/374303/120853 | ||
// Using "POSIX" is possible and brings us back to vanilla container locale: | ||
"LC_ALL": "POSIX" | ||
}, | ||
} |
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
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,11 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
// List of extensions which should be recommended for users of this workspace. | ||
"recommendations": [ | ||
"ms-vscode-remote.remote-containers", | ||
"James-Yu.latex-workshop" | ||
], | ||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
"unwantedRecommendations": [] | ||
} |
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,39 @@ | ||
{ | ||
"latex-workshop.latex.recipes": [ | ||
{ | ||
"name": "lualatex", | ||
"tools": [ | ||
"lualatex" | ||
] | ||
}, | ||
{ | ||
"name": "latexmk", | ||
"tools": [ | ||
"latexmk" | ||
] | ||
} | ||
], | ||
"latex-workshop.latex.tools": [ | ||
{ | ||
"name": "lualatex", | ||
"command": "lualatex", | ||
"args": [ | ||
"--shell-escape", | ||
"--synctex=1", | ||
"--recorder", | ||
"%DOC%" | ||
] | ||
}, | ||
{ | ||
"name": "latexmk", | ||
"command": "latexmk", | ||
"args": [ | ||
// latexmk doesn't need a file argument, but provide it to avoid running | ||
// on *all* found tex files | ||
"%DOC%" | ||
] | ||
} | ||
], | ||
"latex-workshop.latex.recipe.default": "lastUsed", | ||
"latex-workshop.chktex.enabled": true | ||
} |
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
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
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
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