Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,66 @@
"files.eol": "\n",
// Latex settings
"latex-workshop.linting.chktex.enabled": true,
"latex-workshop.latex.recipe.default": "latexmk",
"latex-workshop.linting.chktex.exec.path": "chktex",
"latex-workshop.latex.clean.subfolder.enabled": true,
"latex-workshop.latex.autoClean.run": "onBuilt",
"editor.formatOnSave": true,
"files.associations": {
"*.tex": "latex"
},
"latex-workshop.latex.recipes": [
{
"name": "latexmk",
"tools": [
"texliveonfly",
"latexmk"
]
},
{
"name": "latexmk (lualatex)",
"tools": [
"texliveonfly-lualatex",
"latexmk-lualatex"
]
}
],
"latex-workshop.latex.tools": [
{
"name": "texliveonfly",
"command": "texliveonfly",
"args": [
"%DOC%.tex"
]
},
{
"name": "texliveonfly-lualatex",
"command": "texliveonfly",
"args": [
"--compiler=lualatex", // if you want to have the shell-escape flag
"%DOC%.tex"
]
},
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1", // if you want to have the shell-escape flag
"-interaction=nonstopmode",
"%DOC%.tex"
]
},
{
"name": "latexmk-lualatex",
"command": "latexmk",
"args": [
"-lualatex",
"-synctex=1", // if you want to have the shell-escape flag
"-interaction=nonstopmode",
"%DOC%.tex"
]
}
],
"latex-workshop.latexindent.path": "latexindent",
"latex-workshop.latexindent.args": [
"-c",
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ENV PATH ${PATH}:\
WORKDIR /workspace
# Latexindent dependencies
RUN apt-get update -y && \
apt-get install -y --no-install-recommends cpanminus make gcc libc6-dev && \
apt-get install -y --no-install-recommends cpanminus make gcc libc6-dev python3 python-is-python3 && \
cpanm -n -q Log::Log4perl && \
cpanm -n -q XString && \
cpanm -n -q Log::Dispatch::File && \
Expand All @@ -63,7 +63,7 @@ RUN apt-get update -y && \
apt-get clean autoclean && \
apt-get autoremove -y && \
rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN tlmgr install latexindent latexmk && \
RUN tlmgr install latexindent latexmk texliveonfly && \
texhash && \
rm /usr/local/texlive/${TEXLIVE_VERSION}/texmf-var/web2c/*.log && \
rm /usr/local/texlive/${TEXLIVE_VERSION}/tlpkg/texlive.tlpdb.main.*
Expand Down