\documentclass{article}\usepackage{lipsum}\begin{document}
This is some preamble text that you enter yourself.
Below is a command that will automatically generate seven paragraphs of
text that is commonly used for examples in this field.
\lipsum[1-7]\end{document}
lipsum: 轻松访问Lorem Ipsum虚拟文本 ,lipsum – access to 150 paragraphs of Lorem ipsum dummy text。To load the package specify : \usepackage{lipsum},For example, \lipsum[4-57] typesets the paragraphs 4 to 57 and accordingly。具体说明文档可见安装文件:C:/texlive/2018/texmf-dist/doc/latex/lipsum/lipsum.pdf 。特别注意:C:/texlive/2018/doc.html 该文档列出了TeX Live中包含的包和指南的所有HTML和PDF文件的链接,按包名称排序。
2、继续修改你的latex-second.tex文件:
\documentclass{article}\usepackage{lipsum}\begin{document}
This is some preamble text that you enter yourself.
\section{Text for the first section}\lipsum[1]\subsection{Text for a subsection of the first section}\lipsum[2-3]\subsection{Another subsection of the first section}\lipsum[4-5]\section{The second section}\lipsum[6]\subsection{Title of the first subsection of the second section}\lipsum[7]\end{document}
3、注意到2中的自动编号,现在我们继续修改,完成交叉引用:
\documentclass{article}\usepackage{lipsum}\begin{document}
This is some preamble text that you enter yourself.
\section{Text for the first section}\lipsum[1]\subsection{Text for a subsection of the first section}\lipsum[2-3]\label{labelone}\subsection{Another subsection of the first section}\lipsum[4-5]\label{labeltwo}\section{The second section}\lipsum[6]
Refer again to \ref{labelone}.
Note also the discussion on page \pageref{labeltwo}.
\subsection{Title of the first subsection of the second section}\lipsum[7]\end{document}
4、我们将以添加脚注(footnotes), 目录(a table of contents), 和 参考文献(bibliography)作为Get more out的结束(要想链接可用,我们要使用宏包hyperref),继续修改latex-second.tex文件:
\documentclass{article}\usepackage{lipsum}\usepackage{hyperref}\title{Test document}\author{dfface \\ \url{www.dfface.com}}
\date{2019-Apr-4}\begin{document}\maketitle\tableofcontents\newpage
This is some preamble text that you enter
yourself.\footnote{First footnote.}\footnote{Second footnote. }\section{Text for the first section}\lipsum[1]\subsection{Text for a subsection of the first section}\lipsum[2-3]\label{labelone}\subsection{Another subsection of the first section}\lipsum[4-5]\label{labeltwo}\section{The second section}\lipsum[6]
Refer again to \ref{labelone}.\cite{ConcreteMath}
Note also the discussion on page \pageref{labeltwo}.
\subsection{Title of the first subsection of the second section}\lipsum[7]\begin{thebibliography}{9}\bibitem{ConcreteMath}
Ronald L. Graham, Donald E. Knuth, and Oren Patashnik,
\textit{Concrete Mathmatics},
Addison-Wesley, Reading, MA, 1995.
\end{thebibliography}\end{document}
There are $\binom{2 n +1}{ n }$ sequences with $ n $ occurrences of
$ -1$ and $ n +1$ occurrences of $+1$ , and Raney ’ s lemma
tells us that exactly $\frac{1}{2 n +1}$ of these sequences have all
partial sums positive .
Elementary calculus suffices to evaluate $ C $ if we are clever enough
to look at the double integral
\begin{equation*}
C^2
=\int_{-\infty}^{+\infty} e^{-x^2} \mathrm{ d } x
\int_{-\infty}^{+\infty} e^{-y^2} \mathrm{ d } y \;.
\end{equation*}