小璃闪击北京
一念之间的想法,让我在这天见到了小璃,开心呢。
Portable, Extensible Toolkit Scientific Computations.
应 ElegantLaTeX 的邀请, 来做一次与 LaTeX 相关的知识分享, 主要内容包括 LaTeX 软件包的安装, 更新和回滚; 如何用命令行编译 LaTeX 文件; 如何使用和配置 VSCode.
这里说一下如何滚动升级 TeXLive, 而不卸载安装. 由于我也是第一次这么做, 不知道有没有什么可能产生的后果.
在交流使用 LaTeX 出现的问题的时候, 通常会听到"命令行编译"或"终端编译", 在这里简单的介绍一下. 如果有相应的命令行基础, 可以直接跳转到使用命令行编译 LaTeX 文件
在给家教学生出题的过程中想实现节标题的自动化, 由于题目是每天都有,
所以我想交替用 \examsection
和 \answersection
来输出节标题, 并且设置页眉和目录, 目标效果如下:
1 | \begin{document} |
在 enumitem
的宏包手册 中有 5 个长度命令 \leftmargin
,
\itemindent
, \labelindent
,
\labelwidth
和 \labelsep
.
这些长度关系以及互相的制约让人头疼, 而 enumitem
的作者也晓得这一点:
New 3.6 If you find these parameters baffling, you are not alone. You can visualize them by writing
\DrawEnumitemLabel
just before the first item (or in first), which draws 4 rules from top to bottom,labelindent
,labelwidth
,labelsep
,itemindent
(thin if positive, thick if negative); theleftmargin
is marked with two vertical rules.
下面来探究一下这些关系应该如何设置.