- 一些公式
\[
\begin{pmatrix}{*{20}c}
{a_{11} } & {a_{12} } & {a_{13} } \\
{a_{21} } & {a_{22} } & {a_{23} } \\
{a_{31} } & {a_{32} } & {a_{33} } \\
\end{pmatrix}
= \frac{{Opposite}}{{Hypotenuse}}\cos ^{ - 1} \theta \arcsin \theta
\]
效果图:
2. 一些条
\begin{itemize}
\item minimizes the discomfort to the hands.
\item maximizes the outgoing velocity of the ball.
\end{itemize}
效果:
3. latex插入图片
\begin{figure}[h]
\small
\centering
\includegraphics[width=12cm]{mcmthesis-aaa.eps}
\caption{Flow chart of our models} \label{fig:FlowChart}
\end{figure}
4. 将多张图片放在一起将多张图片放在一起
利用 \usepackage{subfig} 包将多个图方便的放在一起
\documentclass[a4paper,12pt]{article}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure}[htb]
\centering
\subfloat[A subfigure]{%
\includegraphics[width=.24\textwidth]{example-image-a}}\hfill
\subfloat[A subfigure]{%
\includegraphics[width=.24\textwidth]{example-image-b}}\hfill
\subfloat[A subfigure]{%
\includegraphics[width=.24\textwidth]{example-image-c}}\hfill
\subfloat[A subfigure]{%
\includegraphics[width=.24\textwidth]{example-image}}\\
\subfloat[A subfigure]{%
\includegraphics[width=.48\textwidth]{example-image-a}}\hfill
\subfloat[A subfigure]{%
\includegraphics[width=.48\textwidth]{example-image-b}}\hfill
\subfloat[A subfigure]{%
\includegraphics[width=.48\textwidth]{example-image-c}}\hfill
\subfloat[A subfigure]{%
\includegraphics[width=.48\textwidth]{example-image-d}}\\
\subfloat[Anbing Ren]{%
\includegraphics[width=.3\textwidth]{example-image}}
\caption{This is lot of figures arranged side by side in matrix form with captions for each and a main caption}
\label{fig:1}
\end{figure}
\end{document}
生成效果图:
转自: 任安炳科学网博客。
链接地址:http://blog.sciencenet.cn/blog-287062-875660.html
- 有大括号的公式
\[
\begin{pmatrix}{*{20}c}
{a_{11} } & {a_{12} } & {a_{13} } \\
{a_{21} } & {a_{22} } & {a_{23} } \\
{a_{31} } & {a_{32} } & {a_{33} } \\
\end{pmatrix}
= \frac{{Opposite}}{{Hypotenuse}}\cos ^{ - 1} \theta \arcsin \theta
\]
生成效果图
- 绘制斜表头
\begin{table} [h]
\centering
\caption{Distribution Time (in hours)}
\label{tab:time}
\begin{tabular}{c|cc||c|ccc} \hline
\backslashbox{SNs}{INs} & D & E & \backslashbox{SNs}{INs} & F & G & H \\
\hline
A & 2 & 3 & D & 1 & 3 & 3 \\
B & 2 & 1 & E & 3 & 2 & 3 \\
C & 1 & 3 & & & & \\
\hline
\end{tabular}\\
{\footnotesize Note: suppy nodes (SNs), intersection nodes (INs), demand nodes (DNs)}
\end{table}
生成效果图:
转载自: 江一平科学网博客
- 代码附录
\begin{appendices}
\section{First appendix}
Here are simulation programmes we used in our model as follow.\\
\textbf{\textcolor[rgb]{0.98,0.00,0.00}{Input matlab source:}}
\lstinputlisting[language=Matlab]{./code/mcmthesis-matlab1.m}
\section{Second appendix}
some more text \textcolor[rgb]{0.98,0.00,0.00}{\textbf{Input C++ source:}}
\lstinputlisting[language=C++]{./code/mcmthesis-sudoku.cpp}
\end{appendices}