Skip to content

Commit ebc0497

Browse files
committed
Merge branch 'feat/240308'
2 parents ca92a0c + 7773edc commit ebc0497

22 files changed

+898
-50
lines changed

.vscode/settings.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,47 @@
88
"argmin",
99
"Biconditional",
1010
"bijective",
11+
"blkarray",
12+
"cleveref",
13+
"codomain",
1114
"colback",
15+
"CSIE",
16+
"currenvir",
17+
"datetime",
18+
"extsizes",
19+
"graphicx",
20+
"Hsieh",
21+
"indegree",
1222
"injective",
23+
"Königsberg",
24+
"labelformat",
25+
"Leonhard",
26+
"libfontconfig",
27+
"loopless",
28+
"multiedge",
29+
"multigraph",
30+
"multigraphs",
31+
"NCKU",
32+
"NCTU",
33+
"nonstopmode",
34+
"noto",
35+
"outdegree",
36+
"OUTDIR",
37+
"pairwisely",
1338
"parbox",
39+
"Pregel",
1440
"restatable",
15-
"subfile"
41+
"subfigure",
42+
"subfile",
43+
"subrefformat",
44+
"subsec",
45+
"surjective",
46+
"synctex",
47+
"targetenvir",
48+
"unrooted",
49+
"upscalepics",
50+
"xecjk",
51+
"xifthen"
1652
],
1753
"latex-workshop.message.latexlog.exclude": [
1854
"Unknown CJK family"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The handouts should be present by 4 ~ 10 days after the class, based on Ray's wo
4040
<div id="package-list"></div>
4141

4242
```
43-
babel caption cleveref datetime2 environ geometry listings listingsutf8 mathabx mathtools pdfcol pgf pgfplots preprint ragged2e subfiles tcolorbox tikzfill tools
43+
babel caption cleveref datetime2 environ geometry listings listingsutf8 mathabx mathtools pdfcol pgf pgfplots preprint ragged2e subfiles tcolorbox tikzfill tools multirow xifthen ifmtarg
4444
```
4545
4646
> [!TIP]
@@ -133,4 +133,4 @@ For content correctness related problems (like misleading definitions) or supple
133133
134134
Contribution like [pull requests](https://github.com/coding-ray/gt-course/pulls) are welcomed.
135135
136-
Please check the [rules and notes](doc/dev-notes.md) before
136+
Please check the [rules and notes](doc/dev-notes.md) in advance.

doc/dev-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
1. Build the handout-environment image.
3838

3939
```bash
40-
cd src/build-handouts/handout-env-image
40+
cd src/build-handouts/env-image
4141
./build-handout-env.sh
4242
```
4343

src/build-handouts/env-image/Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,37 @@ USER ${USERNAME}
2323
ENV HOME="$HOME_DIR"
2424
ENV PATH="$HOME/.texlive/bin/x86_64-linux/:$PATH"
2525
ARG INSTALL_TL_URL="https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz"
26+
ARG TL_DOC_PATH=$HOME/.texlive/texmf-dist/doc/
2627
RUN cd /tmp && \
2728
echo "Downloading TeX Live installer..." && \
2829
wget -qO- "$INSTALL_TL_URL" --no-check-certificate | tar -xz && \
2930
cd install-tl-* && \
3031
echo "Installing TeX Live with basic scheme..." && \
3132
perl ./install-tl -scheme=scheme-basic --no-interaction -texdir="~/.texlive" && \
3233
tlmgr backup -q --all --clean=0 && \
34+
rm -rf "$TL_DOC_PATH" && \
35+
cd /tmp && \
3336
rm -rf ./*
3437

38+
# install required packages to build the handouts
3539
ARG PACKAGES=mathtools
3640
RUN echo "Installing TeX Live packages: ${PACKAGES}" && \
3741
tlmgr install ${PACKAGES} && \
38-
tlmgr backup -q --all --clean=0
42+
tlmgr backup -q --all --clean=0 && \
43+
rm -rf "$TL_DOC_PATH"
44+
45+
# patch missing fonts
46+
ARG SCRIPT_PATCH_FONTS=/tmp/patch-missing-fonts.sh
47+
COPY --chown=$USERNAME:$USERNAME ./patch-missing-fonts.sh $SCRIPT_PATCH_FONTS
48+
RUN $SCRIPT_PATCH_FONTS && \
49+
rm -rf /tmp/*
3950

4051
USER root
4152
WORKDIR /app
4253
COPY entrypoint.sh ./entrypoint.sh
4354
RUN chmod +x ./entrypoint.sh && \
4455
apt autopurge -qqy wget perl
56+
# after uninstalling perl, you can not use tlmgr command any more
4557

4658
USER ${USERNAME}
4759
ENTRYPOINT [ "./entrypoint.sh" ]

src/handouts/figures/con-adj.jpg

14.6 KB
Loading
33.2 KB
Loading
16.1 KB
Loading
9.35 KB
Loading
9.05 KB
Loading
19.2 KB
Loading

0 commit comments

Comments
 (0)