diff options
Diffstat (limited to 'macros/latex/contrib/easybook/doc/pages')
4 files changed, 56 insertions, 50 deletions
diff --git a/macros/latex/contrib/easybook/doc/pages/appendix.tex b/macros/latex/contrib/easybook/doc/pages/appendix.tex index f5981487b1..e05362d02d 100644 --- a/macros/latex/contrib/easybook/doc/pages/appendix.tex +++ b/macros/latex/contrib/easybook/doc/pages/appendix.tex @@ -1,11 +1,7 @@ % 附录 -\documentclass[../easybook-demo]{subfiles} -\begin{document} \appendix \chapter{维基百科} \section{阿司匹林} -\zhlipsum[50-52][name = aspirin] - -\end{document}
\ No newline at end of file +\zhlipsum[50-52][name = aspirin]
\ No newline at end of file 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 diff --git a/macros/latex/contrib/easybook/doc/pages/chapter2.tex b/macros/latex/contrib/easybook/doc/pages/chapter2.tex index 49e9d1e824..bf2bbf7798 100644 --- a/macros/latex/contrib/easybook/doc/pages/chapter2.tex +++ b/macros/latex/contrib/easybook/doc/pages/chapter2.tex @@ -1,16 +1,18 @@ % Chapter 2 -\documentclass[../easybook-demo]{subfiles} -\begin{document} \chapter{定理盒子} -\begin{outline}\index{zhaiyao@摘要盒子} +\begin{outline} +\index{zhaiyao@摘要盒子} \item 这是一个摘要盒子。 \item 它的标题是可选参数,默认标题是摘要。 \end{outline} -\section{定理}\index{d@定理} -\begin{theorem}[(高斯公式\footnote{选自高等数学公式。})]\label{theorem:gauss formula}\index{d@定理!g@高斯公式} +\section{定理} +\index{d@定理} +\begin{theorem}[(高斯公式\footnote{选自高等数学公式。})] +\label{theorem:gauss formula} +\index{d@定理!g@高斯公式} 设空间闭区域$\Omega$是由分片光滑的闭曲面$\Sigma$围成,若函数$P(x,y,z)$,$Q(x,y,z)$,$R(x,y,z)$在$\Omega$上具有一节连续偏导数,则有 \begin{align} \iiint_\Omega\left(\frac{\partial P}{\partial x}+\frac{\partial Q}{\partial y}+\frac{\partial R}{\partial x}\right)\mathrm{d}V & =\oiint_\Sigma P\mathrm{d}y\mathrm{d}z+Q\mathrm{d}z\mathrm{d}x+R\mathrm{d}x\mathrm{d}y @@ -20,7 +22,8 @@ 这里$\Sigma$是整个边界曲面$\Omega$的外侧,$\cos\alpha,\cos\beta,\cos\gamma$是$\Sigma$在点$(x,y,z)$处的法向量的方向余弦。引用这个公式如\cref{theorem:gauss formula}。 \end{theorem} -\begin{definition}[(Stokes formula)]\index{d@定理!s@Stokes formula} +\begin{definition}[(Stokes formula)] +\index{d@定理!s@Stokes formula} Let $\Gamma$ be a piecewise smooth directed closed curve, $\Sigma$ is a piecewise smooth directed surface bounded by $\Gamma$, the side of $\Gamma$ and the positive direction of $\Sigma$ According to the right-hand rule, if the function $P(x,y,z)$, $Q(x,y,z)$, $R(x,y,z)$ has a first-order continuous deviation on the curve $\Sigma$ Derivative, then \begin{multline} \iint_\Sigma\left(\frac{\partial R}{\partial y}-\frac{\partial Q}{\partial z}\right)\mathrm{d}y\mathrm{d}z+\left(\frac{\partial P}{\partial z}-\frac{\partial R}{\partial x}\right)\mathrm{d}z\mathrm{d}x+\left(\frac{\partial Q}{\partial x}-\frac{\partial P}{\partial y}\right)\mathrm{d}x\mathrm{d}y @@ -55,14 +58,16 @@ The Stokes formula is an extension of the basic calculus formula in the case of 这是一个证明,末尾自动添加证明结束符。 \end{proof} -\begin{mybox}*[My title]\index{z@自定义盒子} +\begin{mybox}*[My title] +\index{z@自定义盒子} \zhlipsum*[3][name = aspirin] \tcblower \zhlipsum*[8][name = aspirin] \end{mybox} \zhlipsum*[3][name = aspirin] -\begin{exercise}[black][1.][习题]\index{x@习题环境} +\begin{exercise}[black][1.][习题] +\index{x@习题环境} \item 设$w = f(x+y+z,xyz)$,$f$具有二阶连续偏导数,求$\dfrac{{\partial w}}{{\partial x}}$和$\dfrac{{{\partial ^2}w}}{{\partial x\partial z}}$。 \item 已知$y = y(x)$在任意点$x$处的增量$\Delta y = \dfrac{y\Delta x}{1+x^2}+\alpha$,其中$\alpha$是$\Delta x$的高阶无穷小($\Delta x\to 0$时),$y(0) = \pi$,则$y(1) = \uline{\mbox{\hspace{2em}}}$。 \item 设函数$f(x)$在$(-\infty,+\infty)$上有定义,则下述命题中正确的是 \mbox{(\hspace{1.5em})} @@ -72,6 +77,4 @@ The Stokes formula is an extension of the basic calculus formula in the case of \task 若$f''(x_0) = 0$,则$(x_0,f(x_0))$是曲线$y = f(x)$的拐点坐标。 \task 若$f'(x_0) = 0$, $f''(x_0) = 0$,$f'''(x_0)\ne 0$,则$x_0$一定不是$f(x)$的极值点。 \end{tasks} -\end{exercise} - -\end{document}
\ No newline at end of file +\end{exercise}
\ No newline at end of file diff --git a/macros/latex/contrib/easybook/doc/pages/chapter3.tex b/macros/latex/contrib/easybook/doc/pages/chapter3.tex index 04fa95dc34..8670c10975 100644 --- a/macros/latex/contrib/easybook/doc/pages/chapter3.tex +++ b/macros/latex/contrib/easybook/doc/pages/chapter3.tex @@ -1,10 +1,10 @@ % Chapter 3 -\documentclass[../easybook-demo]{subfiles} -\begin{document} -\chapter{其它格式}\label{chap:other formats} +\chapter{其它格式} +\label{chap:other formats} -\section{代码}\index{d@代码} +\section{代码} +\index{d@代码} \zhlipsum[42][name = aspirin] \begin{lstlisting}[language = Python,caption = {python程序练习题}] #!/usr/bin/python @@ -18,10 +18,12 @@ if __name__ == '__main__': print ptr \end{lstlisting} -\section{物理量}\index{w@物理量} +\section{物理量} +\index{w@物理量} 阿司匹林还有三种作用方式 \num{-21x.3e5}。一是使线粒体的氧化磷酸化解偶联。阿司匹林会携带质子从线粒体膜间隙扩散进入线粒体基质,然后再次电离释放质子 \SI{.5}{mol}。 -\section{化学式}\index{h@化学式} +\section{化学式} +\index{h@化学式} 阿司匹林还有三种作用方式。一是使线粒体的氧化磷酸化解偶联。阿司匹林会携带质子从线粒体膜间隙扩散进入线粒体基质,然后再次电离释放质子\ch{(NH4)2S}、\ch{[Cu(NH3)4]^2+}。 \[\ch{$x$ Na(NH4)HPO4 ->[$\Delta$] (NaPO3)_{$x$} + $x$ NH3 ^ + $x$ H2O}\] 阿司匹林还有三种作用方式。 @@ -29,26 +31,28 @@ if __name__ == '__main__': HN-[::+60]CH_3)=-(-HO)=)}\] \clearpage -\section{引用}\index{y@引用} +\section{引用} +\index{y@引用} \zhlipsum[8][name = aspirin] -\subsection{索引}\index{y@引用!s@索引} +\subsection{索引} +\index{y@引用!s@索引} \zhlipsum[8][name = aspirin] -\subsection{脚注}\index{y@引用!j@脚注} +\subsection{脚注} +\index{y@引用!j@脚注} 六年之后的1859年,冯·基尔姆让水杨酸和乙酰氯反应,制得了分析纯的乙酰水杨酸,他称之为“乙酰化水杨酸”(acetylierte*Salicyls+"aure)\footnote{这是一个悬挂缩进的脚注。\par 这是分段将会缩进两字符。}。 60和70年代,约翰·范恩等人发现了阿司匹林的作用机理,60至80年代的其他研究和临床试验证明该药有抗凝血的药效,可降低血栓疾病的发病率\Footnote{*}{这是可以自定义标记的脚注。}。 -\subsection{边注}\index{y@引用!b@边注} -对乙酰氨基酚和布洛芬\marginnote{这是一个边注。}于1956年和1959年相继问世以后,阿司匹林的使用率开始下降。 - -\subsection{引用章节}\label{subsec:reference section}\index{y@引用!s@索引} +\subsection{引用章节} +\label{subsec:reference section} +\index{y@引用!s@索引} 兽医有时用阿司匹林来镇痛或抗血栓,主要给狗用\cref{chap:other formats},有时给马用\cref{subsec:reference section},不过现在一般会用副作用较少的新疗法。 -\subsection{参考文献}\index{y@引用!c@参考文献} +\subsection{参考文献} +\index{y@引用!c@参考文献} 这是一个参考文献引用的范例\cite{1979Prospect}。引用多个文献,将引用标号中的多个文献序号按升序排列,若其中有2个以上的连续序号,则改用范围序号,例如\cite{1979Prospect,1989The,2010An}。 -\section{行内盒子}\index{h@行内盒子} -对乙酰氨基酚和布洛芬 \concise[Aqua][fontupper = \rmfamily]{concise} 于1956年和1959年相继问世以后,阿司匹林 \fuzzy[DarkSeaGreen][fontupper = \ttfamily,colupper = black]{fuzzy} 的使用率开始下降。 - -\end{document}
\ No newline at end of file +\section{行内盒子} +\index{h@行内盒子} +对乙酰氨基酚和布洛芬 \concise[Aqua][fontupper = \rmfamily]{concise} 于1956年和1959年相继问世以后,阿司匹林 \fuzzy[DarkSeaGreen][fontupper = \ttfamily,colupper = black]{fuzzy} 的使用率开始下降。
\ No newline at end of file |