Tuesday, April 05, 2011

StudyNote-VIII--LaTex II

\documentclass[a4paper,12pt]{article}
\usepackage[top=1in, bottom=1in, left=1.25in, right=1.25in]{geometry}
\usepackage{graphicx}
\usepackage{multicol}

\begin{document}
\title{the title}
\date{}
\author{SKSC}
\maketitle

\begin{abstract}
\small{}
This is the abstract of this article.
\end{abstract}
\section{CAFFEINE}
This is the general structure of a CAFFEINE canonical form basis function. 
\begin{figure}[htp]
  \centering #put the image in the center
  \includegraphics[width=0.45\textwidth]{test.eps}
\end{figure}
#This is the way to present picture in LaTex. Latex can receive jpg,png and some other extension files.However the best is always the eps.To convert from jpg/png or other image file into eps, we can use bmeps command. bmeps file.jpg file.eps
\begin{figure}[h]
\begin{minipage}[t]{0.45\linewidth}
\centering
\includegraphics[width=\textwidth]{SRG.eps}
\caption{SR system used context-free grammar}
\end{minipage}
\hfill
\begin{minipage}[t]{0.45\linewidth}
\centering
\includegraphics[width=\textwidth]{gr.eps}
\caption{CAFFEINE used grammar}
\end{minipage}
\end{figure}
# this is a way to insert reference
\begin{thebibliography}{Reference}
\bibitem 
JJ Page and William B. Langdon and Riccardo Poli,Smooth Uniform Crossover with Smooth Point Mutation in Genetic Programming: A Preliminary Study,1999,Proceedings of the Second European Workshop on Genetic Programming
\end{thebibliography}
\end{document}

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home