Start Latex frome here:
\documentclass[a4paper, twoside] {article}
\title{Title_of_Article}
\author{Author}
\begin{document}
\maketitle
…here write down what you want…
\end{document}
Above is the document you what to create. You can edit it in any editing tools, such as Eclipse, notepad, WinEdt, etc. Just save it as ” *.tex ” file (for example, firstDoc.tex).
In windows, you run them in command:
- latex firstDoc.tex -> then firstDoc.dvi will be created to read and another file firstDoc.log records some information of your original file.
- pdftex firstDoc.tex then firstDoc.pdf will be created……
Hints:
- About mathematics: if you want to write some mathematical functions, use $ to embrace them. Example: $f(x)=x \times y$. Oh, you see \times means multiple. Yeah, in latex the commands are begin with \. Many mathematical symbols are created with that kind of commands. Of course, there is another way to express mathematics: \begin{displaymath} ……\end{displaymath}. Here, no $ is needed between those clauses.
- If you want to draw a diagram, add the following two clauses between \documentclass and \begin{document}: (1) \input xy; (2) \usepackage[all]{xy}.
- Just start writing your document, and learn waht is needed to know step by step.
Some tips from others:
About bibliography:
add the following two sentences before \end{document}
\bibliographystyle{abbrv}
\bibliography{bibliography}
How to name your reference paper in a standard way:
authorsSirname+Year+FirstkeywordsInTitle, such as
@ARTICLE{Ranganathan2004Ontologies,
author = {Anand Ranganathan and Robert E Mcgrath and Roy H Campbel and M Dennis Mickunas},
title = {Use of ontologies in a pervasive computing environment.},
journal = {The Knowledge Engineering Review},
year = {2004},
volume = {18:3},
pages = {209-220},
}
How to display two figures in parallel:
\begin{figure}
\begin{minipage}[t]{2.5cm}
\includegraphics[scale=0.3]{*.jpg}
\caption{*}
\end{minipage}
\hfill
\begin{minipage}[t]{6cm}
\includegraphics[scale=0.3]{*.jpg}
\caption{}
\end{minipage}
\hfill
\end{figure}
Of course, if you want to show the figures, you need to add the following sentences in front of the document to load the packages:
\usepackage[pdftex]{graphicx}
\usepackage{graphics}
About some shortcut definitions to enumerize:
\def\ul{\begin{itemize}}
\def\eul{\end{itemize}}
\def\li{\item}
\def\ol{\begin{enumerate}}
\def\eol{\end{enumerate}}