diff --git a/.devcontainer/build_from_scratch/Dockerfile b/.devcontainer/build_from_scratch/Dockerfile new file mode 100644 index 0000000..22a7d6d --- /dev/null +++ b/.devcontainer/build_from_scratch/Dockerfile @@ -0,0 +1,25 @@ +FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 + +LABEL dev.containers.features="common" + +RUN mkdir -p ~/tmp/texlive \ + && cd ~/tmp/texlive \ + && wget --no-check-certificate https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \ + && zcat < install-tl-unx.tar.gz | tar xf - \ + && cd $(ls -d install-tl-* | head -n 1) \ + && perl ./install-tl --no-interaction --repository https://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet \ + && rm -rf ~/tmp + +RUN latest_texlive_path="$(ls -d /usr/local/texlive/[0-9]* | sort -n | tail -1)/bin/x86_64-linux" \ + && echo "export PATH=\'$latest_texlive_path:\$PATH\'" >> ~/.bashrc \ + && echo "export PATH=\'$latest_texlive_path:\$PATH\'" >> ~/.zshrc \ + && echo "export PATH=\'$latest_texlive_path:\$PATH\'" >> ~/.profile \ + && env PATH=$PATH $latest_texlive_path/tlmgr path add \ + && $latest_texlive_path/tlmgr init-usertree + +COPY fonts /usr/share/fonts/chinese + +# [Optional] Uncomment this section to install additional OS packages. +RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install --no-install-recommends libfontconfig1 \ + && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/.devcontainer/build_from_scratch/devcontainer.json b/.devcontainer/build_from_scratch/devcontainer.json new file mode 100644 index 0000000..a7618d3 --- /dev/null +++ b/.devcontainer/build_from_scratch/devcontainer.json @@ -0,0 +1,24 @@ +{ + "name": "LaTeXspaces-build_from_scratch", + "build": { + "dockerfile": "./Dockerfile", + "context": "." + }, + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "installZsh": "true", + "username": "vscode", + "upgradePackages": "true" + }, + "ghcr.io/devcontainers/features/git:1": { + "version": "latest", + "ppa": "false" + } + }, + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "uname -a", + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode" +} \ No newline at end of file diff --git a/.devcontainer/build_from_scratch/fonts/FZDaBiaoSong-B06S.ttf b/.devcontainer/build_from_scratch/fonts/FZDaBiaoSong-B06S.ttf new file mode 100644 index 0000000..61c570e Binary files /dev/null and b/.devcontainer/build_from_scratch/fonts/FZDaBiaoSong-B06S.ttf differ diff --git a/.devcontainer/build_from_scratch/fonts/FZXiaoBiaoSong-B05S.ttf b/.devcontainer/build_from_scratch/fonts/FZXiaoBiaoSong-B05S.ttf new file mode 100644 index 0000000..2fe3215 Binary files /dev/null and b/.devcontainer/build_from_scratch/fonts/FZXiaoBiaoSong-B05S.ttf differ diff --git a/.devcontainer/build_from_scratch/fonts/SIMFANG.TTF b/.devcontainer/build_from_scratch/fonts/SIMFANG.TTF new file mode 100644 index 0000000..68334e2 Binary files /dev/null and b/.devcontainer/build_from_scratch/fonts/SIMFANG.TTF differ diff --git a/.devcontainer/build_from_scratch/fonts/SIMHEI.TTF b/.devcontainer/build_from_scratch/fonts/SIMHEI.TTF new file mode 100644 index 0000000..5bd4687 Binary files /dev/null and b/.devcontainer/build_from_scratch/fonts/SIMHEI.TTF differ diff --git a/.devcontainer/build_from_scratch/fonts/SIMKAI.TTF b/.devcontainer/build_from_scratch/fonts/SIMKAI.TTF new file mode 100644 index 0000000..d7c3b90 Binary files /dev/null and b/.devcontainer/build_from_scratch/fonts/SIMKAI.TTF differ diff --git a/.devcontainer/build_from_scratch/fonts/SIMSUN.TTC b/.devcontainer/build_from_scratch/fonts/SIMSUN.TTC new file mode 100644 index 0000000..6ca8de3 Binary files /dev/null and b/.devcontainer/build_from_scratch/fonts/SIMSUN.TTC differ diff --git a/.devcontainer/build_from_scratch/fonts/STXINGKA.TTF b/.devcontainer/build_from_scratch/fonts/STXINGKA.TTF new file mode 100644 index 0000000..53439a2 Binary files /dev/null and b/.devcontainer/build_from_scratch/fonts/STXINGKA.TTF differ diff --git a/.devcontainer/build_from_scratch/fonts/TIMES.TTF b/.devcontainer/build_from_scratch/fonts/TIMES.TTF new file mode 100644 index 0000000..3ea695f Binary files /dev/null and b/.devcontainer/build_from_scratch/fonts/TIMES.TTF differ diff --git a/.devcontainer/build_from_scratch/fonts/TIMESBD.TTF b/.devcontainer/build_from_scratch/fonts/TIMESBD.TTF new file mode 100644 index 0000000..e60dcff Binary files /dev/null and b/.devcontainer/build_from_scratch/fonts/TIMESBD.TTF differ diff --git a/.devcontainer/build_from_scratch/fonts/TIMESBI.TTF b/.devcontainer/build_from_scratch/fonts/TIMESBI.TTF new file mode 100644 index 0000000..9290e11 Binary files /dev/null and b/.devcontainer/build_from_scratch/fonts/TIMESBI.TTF differ diff --git a/.devcontainer/build_from_scratch/fonts/TIMESI.TTF b/.devcontainer/build_from_scratch/fonts/TIMESI.TTF new file mode 100644 index 0000000..ff92816 Binary files /dev/null and b/.devcontainer/build_from_scratch/fonts/TIMESI.TTF differ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..d779f84 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,67 @@ +{ + "name": "LaTeXspaces-prebuild", + "image": "ghcr.io/w0n9/images/ubuntu-latex:20241008", + // "remoteUser": "vscode", + "customizations": { + "vscode": { + "extensions": [ + // "GitHub.copilot", + "James-Yu.latex-workshop" + ], + "settings": { + // "files.autoSave": "onFocusChange", + // "latex-workshop.latex.autoBuild.run": "onSave", + // "latex-workshop.latex.recipe.default": "lastUsed", + // "latex-workshop.latex.outDir": "./PDF", + "latex-workshop.showContextMenu": true, //启用上下文LaTeX菜单 + "latex-workshop.latex.autoBuild.run": "onSave", //手动编译 + "latex-workshop.message.error.show": false, + "latex-workshop.message.warning.show": false, + "latex-workshop.latex.recipe.default": "lastUsed", // 编译时使用上一次使用的编译指令 + "latex-workshop.intellisense.package.enabled": true, //根据加载的包,自动完成命令或包 + "latex-workshop.latex.recipes": [ + { + "name": "latexmk", + "tools": [ + "latexmk" + ] + } + ], + "latex-workshop.latex.tools": [ + { + "name": "latexmk", + "command": "latexmk", + "args": [ + "-outdir=%OUTDIR%", + "%DOC%" + ], + "env": {} + } + ], + "latex-workshop.latex.clean.fileTypes": [ + "*.aux", + "*.bbl", + "*.blg", + "*.idx", + "*.ind", + "*.lof", + "*.lot", + "*.out", + "*.toc", + "*.acn", + "*.acr", + "*.alg", + "*.glg", + "*.glo", + "*.gls", + "*.ist", + "*.fls", + "*.log", + "*.fdb_latexmk" + ], + "latex-workshop.synctex.afterBuild.enabled": true, + } + } + }, + "features": {} +}