mirror of
https://github.com/ElegantLaTeX/ElegantBook.git
synced 2026-01-26 04:14:35 +08:00
tcb theorem
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
\documentclass[lang=cn,10pt]{elegantbook}
|
||||
\documentclass[lang=cn,10pt,founder]{elegantbook}
|
||||
|
||||
\title{ElegantBook:优美的 \LaTeX{} 书籍模板}
|
||||
\subtitle{Elegant\LaTeX{} 经典之作}
|
||||
@@ -180,7 +180,7 @@ tlmgr update --self --all --reinstall-forcibly-removed
|
||||
\end{table}
|
||||
|
||||
如果需要自定义颜色的话请选择 \lstinline{nocolor} 选项或者使用 \lstinline{color=none},然后在导言区定义 structurecolor、main、second、third 颜色,具体方法如下:
|
||||
\begin{lstlisting}[tabsize=4]]
|
||||
\begin{lstlisting}[tabsize=4]
|
||||
\definecolor{structurecolor}{RGB}{0,0,0}
|
||||
\definecolor{main}{RGB}{70,70,70}
|
||||
\definecolor{second}{RGB}{115,45,2}
|
||||
@@ -607,10 +607,6 @@ LaTeX Error:
|
||||
\item \lstinline{nofont}:后台会调用 \lstinline{ctex} 宏包并且使用 \lstinline{fontset=none} 选项,不设定中文字体,用户可以自行设置中文字体,具体见后文。
|
||||
\end{enumerate}
|
||||
|
||||
\begin{remark}
|
||||
使用 \lstinline{founder} 选项或者 \lstinline{nofont} 时,必须使用 \hologo{XeLaTeX} 进行编译。
|
||||
\end{remark}
|
||||
|
||||
\subsection{方正字体选项}
|
||||
由于使用 \lstinline{ctex} 宏包默认调用系统已有的字体,部分系统字体缺失严重,因此,用户希望能够使用其它字体,我们推荐使用方正字体。方正的{\songti 方正书宋}、{\heiti 方正黑体}、{\kaishu 方正楷体}、{\fangsong 方正仿宋}四款字体均可免费试用,且可用于商业用途。用户可以自行从\href{http://www.foundertype.com/}{方正字体官网}下载此四款字体,在下载的时候请\textbf{务必}注意选择 GBK 字符集,也可以使用 \href{https://www.latexstudio.net/}{\LaTeX{} 工作室}提供的\href{https://pan.baidu.com/s/1BgbQM7LoinY7m8yeP25Y7Q}{方正字体,提取码为:njy9} 进行安装。安装时,{\kaishu Win 10 用户请右键选择为全部用户安装,否则会找不到字体。}
|
||||
|
||||
|
||||
@@ -58,14 +58,12 @@ To learn more, please refer to \href{https://tex.stackexchange.com/questions/554
|
||||
\section{Other Release Versions}
|
||||
If you are a \TeX{} Live 2018/2019/2020/2021 user and would like to update, the official solution is to uninstall the previous version. If you want to save the bother of uninstallation and re-installation, please copy \lstinline{elegantbook.cls} to the installation directory of \TeX{} Live 2022 (default: \lstinline|C:\texlive\2022\texmf-dist\tex\latex\elegantbook| ), run \lstinline{texhash} in cmd.
|
||||
|
||||
|
||||
|
||||
\chapter{ElegantBook Settings}
|
||||
|
||||
This template is based on the Standard \LaTeX{} book class, so the options of book class work as well (Note that the option of papersize has no effect due to \lstinline{device} option). The default encoding is UTF-8 while \TeX{} Live is recommended. The test environment is Win10/Ubuntu 20.04/macOS + \TeX{} Live 2022/ Mac\TeX{} 2022, either \hologo{pdfLaTeX} or \hologo{XeLaTeX} works fine.
|
||||
|
||||
\section{Languages}
|
||||
We defined one option named \lstinline{lang} which has two basic values, \lstinline{lang=en} (default) , \lstinline{lang=cn}. Different values will alter the captions of figure/table, abstract name, refname, etc. You can use this option as
|
||||
|
||||
\begin{lstlisting}
|
||||
\documentclass[en]{elegantbook}
|
||||
\documentclass[lang=en]{elegantbook}
|
||||
@@ -539,6 +537,10 @@ Let $G$ be a finite group, and let $H$ be a subgroup of $G$. Then the order of
|
||||
\lipsum[3]
|
||||
|
||||
|
||||
\begin{theorem}{theorem name}{label text}
|
||||
The content of theorem.
|
||||
\end{theorem}
|
||||
|
||||
\begin{proposition}[Size of Left Coset]
|
||||
Let $H$ be a finite subgroup of a group $G$. Then each left coset of $H$ in $G$ has the same number of elements as $H$.
|
||||
\end{proposition}
|
||||
|
||||
Reference in New Issue
Block a user