From 410f34394748f0cda68b5f59610131f61e92bff1 Mon Sep 17 00:00:00 2001 From: diasgarcia Date: Mon, 17 Aug 2026 08:52:38 -0300 Subject: [PATCH] Set latexindent as default LaTeX formatter - devcontainer.json: enable latex-workshop.formatting.latex and keep the auxiliary-files folder config as a commented-out example - Dockerfile: install texlive-extra-utils, which provides latexindent --- .devcontainer/Dockerfile | 4 ++++ .devcontainer/devcontainer.json | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 8b3839d..17c3f4a 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -6,6 +6,10 @@ ARG VARIANT="trixie" FROM hegerdes/vscode-latex:${VARIANT} +RUN apt-get update \ + && apt-get install -y --no-install-recommends texlive-extra-utils \ + && rm -rf /var/lib/apt/lists/* + ARG USERNAME=latex ARG USER_UID=1001 ARG USER_GID=1000 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 668c7a0..1ca000e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -19,7 +19,18 @@ "customizations": { "vscode": { "settings": { - "terminal.integrated.shell.linux": "/bin/bash" + "terminal.integrated.shell.linux": "/bin/bash", + "latex-workshop.formatting.latex": "latexindent", + // Optional: keep auxiliary files out of the project root. + // Also add `.latex-build/` to .gitignore. + // "latex-workshop.latex.auxDir": "%DIR%/.latex-build", + // "latex-workshop.latex.tools": [ + // { + // "name": "latexmk", + // "command": "latexmk", + // "args": ["-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-pdf", "-auxdir=%AUXDIR%", "%DOC%"] + // } + // ], }, "extensions": [ // Add the IDs of extensions you want installed when the container is created.