Skip to content

Instantly share code, notes, and snippets.

@nukopy
Last active January 5, 2021 04:07
Show Gist options
  • Save nukopy/ec870ac99ff27dd9f126cab7bf8e700d to your computer and use it in GitHub Desktop.
Save nukopy/ec870ac99ff27dd9f126cab7bf8e700d to your computer and use it in GitHub Desktop.
Minimum settings for LaTeX in Docker on VSCode with extensions "Remote - Containers", "LaTeX Workshop"
#!/usr/bin/env perl
$pdf_mode = 3;
$latex = 'uplatex --kanji=utf8 -synctex=1 -file-line-error -halt-on-error %O %S';
$bibtex = 'upbibtex';
$dvipdf = 'dvipdfmx %O -o %D %S';
$makeindex = 'mendex %O -o %D %S';
{
"name": "debian-latex-jp",
"dockerComposeFile": "docker-compose.yml",
"extensions": ["lfs.vscode-emacs-friendly", "james-yu.latex-workshop"],
"service": "debian-latex-jp",
"workspaceFolder": "/workdir",
"shutdownAction": "stopCompose"
}
version: "3"
services:
debian-latex-jp:
image: nukopy/debian-latex-jp
command: sleep infinity
volumes:
- ../:/workdir
- ./.latexmkrc:/root/.latexmkrc
environment:
SHELL: "/bin/bash"
{
"latex-workshop.latex.autoBuild.interval": 0,
"latex-workshop.latex.autoBuild.run": "onFileChange",
"latex-workshop.latex.autoClean.run": "onBuilt",
"latex-workshop.latex.recipes": [
{
"name": "latexmk 🔃",
"tools": ["latexmk"]
}
],
"latex-workshop.latex.tools": [
{
"name": "latexmk",
"command": "latexmk",
"args": ["-silent", "%DOC%"],
"env": {}
}
],
"latex-workshop.latexindent.path": "/usr/local/texlive/2020/bin/x86_64-linux/latexindent",
"latex-workshop.message.update.show": false,
"latex-workshop.synctex.afterBuild.enabled": true,
"latex-workshop.view.pdf.viewer": "tab",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment