You are on page 1of 24

LaTeX

..

LaTeX
"-" "-"

WYSIWYG

De Facto standard

LaTeX2
2

LaTeX Distributions
LaTeX Distributions
Linux

TeXLive
Windows MikTeX
Mac OS X MacTeX

LaTeX
Texwork,

Texshop, Texmaker

WYSIWYG LaTeX
Lyx
3

LaTeX
Preamble

\documentclass{article}

\title{Having Fun with LaTeX}


\author{Chaiporn Jaikaeo}

body

\begin{document}
\maketitle
Hello LaTeX
\end{document}


dvips
latex

.ps

.dvi
ps2pdf

.tex

dvipdf

pdflatex

.pdf

DVI Device-Independent file


PS PostScript file
5

LaTeX
\
Case sensitive

[] optional parameter
{} required parameter


\begin{}

\end{}

\begin{itemize}\end{itemize}
\begin{displaymath}\end{displaymath}

Texmaker
LaTeX
Word/command completion

LaTeX PDF Viewer

Texmaker

()

... as described in Section \ref{s:intro}

... as described in Section 1


10


\title{}
\author{}

\thanks{}

Abstract

\and

()

\begin{abstract} \end{abstract}

\keywords

11



1, 2, 2.1, 2.2,

\section{}
\subsection{}
\subsubsection{}

12

\begin{bibliography}{}
\begin{thebibliography}{}
\bibitem{label}
\end{thebibliography}

13

\\
This is a line.
This text appears in the same line.

This text appears in another line.

14


LaTeX %
This is shown. % but this is not
% this entire line is a comment.

15


\label
\ref
\section{Introduction}\label{s:intro}
:
:
This idea has been discussed in Section \ref{s:intro}.

LaTeX

16

(List)
enumerate itemize
\item

\begin{enumerate}
\item Item 1
\item Item 2
\end{enumerate}
\begin{itemize}
\item Item 1
\item Item 2
\end{itemize}

% numbered list

% bullet list

17

math
\begin{math}\end{math}
\begin{displaymath}\end{displaymath}

\begin{equation}\end{equation}
\begin{eqnarray}\end{eqnarray}

math displaymath $
$$

\( \) \[ \]
18


$ inline
Let $s$ be a function such that $s(t) = t^2$

$$
Let $s$ be a function such that $$s(t) = t^2$$

19

\alpha,

\theta, \epsilon, \pi, \Pi

$\frac{a}{b}$

$x^2$,

$x_2$

{}
$x^20$

x20
$x^{20}$ x20
20

\begin{displaymath}
\lim_{x \to \infty} 3x
\end{displaymath}

\begin{displaymath}
\int_0^20 x dx
\end{displaymath}

21


LaTeX bibtex

.bib
@article{antbased,
author = {Shen, Chien-Chung and Huang, Zhuochuan and Jaikaeo, Chaiporn},
title = {Ant-based distributed topology control algorithms for mobile ad hoc networks},
journal = {Wirel. Netw.},
volume = {11},
issue = {3},
month = {May},
year = {2005},
issn = {1022-0038},
pages = {299--317},
numpages = {19},
acmid = {1160096},
publisher = {Kluwer Academic Publishers},
address = {Hingham, MA, USA},
}

22


\cite{}
\bibliography{}
( .bib)
\bibliographystyle{}

\bibliography{references}
\bibliographystyle{spiebib}

23

latex bibtex
pdflatex

.aux

bibtex

.bbl
bibliography

pdflatex

bibliography

pdflatex

24

You might also like