summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/easybook/doc/chapter3.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/easybook/doc/chapter3.tex')
-rw-r--r--macros/latex/contrib/easybook/doc/chapter3.tex56
1 files changed, 56 insertions, 0 deletions
diff --git a/macros/latex/contrib/easybook/doc/chapter3.tex b/macros/latex/contrib/easybook/doc/chapter3.tex
new file mode 100644
index 0000000000..3d0a88bb1f
--- /dev/null
+++ b/macros/latex/contrib/easybook/doc/chapter3.tex
@@ -0,0 +1,56 @@
+% Chapter 3
+
+\chapter{其它格式}
+\label{chap:other formats}
+
+\section{代码}
+\index{d@代码}
+\zhlipsum[42][name = aspirin]
+\begin{lstlisting}[language = Python,caption = {python程序练习题}]
+#!/usr/bin/python
+# -*- coding: UTF-8 -*-
+
+if __name__ == '__main__':
+ ptr = []
+ for i in range(5):
+ num = int(raw_input('please input a number:\n'))
+ ptr.append(num)
+ print ptr
+\end{lstlisting}
+
+\section{物理量}
+\index{w@物理量}
+阿司匹林还有三种作用方式 \num{-21x.3e5}。一是使线粒体的氧化磷酸化解偶联 \SIrange{12}{35}{\minute}。阿司匹林会携带质子从线粒体膜间隙扩散进入线粒体基质,然后再次电离释放质子 \SI{.5}{mol}。
+
+\section{化学式}
+\index{h@化学式}
+阿司匹林还有三种作用方式。一是使线粒体的氧化磷酸化解偶联。阿司匹林会携带质子从线粒体膜间隙扩散进入线粒体基质,然后再次电离释放质子\ch{(NH4)2S}、\ch{[Cu(NH3)4]^2+}。
+\[\ch{$x$ Na(NH4)HPO4 ->[$\Delta$] (NaPO3)_{$x$} + $x$ NH3 ^ + $x$ H2O}\]
+阿司匹林还有三种作用方式。
+\[\zihao{-5}\chemfig[cram width=5pt]{*6((-HO)-=-(-(<[::60]OH)-[::-60]-[::-60,,,2]
+HN-[::+60]CH_3)=-(-HO)=)}\]
+
+\clearpage
+\section{引用}
+\index{y@引用}
+
+\subsection{索引}
+\index{y@引用!s@索引}
+\zhlipsum[8][name = aspirin]
+
+\subsection{脚注}
+\index{y@引用!j@脚注}
+阿司匹林及其复方制剂都能有效治疗某几种头痛,但对另外几种则效果不明\footnote{\zhlipsum*[8][name = aspirin]}。因其他疾病或创伤导致的继发性头痛需要及时在医疗机构接受治疗\Footnote{*}{\zhlipsum*[8][name = aspirin]}。
+
+\subsection{引用章节}
+\label{subsec:reference section}
+\index{y@引用!s@索引}
+阿司匹林及其复方制剂都能有效治疗某几种头痛,但对另外几种则效果不明\cref{chap:other formats}。因其他疾病或创伤导致的继发性头痛需要及时在医疗机构接受治疗\cref{subsec:reference section}。
+
+\subsection{参考文献}
+\index{y@引用!c@参考文献}
+这是一个参考文献引用的范例\cite{1979Prospect}。引用多个文献,将引用标号中的多个文献序号按升序排列,若其中有2个以上的连续序号,则改用范围序号,例如\cite{1979Prospect,1989The,2010An}。
+
+\section{行内盒子}
+\index{h@行内盒子}
+阿司匹林及其复方制剂都能有效治疗某几种头痛,但对另外几 \concise[Aqua][fontupper = \rmfamily]{concise} 种则效果不明。因其他疾病或创伤导致的 \fuzzy[DarkSeaGreen][fontupper = \ttfamily,colupper = black]{fuzzy} 继发性头痛需要及时在医疗机构接受治疗。 \ No newline at end of file