Skip to content

Commit 01d1b69

Browse files
committed
Merge branch 'feat/240315'
2 parents 948b9e9 + 220e4d1 commit 01d1b69

25 files changed

+671
-84
lines changed

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"cSpell.words": [
77
"argmax",
88
"argmin",
9+
"biclique",
910
"Biconditional",
1011
"bijective",
1112
"blkarray",
@@ -17,6 +18,7 @@
1718
"datetime",
1819
"extsizes",
1920
"graphicx",
21+
"Herke",
2022
"Hsieh",
2123
"indegree",
2224
"injective",
@@ -37,7 +39,9 @@
3739
"pairwisely",
3840
"parbox",
3941
"Pregel",
42+
"princ",
4043
"restatable",
44+
"Sarada",
4145
"subfigure",
4246
"subfile",
4347
"subrefformat",

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@ The handouts should be present by 4 ~ 10 days after the class, based on Ray's wo
2323
1. If you've set up Docker, you could skip this sections, for the Docker image [rays2/gt-handout-env](https://hub.docker.com/r/rays2/gt-handout-env) handles all the LaTeX-related dependencies.
2424

2525
1. Install a TeX distribution which provides the [pdfTeX](https://tug.org/applications/pdftex/) engine. If you need to compile the syllabus, the TeX distro needs to provide XeLaTeX.
26+
> [!TIP]
27+
> You could install either [TeX Live](https://www.tug.org/texlive/) or [MikTeX](https://miktex.org/download).
28+
>
29+
> Some Linux distributions also provide TeX Live packages from the default package manager (like `apt install texlive` or `pacman -S texlive-bin`, you cannot use `tlmgr` to manage TeX packages).
2630
27-
> [!TIP]
28-
> You could install either [TeX Live](https://www.tug.org/texlive/) or [MikTeX](https://miktex.org/download).
29-
>
30-
> Some Linux distributions also provide TeX Live packages from the default package manager (like `apt install texlive` or `pacman -S texlive-bin`).
31-
32-
1. Install the following packages with your TeX distribution.
31+
3. Install the following packages with your TeX distribution.
3332

3433
<!--
3534
When building a Docker image as the environment, the script accesses this package list, so make sure this list covers all required packages to build handouts in a Docker container.
@@ -40,15 +39,15 @@ The handouts should be present by 4 ~ 10 days after the class, based on Ray's wo
4039
<div id="package-list"></div>
4140

4241
```
43-
babel caption cleveref datetime2 environ geometry listings listingsutf8 mathabx mathtools pdfcol pgf pgfplots preprint ragged2e subfiles tcolorbox tikzfill tools multirow xifthen ifmtarg
42+
babel caption cleveref datetime2 environ geometry ifmtarg listings listingsutf8 mathabx mathtools multirow pdfcol pgf pgfplots preprint ragged2e subfiles tcolorbox tikzfill tools wrapfig xifthen
4443
```
4544
46-
> [!TIP]
47-
> With TeX Live, you could use `tlmgr install <packages>`, where `<packages>` is the package list above.
48-
>
49-
> Replace the package `tools` with `latex-tools` in MikTeX.
45+
> [!TIP]
46+
> With TeX Live, you could use `tlmgr install <packages>`, where `<packages>` is the package list above.
47+
>
48+
> Replace the package `tools` with `latex-tools` in MikTeX.
5049
51-
1. (Optional) Install an editor you prefer.
50+
4. (Optional) Install an editor you prefer.
5251
<details>
5352
<summary>Some editors with LaTeX syntax highlighting (click to expand/hide):</summary>
5453

doc/dev-notes.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,26 @@
22

33
## Rules
44

5-
1. To contribute to this repository, please install [latexindent.pl](https://github.com/cmhughes/latexindent.pl) for formatting TeX files.
5+
1. To contribute to this repository, please install [latexindent.pl](https://github.com/cmhughes/latexindent.pl) or TeX package `latexindent` for formatting TeX files.
66

77
1. (Optional) Install the VS Code extension [LaTeX Workshop](https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop).
88

9-
1. With VS Code, if you're using Arch Linux, please install the following packages for `latexindent` to work.
9+
1. In Ubuntu, please also set up the dependencies of `latexindent` as follows.install the `apt` package `libyaml-tiny-perl` to provide `YAML::Tiny`. (ref. )
1010

11-
sudo pacman -S texlive-binextra perl-yaml-tiny
11+
```bash
12+
# install the perl package management tool "cpanm" system-wide
13+
sudo cpan -i App::cpanminus
14+
15+
# install the perl package dependencies system-wide
16+
sudo cpanm YAML::Tiny
17+
sudo cpanm File::HomeDir
18+
```
19+
20+
1. In Arch Linux, please install the following packages for `latexindent` to work.
21+
22+
```bash
23+
sudo pacman -S texlive-binextra perl-yaml-tiny
24+
```
1225

1326
<details>
1427
<summary>Reasons (click to expand/hide):</summary>

src/build-handouts/env-image/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ RUN cd /tmp && \
2929
wget -qO- "$INSTALL_TL_URL" --no-check-certificate | tar -xz && \
3030
cd install-tl-* && \
3131
echo "Installing TeX Live with basic scheme..." && \
32-
perl ./install-tl -scheme=scheme-basic --no-interaction -texdir="~/.texlive" && \
32+
perl ./install-tl -scheme=scheme-basic --no-interaction -texdir="~/.texlive" -no-doc-install -no-src-install && \
3333
tlmgr backup -q --all --clean=0 && \
3434
rm -rf "$TL_DOC_PATH" && \
35+
find ~/.texlive -name *src* -exec rm {} \; && \
3536
cd /tmp && \
3637
rm -rf ./*
3738

@@ -40,7 +41,8 @@ ARG PACKAGES=mathtools
4041
RUN echo "Installing TeX Live packages: ${PACKAGES}" && \
4142
tlmgr install ${PACKAGES} && \
4243
tlmgr backup -q --all --clean=0 && \
43-
rm -rf "$TL_DOC_PATH"
44+
rm -rf "$TL_DOC_PATH" && \
45+
find ~/.texlive -name *src* -exec rm {} \;
4446

4547
# patch missing fonts
4648
ARG SCRIPT_PATCH_FONTS=/tmp/patch-missing-fonts.sh
226 KB
Loading
9.94 KB
Loading
156 KB
Loading
92.1 KB
Loading
7.36 KB
Loading
91.8 KB
Loading

0 commit comments

Comments
 (0)