Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: 全面迁移到 tcolorbox #62

Merged
merged 2 commits into from
Mar 28, 2024
Merged

docs: 全面迁移到 tcolorbox #62

merged 2 commits into from
Mar 28, 2024

Conversation

45gfg9
Copy link
Collaborator

@45gfg9 45gfg9 commented Mar 28, 2024

迁移到 tcolorbox 后定理环境语法有变。对有编号的定理环境(即除了 proofsolution),旧语法是:

\begin{<环境名>}[<标题>] \label{<引用标签>}
...
\end{<环境名>}

新语法:

\begin{<环境名>}{<标题>}{<引用标签>}
...
\end{<环境名>}

这些定理环境不需要再手动标记 \label. 但相对的,即使没有标题 / label 的环境也需要带上空花括号,如 \begin{theorem}{}{}.

同时,<引用标签> 不再需要手动标记前缀. tcolorbox 会自动加上前缀:

定理环境 前缀
定义 definition def:
定理 theorem thm:
example ex:
引理 lemma lem:
推论 corollary cor:
公理 axiom axm:

这些设置可以在 LALUbook.cls 中更改. 例:

https://github.com/45gfg9/Linear-Algebra-Left-Undone/blob/cf0d35f05f110634c22a5a0c1df713121eeb13aa/%E8%AE%B2%E4%B9%89/%E4%B8%93%E9%A2%98/5%20%E7%BA%BF%E6%80%A7%E6%98%A0%E5%B0%84.tex#L9-L18

定义的标题为线性映射,通过 \autoref{def:线性映射的定义} 产生定义 5.1的引用,同时可以通过 \nameref{线性映射的定义} 直接产生线性映射的引用.

@yhwu-is yhwu-is merged commit f7aedb4 into yhwu-is:new Mar 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants