diff options
Diffstat (limited to 'macros/latex/contrib/easybook/doc/pages/chapter1.tex')
-rw-r--r-- | macros/latex/contrib/easybook/doc/pages/chapter1.tex | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/macros/latex/contrib/easybook/doc/pages/chapter1.tex b/macros/latex/contrib/easybook/doc/pages/chapter1.tex index ffb86ee290..80157ecaac 100644 --- a/macros/latex/contrib/easybook/doc/pages/chapter1.tex +++ b/macros/latex/contrib/easybook/doc/pages/chapter1.tex @@ -6,21 +6,21 @@ \section{公式}\index{g@公式} \zhlipsum*[42][name = aspirin] -\begin{equation}\label{eq1} +\begin{equation}\label{eq:matrix} \bm{A} = \left[ - \begin{matrix} - a_{11} & a_{12} & \cdots & a_{1n} \\ - a_{21} & a_{22} & \cdots & a_{2n} \\ - \vdots & \vdots & \ddots & \vdots \\ - a_{m1} & a_{m2} & \cdots & a_{mn} \\ - \end{matrix} + \begin{matrix} + a_{11} & a_{12} & \cdots & a_{1n} \\ + a_{21} & a_{22} & \cdots & a_{2n} \\ + \vdots & \vdots & \ddots & \vdots \\ + a_{m1} & a_{m2} & \cdots & a_{mn} \\ + \end{matrix} \right] = \left[ \begin{matrix} \bm{a}_1 & \bm{a}_2 & \cdots & \bm{a}_n \end{matrix} \right] \end{equation} -可以通过添加标签在正文中引用公式,如带有中文括号的引用\cref{eq1}。 +可以通过添加标签在正文中引用公式,如带有中文括号的引用\cref{eq:matrix}。 \zhlipsum*[56][name = aspirin] \begin{equation} @@ -35,16 +35,17 @@ \begin{subnumcases}{y =} C_1e^{r_1x}+C_2e^{r_2x} & \quad $p^2-4q > 0$ \\ - \left(C_1+C_2\right)e^{r_1x} & \quad $p^2-4q=0$ + \left(C_1+C_2\right)e^{r_1x} & \quad $p^2-4q = 0$ \\ - e^{\alpha x}\left(C_1\cos\beta x+C_2\sin\beta x\right) & \quad $p^2-4q<0$ + e^{\alpha x}\left(C_1\cos\beta x+C_2\sin\beta x\right) & \quad $p^2-4q < 0$ \end{subnumcases} \zhlipsum*[57][name = aspirin] +\vfill{\small\doclicenseThis} \clearpage \section{插图}\index{c@插图} -当我们需要排列一组子图共享标题的图片时,可以使用依赖于 \lstinline{caption} 宏包的 \lstinline{subcaption} 宏包的功能,效果见\cref{fig1}。 +当我们需要排列一组子图共享标题的图片时,可以使用依赖于 \lstinline{caption} 宏包的 \lstinline{subcaption} 宏包的功能,效果见\cref{fig:example}。 \begin{figure}[htbp] \centering \subcaptionbox{并排子图1} @@ -52,14 +53,14 @@ \hspace{1.2em} \subcaptionbox{并排子图2} {\includegraphics[width=0.4\textwidth]{example-image-4x3}} - \bicaption[使用subcaption排版子图]{使用subcaption宏包的subcaptionbox命令排版子图}[Use subcaption to typeset subgraphs]{Use the subcaptionbox command of the subcaption package to typeset sub-pictures}\label{fig1} + \bicaption[使用subcaption排版子图]{使用subcaption宏包的subcaptionbox命令排版子图}[Use subcaption to typeset subgraphs]{Use the subcaptionbox command of the subcaption package to typeset sub-pictures}\label{fig:example} \end{figure} \section{表格}\index{b@表格} -合并表格列使用 \lstinline{\multicolumn} 命令,合并行使用 \lstinline{\multirowcell} 命令。当插入的表格内容过长以至于一行放不下的情况可以使用 \lstinline{tabularx} 环境,设置了\textsf{L、C和R}三个列对齐选项,一个例子如\cref{tab1} 所示。 +合并表格列使用 \lstinline{\multicolumn} 命令,合并行使用 \lstinline{\multirowcell} 命令。当插入的表格内容过长以至于一行放不下的情况可以使用 \lstinline{tabularx} 环境,设置了\textsf{L、C和R}三个列对齐选项,一个例子如\cref{tab:example} 所示。 \begin{table}[htbp] \centering - \bicaption{使用tabularx创建内容过长表格}{Use tabularx to create a table with too long content}\label{tab1}\small + \bicaption{使用tabularx创建内容过长表格}{Use tabularx to create a table with too long content}\label{tab:example}\small \begin{tabularx}{0.87\textwidth}{@{}llL@{}} \toprule Aliquam & Integer & Pellentesque tincidunt purus |