diff options
-rwxr-xr-x | Makefile | 10 | ||||
-rw-r--r-- | docs/appendix-a.md | 2 | ||||
-rw-r--r-- | docs/appendix-c.md | 2 | ||||
-rw-r--r-- | docs/categories.md | 2 | ||||
-rw-r--r-- | docs/code-en.svg | 86 | ||||
-rw-r--r-- | docs/code-zh.svg | 86 | ||||
-rwxr-xr-x | install.latex.ubuntu.sh | 10 |
7 files changed, 187 insertions, 11 deletions
@@ -61,7 +61,8 @@ CHAPTERS = docs/free-sw.md \ docs/surveillance-vs-democracy.md APPENDIXS = docs/appendix-a.md \ docs/appendix-b.md \ - docs/appendix-c.md \ + docs/appendix-c.md +PDF_IMG = category.pdf code-zh.pdf song-book-jutta-scrunch-crop-zh.pdf all: book html @@ -71,6 +72,7 @@ clean: rm *.tex *.aux *.fot *.toc *.log *.out rm -fr fs-translations rm *.png + rm $(PDF_IMG) rm -r site rm $(BOOKNAME).* @@ -93,10 +95,14 @@ $(BOOKNAME).html: $(PREFACES) $(CHAPTERS) $(APPENDIXS) pandoc $(TOC) --standalone --to=html5 -o $@ $^ mkdocs build --clean -$(BOOKNAME).pdf: $(TITLE) $(PREFACES) $(CHAPTERS) $(APPENDIXS) +%.pdf: docs/%.svg + rsvg-convert -f pdf -o $@ $< + +$(BOOKNAME).pdf: $(TITLE) $(PREFACES) $(CHAPTERS) $(APPENDIXS) $(PDF_IMG) $(PANDOC_TEX) ${PREFACES} -o preface.tex $(PANDOC_TEX) ${CHAPTERS} -o chapters.tex $(PANDOC_TEX) ${APPENDIXS} -o appendix.tex + sed -i 's/\(\\includegraphics.*\)\.svg\}/\1.pdf}/g' chapters.tex appendix.tex ${call pdfgen} # pandoc $(TOC) --latex-engine=xelatex -V documentclass=$(LATEX_CLASS) --template=$(TEMPLATE) -o $@ $^ rm -fr fs-translations diff --git a/docs/appendix-a.md b/docs/appendix-a.md index 91b50ad..c482436 100644 --- a/docs/appendix-a.md +++ b/docs/appendix-a.md @@ -10,7 +10,7 @@ 程序最初的形态通常是*源代码*。这一系列高级指令由*编程语言*(比如 C 或者 Java)编写而成。之后会被一个名为*编译器*的工具编译为一种更底层的语言——*汇编语言*。另一种被称为*汇编器*的工具会将汇编代码分解为最终的*机器语言*——计算机可以*原生*理解的最底层代码。 -![计算机程序是如何从源代码生成二进制可执行文件的](code.png){ width=100% } +![计算机程序是如何从源代码生成二进制可执行文件的](code-zh.svg){ width=100% } 例如,“Hello World”这个程序,通常是人们学习 C 语言时的第一个程序,编译和执行后会在屏幕上打印出“Hello World”[^ap-1]。 diff --git a/docs/appendix-c.md b/docs/appendix-c.md index 316242e..43ff609 100644 --- a/docs/appendix-c.md +++ b/docs/appendix-c.md @@ -8,7 +8,7 @@ *译者注:读者可下载 Musescore 格式的乐谱文件[^apc-1],通过自由的乐谱软件 Musescore[^apc-2] 聆听。* -![自由软件之歌乐谱](song-book-jutta-scrunch-crop-zh.png){ width=100% } +![自由软件之歌乐谱](song-book-jutta-scrunch-crop-zh.svg){ width=100% } [^apc-1]: 乐谱文件下载:<https://github.com/beijinglug/fsfs-zh/blob/master/docs/song-book-jutta-scrunch-crop-zh.mscx> diff --git a/docs/categories.md b/docs/categories.md index d2fb028..7bc3721 100644 --- a/docs/categories.md +++ b/docs/categories.md @@ -4,7 +4,7 @@ > 参见《应避免使用(或慎用)的词语,由于它们是不公正的或者引起混淆的》一文。 -![自由与非自由软件的分类](category-zh.png){ width=90% } +![自由与非自由软件的分类](category.svg){ width=90% } > 本图最初由 Chao-Kuei 创作并且经过其他人的更新,解释了不同类别的软件之间的区别。现有它的矢量图版,位于<http://gnu.org/philosophy/category.svg>以及 XFig 格式版本,位于<http://gnu.org/philosophy/category.fig>。本图采用 GNU 通用公共许可证(GNU GPL)2.0 或更高版本、GNU 自由文档许可证(GNU FDL)1.2 或更高版本、或者创作共用-署名-相同方式共享(CC BY-SA)许可证 2.0 或更高版本。 diff --git a/docs/code-en.svg b/docs/code-en.svg new file mode 100644 index 0000000..6833276 --- /dev/null +++ b/docs/code-en.svg @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + version="1.1" + id="svg2" + width="501" + height="76" + viewBox="0 0 501 76"> + <metadata + id="metadata8"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title></dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <defs + id="defs6" /> + <path + id="path8532-9" + d="M 4,1.5000001 V 74.5 H 82 V 1.5000001 Z m 134,0 V 74.5 h 78 V 1.5000001 Z m 143,0 V 74.5 h 83 V 1.5000001 Z m 139,0 V 74.5 h 77 V 1.5000001 Z m -414,2 H 80 V 72.5 H 6 Z m 134,0 h 74 V 72.5 h -74 z m 143,0 h 79 V 72.5 h -79 z m 139,0 h 73 V 72.5 H 422 Z M 15,23.5 v 2 h 55 v -2 z m 100.04297,0 c 3.95833,4 7.91667,8 11.875,12 H 92.480469 v 3 h 34.437501 c -3.95833,4 -7.91667,8 -11.875,12 h 3.99609 c 4.14714,-4.184892 8.29428,-8.36979 12.44141,-12.554687 V 36.052735 C 127.33405,31.867777 123.18652,27.683921 119.03906,23.5 Z m 139.51953,0 c 3.95833,4 7.91667,8 11.875,12 H 232 v 3 h 34.4375 c -3.95833,4 -7.91667,8 -11.875,12 h 3.99609 C 262.70573,46.315108 266.85287,42.13021 271,37.945313 V 36.052735 C 266.85358,31.867777 262.70605,27.683921 258.55859,23.5 Z m 141.64648,0 c 3.95833,4 7.91667,8 11.875,12 h -34.4375 v 3 h 34.4375 c -3.95833,4 -7.91667,8 -11.875,12 h 3.9961 c 4.14714,-4.184892 8.29427,-8.36979 12.4414,-12.554687 V 36.052735 C 408.50006,31.867777 404.35254,27.683921 400.20508,23.5 Z M 431,23.5 v 2 h 55 v -2 z m -416,5 v 2 h 55 v -2 z m 416,0 v 2 h 55 v -2 z M 318,29 v 5 h -1.75586 c -0.82993,-1 -1.65835,-2 -2.48828,-3 h -2.4082 c -1.56575,1.666667 -3.12957,3.333333 -4.69532,5 1.56511,1.666667 3.13021,3.333333 4.69532,5 H 306 v 9 h 5 v 1.753907 l -3,2.490234 v 2.609375 c 1.77497,1.396188 3.54925,2.793265 5.32422,4.189453 1.43467,-1.347801 2.87002,-2.695168 4.30469,-4.042969 H 319 v 5 h 8 v -5 h 1.07031 c 1.68843,1.106299 3.37603,2.21206 5.06446,3.31836 l 5.26562,-5.263672 C 336.93375,53.493515 335.46665,51.932262 334,50.371094 V 49 h 6 v -8 h -6 v -1.755859 l 3,-2.490234 v -2.40625 c -1.66667,-1.565754 -3.33333,-3.131514 -5,-4.697266 -1.66667,1.565752 -3.33333,3.131512 -5,4.697266 V 29 Z m -147,1.5 v 5 h -1.75586 c -0.82993,-1 -1.65835,-2 -2.48828,-3 h -2.4082 c -1.56575,1.666667 -3.12957,3.333333 -4.69532,5 1.56511,1.666667 3.13021,3.333333 4.69532,5 H 159 v 9 h 5 v 1.753907 l -3,2.490234 v 2.609375 c 1.77497,1.396188 3.54925,2.793265 5.32422,4.189453 1.43467,-1.347801 2.87002,-2.695168 4.30469,-4.042969 H 172 v 5 h 8 v -5 h 1.07031 c 1.68843,1.106299 3.37603,2.21206 5.06446,3.31836 l 5.26562,-5.263672 C 189.93375,54.993515 188.46665,53.432262 187,51.871094 V 50.5 h 6 v -8 h -6 v -1.755859 l 3,-2.490234 v -2.40625 c -1.66667,-1.565754 -3.33333,-3.131514 -5,-4.697266 -1.66667,1.565752 -3.33333,3.131512 -5,4.697266 V 30.5 Z m -156,3 v 2 h 55 v -2 z m 416,0 v 2 h 55 v -2 z m -416,5 v 2 h 55 v -2 z m 416,0 v 2 h 55 v -2 z M 318.86523,39.59961 H 326 L 328.40039,42 v 7.134766 c -0.96667,0.611541 -1.93372,1.222443 -2.90039,1.833984 -2.12767,0.01068 -4.00598,0.02074 -6.09961,0.03125 L 317,48.59961 317.03125,42.5 Z m -147,1.5 H 179 L 181.40039,43.5 v 7.134766 c -0.96667,0.611541 -1.93372,1.222443 -2.90039,1.833984 -2.12767,0.01068 -4.00598,0.02074 -6.09961,0.03125 L 170,50.09961 170.03125,44 Z M 15,43.5 v 2 h 55 v -2 z m 416,0 v 2 h 55 v -2 z m -416,5 v 2 h 55 v -2 z m 416,0 v 2 h 55 v -2 z" + style="fill:#000000" /> + <text + id="text9209" + y="19.885723" + x="43.339935" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;line-height:125%;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><tspan + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;stroke-width:1px" + y="19.885723" + x="43.339935" + id="tspan9207">Source</tspan></text> + <text + id="text9209-0" + y="65.508919" + x="42.964859" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;line-height:125%;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><tspan + y="65.508919" + x="42.964859" + id="tspan9229">Code</tspan></text> + <text + id="text9209-04" + y="20.547146" + x="177.41278" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;line-height:125%;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><tspan + y="20.547146" + x="177.41278" + id="tspan9239">Compiler</tspan></text> + <text + id="text9209-00" + y="20.62376" + x="323.21588" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;line-height:125%;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><tspan + y="20.62376" + x="323.21588" + id="tspan9249">Assembler</tspan></text> + <text + id="text9209-7" + y="19.189922" + x="458.25946" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;line-height:125%;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><tspan + y="19.189922" + x="458.25946" + id="tspan9259">Machine</tspan></text> + <text + id="text9209-9" + y="65.509621" + x="460.23859" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;line-height:125%;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><tspan + y="65.509621" + x="460.23859" + id="tspan9269">Code</tspan></text> +</svg> diff --git a/docs/code-zh.svg b/docs/code-zh.svg new file mode 100644 index 0000000..7b5cc10 --- /dev/null +++ b/docs/code-zh.svg @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + version="1.1" + id="svg2" + width="501" + height="76" + viewBox="0 0 501 76"> + <metadata + id="metadata8"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title></dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <defs + id="defs6" /> + <path + id="path8532-9" + d="M 4,1.5000001 V 74.5 H 82 V 1.5000001 Z m 134,0 V 74.5 h 78 V 1.5000001 Z m 143,0 V 74.5 h 83 V 1.5000001 Z m 139,0 V 74.5 h 77 V 1.5000001 Z m -414,2 H 80 V 72.5 H 6 Z m 134,0 h 74 V 72.5 h -74 z m 143,0 h 79 V 72.5 h -79 z m 139,0 h 73 V 72.5 H 422 Z M 15,23.5 v 2 h 55 v -2 z m 100.04297,0 c 3.95833,4 7.91667,8 11.875,12 H 92.480469 v 3 h 34.437501 c -3.95833,4 -7.91667,8 -11.875,12 h 3.99609 c 4.14714,-4.184892 8.29428,-8.36979 12.44141,-12.554687 V 36.052735 C 127.33405,31.867777 123.18652,27.683921 119.03906,23.5 Z m 139.51953,0 c 3.95833,4 7.91667,8 11.875,12 H 232 v 3 h 34.4375 c -3.95833,4 -7.91667,8 -11.875,12 h 3.99609 C 262.70573,46.315108 266.85287,42.13021 271,37.945313 V 36.052735 C 266.85358,31.867777 262.70605,27.683921 258.55859,23.5 Z m 141.64648,0 c 3.95833,4 7.91667,8 11.875,12 h -34.4375 v 3 h 34.4375 c -3.95833,4 -7.91667,8 -11.875,12 h 3.9961 c 4.14714,-4.184892 8.29427,-8.36979 12.4414,-12.554687 V 36.052735 C 408.50006,31.867777 404.35254,27.683921 400.20508,23.5 Z M 431,23.5 v 2 h 55 v -2 z m -416,5 v 2 h 55 v -2 z m 416,0 v 2 h 55 v -2 z M 318,29 v 5 h -1.75586 c -0.82993,-1 -1.65835,-2 -2.48828,-3 h -2.4082 c -1.56575,1.666667 -3.12957,3.333333 -4.69532,5 1.56511,1.666667 3.13021,3.333333 4.69532,5 H 306 v 9 h 5 v 1.753907 l -3,2.490234 v 2.609375 c 1.77497,1.396188 3.54925,2.793265 5.32422,4.189453 1.43467,-1.347801 2.87002,-2.695168 4.30469,-4.042969 H 319 v 5 h 8 v -5 h 1.07031 c 1.68843,1.106299 3.37603,2.21206 5.06446,3.31836 l 5.26562,-5.263672 C 336.93375,53.493515 335.46665,51.932262 334,50.371094 V 49 h 6 v -8 h -6 v -1.755859 l 3,-2.490234 v -2.40625 c -1.66667,-1.565754 -3.33333,-3.131514 -5,-4.697266 -1.66667,1.565752 -3.33333,3.131512 -5,4.697266 V 29 Z m -147,1.5 v 5 h -1.75586 c -0.82993,-1 -1.65835,-2 -2.48828,-3 h -2.4082 c -1.56575,1.666667 -3.12957,3.333333 -4.69532,5 1.56511,1.666667 3.13021,3.333333 4.69532,5 H 159 v 9 h 5 v 1.753907 l -3,2.490234 v 2.609375 c 1.77497,1.396188 3.54925,2.793265 5.32422,4.189453 1.43467,-1.347801 2.87002,-2.695168 4.30469,-4.042969 H 172 v 5 h 8 v -5 h 1.07031 c 1.68843,1.106299 3.37603,2.21206 5.06446,3.31836 l 5.26562,-5.263672 C 189.93375,54.993515 188.46665,53.432262 187,51.871094 V 50.5 h 6 v -8 h -6 v -1.755859 l 3,-2.490234 v -2.40625 c -1.66667,-1.565754 -3.33333,-3.131514 -5,-4.697266 -1.66667,1.565752 -3.33333,3.131512 -5,4.697266 V 30.5 Z m -156,3 v 2 h 55 v -2 z m 416,0 v 2 h 55 v -2 z m -416,5 v 2 h 55 v -2 z m 416,0 v 2 h 55 v -2 z M 318.86523,39.59961 H 326 L 328.40039,42 v 7.134766 c -0.96667,0.611541 -1.93372,1.222443 -2.90039,1.833984 -2.12767,0.01068 -4.00598,0.02074 -6.09961,0.03125 L 317,48.59961 317.03125,42.5 Z m -147,1.5 H 179 L 181.40039,43.5 v 7.134766 c -0.96667,0.611541 -1.93372,1.222443 -2.90039,1.833984 -2.12767,0.01068 -4.00598,0.02074 -6.09961,0.03125 L 170,50.09961 170.03125,44 Z M 15,43.5 v 2 h 55 v -2 z m 416,0 v 2 h 55 v -2 z m -416,5 v 2 h 55 v -2 z m 416,0 v 2 h 55 v -2 z" + style="fill:#000000" /> + <text + id="text9209" + y="19.885723" + x="43.339935" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;line-height:125%;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><tspan + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;writing-mode:lr-tb;text-anchor:middle;stroke-width:1px" + y="19.885723" + x="43.339935" + id="tspan9207">源代码</tspan></text> + <text + id="text9209-0" + y="65.508919" + x="42.964859" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;line-height:125%;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><tspan + y="65.508919" + x="42.964859" + id="tspan9229">代码</tspan></text> + <text + id="text9209-04" + y="20.547146" + x="177.41278" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;line-height:125%;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><tspan + y="20.547146" + x="177.41278" + id="tspan9239">编译器</tspan></text> + <text + id="text9209-00" + y="20.62376" + x="323.21588" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;line-height:125%;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><tspan + y="20.62376" + x="323.21588" + id="tspan9249">汇编器</tspan></text> + <text + id="text9209-7" + y="19.189922" + x="458.25946" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;line-height:125%;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><tspan + y="19.189922" + x="458.25946" + id="tspan9259">机器</tspan></text> + <text + id="text9209-9" + y="65.509621" + x="460.23859" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:14.18533325px;line-height:125%;font-family:'Noto Sans CJK SC';-inkscape-font-specification:'Noto Sans CJK SC, Bold';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + xml:space="preserve"><tspan + y="65.509621" + x="460.23859" + id="tspan9269">代码</tspan></text> +</svg> diff --git a/install.latex.ubuntu.sh b/install.latex.ubuntu.sh index 587a2b2..b70dc19 100755 --- a/install.latex.ubuntu.sh +++ b/install.latex.ubuntu.sh @@ -1,7 +1,5 @@ -sudo apt-get -y install texlive-xetex -sudo apt-get -y install texlive-latex-recommended # main packages -sudo apt-get -y install texlive-latex-extra texlive-lang-cjk # package titlesec and ctex -sudo apt-get -y install texlive-fonts-recommended -sudo apt-get -y install latex-cjk-chinese fonts-liberation ttf-liberation latex-cjk-chinese -sudo apt-get -y install fonts-noto-cjk +sudo apt-get -y install texlive-xetex texlive-latex-recommended \ + texlive-latex-extra texlive-lang-cjk texlive-fonts-recommended \ + latex-cjk-chinese fonts-liberation latex-cjk-chinese fonts-noto-cjk \ + librsvg2-bin sudo fc-cache |