码迷,mamicode.com
首页 > 其他好文 > 详细

LATEX教程(二)

时间:2018-01-20 12:33:48      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:dos   sep   插入   参考文献   pos   span   mat   com   center   

插入图片

\documentclass{article} 
   \usepackage{graphicx} 
   \usepackage{Ctex}
   \title{插入图片}
   \author{yif}
\begin{document}
    \maketitle 
       \includegraphics[width=4.00in,height=3.00in]{figure1.jpg} 
\end{document}

简单表格

\documentclass{article} 
\begin{document} 
   \begin{tabular}{|c|c|} 
     aaa & b \\ 
     c & ddddd\\ 
   \end{tabular} 

   \begin{tabular}{|l|r|} 
     \hline 
     aaaa & b \\ 
     \hline 
     c & ddddd\\ 
     \hline 
   \end{tabular} 

   \begin{center} 
     \begin{tabular}{|c|c|} 
       \hline 
       a & b \\ \hline 
       c & d\\ 
       \hline 
     \end{tabular} 
   \end{center} 
\end{document}

注意观察有无\hline和有无\begin{center}的区别。注意观察\begin{tabular}后的lcr的区别,分别是left对齐,center对齐和right对齐。

制作参考文献

\documentclass{article}
\begin{document}


@article{rivero2001resistance,
title={Resistance to cold and heat stress: accumulation of phenolic compounds in tomato and watermelon plants},
author={Rivero, Rosa M and Ruiz, Juan M and Garc{\i}a, Pablo C and L{\o}pez-Lefebre, Luis R and S{\‘a}nchez, Esteban and Romero, Luis},
journal={Plant Science},
volume={160},
number={2},
pages={315--321},
year={2001},
publisher={Elsevier}
}

@article{gostout1992clinical,
title={The clinical and endoscopic spectrum of the watermelon stomach},
author={Gostout, Christopher J and Viggiano, Thomas R and Ahlquist, David A and Wang, Kenneth K and Larson, Mark V and Balm, Rita},
journal={Journal of clinical gastroenterology},
volume={15},
number={3},
pages={256--263},
year={1992},
publisher={LWW}
}
\end{document}

LATEX教程(二)

标签:dos   sep   插入   参考文献   pos   span   mat   com   center   

原文地址:https://www.cnblogs.com/yifdu25/p/8320046.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!