1. 程式人生 > >LATEX教程(二)

LATEX教程(二)

out arc mark v tab adding make eight 觀察 vid

插入圖片

\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教程(二)