-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPhysics.tex
102 lines (83 loc) · 2.55 KB
/
Physics.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
% TeXplates/Physics.tex
% v0.6.0
% https://github.com/HoyanMok/TeXplates
\documentclass[openany, a5paper]{book}
% \documentclass{ctexbook} 如果用中文
% \documentclass[10pt,a4paper]{ctexart} 字体大小和纸张大小,默认分别为10pt和letterpaper
% 五号 = 10.5pt,小四=12pt,四号=14pt
% 其他可选参量如twocolumn, 两行排版
\usepackage{TeXplatesPhysics}
\addbibresource{Mathematics.bib} % 把这里改成实际的文件名
% 文章标题页信息:
\title{Title}
\author{ author1\thanks{contact to author1}
\and
author2\thanks{contact to author2}}
\date{\today} % 自动生成日期
\titlepic{\includegraphics{latex-project-logo.pdf}}
\begin{document}
\pagenumbering{Alph}
\maketitle % 打印标题
\frontmatter
\chapter{Preface}
Preface.
\tableofcontents
\mainmatter
\chapter{Test}
\section{\texorpdfstring{\TeX{}plate Usage}{TeXplate Usage}}
\subsection{Compiling}
Run the following command in your command line:\\[0pt]
\verb|xelatex| filename (.tex can be omitted)\\
\verb|biber| filename (.bib can be omitted)\\
\verb|xelatex| filename\\
\verb|xelatex| filename
\subsection{Examples}
Citation: \cite{Knuth}.
\begin{figure}[h] %
\centering
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=6cm]{latex-project-logo.pdf}
\caption{Caption}
\label{subfigure1}
\end{subfigure}%
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=6cm]{latex-project-logo.pdf}
\caption{Caption}
\label{subfigure2}
\end{subfigure}
\caption{An example for subfigures}
\end{figure}
An example for \indexbf{cross reference}: Fig~\ref{subfigure1} is the logo for the \LaTeX{} Project.
\begin{theorem}
Inline equation:
\begin{equation}\label{公式的标签}
\int \indexfm{\diff y x}\,\dif x = y(x) + C.
\end{equation}
\end{theorem}
\begin{corollary}
Multiline equations and the alignment:
\begin{align}
\nabla\cdot \bv D &= \rho
\\
\nabla \times \bv E & = - \pdiff{\bv B}{t}
\\
\nabla \cdot \bv B &= 0
\\
\nabla \times \bv H &= \bv j + \pdiff{\bv D}{t}
\end{align}
\end{corollary}
\chapter{Test}
\section{Test}
The counter \verb|section| doesn't reset when a new chapter opened.
\appendix
\renewcommand{\theequation}{\Alph{chapter}-\arabic{equation}}
\chapter{Appendix}
\backmatter
\nocite{*} % 这个表示列出所有没有在文中被引用的参考文献
\printbibliography[heading=bibliography, title={Bibliography}]
\indexprologue{Here listed the important symbols used in these notes.}
\printindex[symbol]
\printindex
\end{document}