summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/zhlineskip/zhlineskip-test.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/zhlineskip/zhlineskip-test.tex')
-rw-r--r--Master/texmf-dist/doc/latex/zhlineskip/zhlineskip-test.tex48
1 files changed, 48 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/zhlineskip/zhlineskip-test.tex b/Master/texmf-dist/doc/latex/zhlineskip/zhlineskip-test.tex
new file mode 100644
index 00000000000..17c072f9914
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/zhlineskip/zhlineskip-test.tex
@@ -0,0 +1,48 @@
+% !TeX program = XeLaTeX
+\documentclass[no-math,a4paper]{ctexart}
+\usepackage{newpxtext,newpxmath} % https://ctan.org/pkg/newpx
+\usepackage{blindtext} % https://ctan.org/pkg/blindtext
+\usepackage{zhlipsum} % https://ctan.org/pkg/zhlipsum
+\usepackage{amsmath} % https://ctan.org/pkg/amsmath
+\usepackage{caption} % https://ctan.org/pkg/caption
+\usepackage{booktabs} % https://ctan.org/pkg/booktabs
+\usepackage[width=378bp]{geometry} % https://ctan.org/pkg/geometry
+
+\usepackage{zhlineskip}
+\SetTextEnvironmentSinglespace{1.05}
+\RestoreTextEnvironmentLeading{tabular}
+\SetMathEnvironmentSinglespace{1.05}
+
+\begin{document}
+\zhlipsum*[1]\footnote{\zhlipsum*[2]}下面是欧拉公式的推导:
+\begin{align}
+e^{i z} & = 1 + i z + \frac{(i z)^2}{2!} + \frac{(i z)^3}{3!}
+ + \frac{(i z)^4}{4!} + \frac{(i z)^5}{5!}
+ + \frac{(i z)^6}{6!} + \frac{(i z)^7}{7!} + \dotsb \\
+ & = \Bigl( 1 - \frac{z^2}{2!} + \frac{z^4}{4!}
+ - \frac{z^6}{6!} + \dotsb \Bigr)
+ + i \, \Bigl( z - \frac{z^3}{3!} + \frac{z^5}{5!}
+ - \frac{z^7}{7!} + \dotsb \Bigr) \\
+ & = \cos z + i \sin z.
+\end{align}
+又一个脚注\footnote{\zhlipsum*[3]}。
+\begin{table}[ht]
+\centering
+\caption[短标题]{一个非常非常非常非常非常非常非常非常非常非常非常非常
+ 非常非常非常非常非常非常非常非常非常非常非常非常非常非常非常长的标题。}
+\begin{tabular}{c c}
+\toprule
+第一项 & 第二项 \\
+\midrule
+ $10$ & $20$ \\
+ $10$ & $20$ \\
+\bottomrule
+\end{tabular}
+\end{table}
+\zhlipsum[4]
+\begin{quotation}
+\linespread{1.05}\selectfont
+\blindtext
+\end{quotation}
+\zhlipsum[5]
+\end{document} \ No newline at end of file