diff options
Diffstat (limited to 'macros/latex/contrib/easybook/doc/pages/chapter1.tex')
-rw-r--r-- | macros/latex/contrib/easybook/doc/pages/chapter1.tex | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/macros/latex/contrib/easybook/doc/pages/chapter1.tex b/macros/latex/contrib/easybook/doc/pages/chapter1.tex index 80157ecaac..28df558200 100644 --- a/macros/latex/contrib/easybook/doc/pages/chapter1.tex +++ b/macros/latex/contrib/easybook/doc/pages/chapter1.tex @@ -1,10 +1,9 @@ % Chapter 1 -\documentclass[../easybook-demo]{subfiles} -\begin{document} \chapter{常用环境} -\section{公式}\index{g@公式} +\section{公式} +\index{g@公式} \zhlipsum*[42][name = aspirin] \begin{equation}\label{eq:matrix} \bm{A} = \left[ @@ -44,7 +43,8 @@ \vfill{\small\doclicenseThis} \clearpage -\section{插图}\index{c@插图} +\section{插图} +\index{c@插图} 当我们需要排列一组子图共享标题的图片时,可以使用依赖于 \lstinline{caption} 宏包的 \lstinline{subcaption} 宏包的功能,效果见\cref{fig:example}。 \begin{figure}[htbp] \centering @@ -56,7 +56,8 @@ \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@表格} +\section{表格} +\index{b@表格} 合并表格列使用 \lstinline{\multicolumn} 命令,合并行使用 \lstinline{\multirowcell} 命令。当插入的表格内容过长以至于一行放不下的情况可以使用 \lstinline{tabularx} 环境,设置了\textsf{L、C和R}三个列对齐选项,一个例子如\cref{tab:example} 所示。 \begin{table}[htbp] \centering @@ -74,31 +75,33 @@ \end{table} \clearpage -\section{列表}\index{l@列表} -\zhlipsum*[10][name = aspirin] +\section{列表} +\index{l@列表} +\zhlipsum*[42][name = aspirin] -\subsection{排序列表}\label{subsec1}\index{l@列表!p@排序列表} +\subsection{排序列表} +\index{l@列表!p@排序列表} \begin{enumerate} - \item \zhlipsum*[41][name = aspirin] + \item \zhlipsum*[42][name = aspirin] \begin{enumerate} \item \zhlipsum*[42][name = aspirin] \end{enumerate} - \item \zhlipsum*[41][name = aspirin] + \item \zhlipsum*[42][name = aspirin] \end{enumerate} -\subsection{常规列表}\index{l@列表!c@常规列表} +\subsection{常规列表} +\index{l@列表!c@常规列表} \begin{itemize} \item \zhlipsum[41-42][name = aspirin] \begin{itemize} \item \zhlipsum*[42][name = aspirin] \end{itemize} - \item \zhlipsum*[41][name = aspirin] + \item \zhlipsum*[42][name = aspirin] \end{itemize} -\subsection{主题列表}\index{l@列表!z@主题列表} +\subsection{主题列表} +\index{l@列表!z@主题列表} \begin{description} \item[主题一] \zhlipsum*[42][name = aspirin] \item[主题二] \zhlipsum*[42][name = aspirin] -\end{description} - -\end{document}
\ No newline at end of file +\end{description}
\ No newline at end of file |