lect-08-2011-latex01

24
การใช้งาน LaTeX เบื้องต้น ผศ.ดร.ชัยพร ใจแก้ว ภาควิชาวิศวกรรมคอมพิวเตอร์ คณะวิศวกรรมศาสตร์ มหาวิทยาลัยเกษตรศาสตร์

Upload: thanongsak-imjai

Post on 17-Sep-2015

2 views

Category:

Documents


0 download

DESCRIPTION

template

TRANSCRIPT

  • LaTeX

    ..

  • 2LaTeX "-" "-"

    WYSIWYG

    De Facto standard LaTeX2

  • 3LaTeX DistributionsLaTeX DistributionsLinux TeXLiveWindows MikTeXMac OS X MacTeX LaTeX Texwork, Texshop, Texmaker WYSIWYG LaTeXLyx

  • 4 LaTeX

    \documentclass{article}

    \title{Having Fun with LaTeX}

    \author{Chaiporn Jaikaeo}

    \begin{document}

    \maketitle

    Hello LaTeX

    \end{document}

    Preamble

    body

  • 5

    latex

    pdflatex

    dvips

    dvipdf

    ps2pdf.tex

    .dvi

    DVI Device-Independent filePS PostScript file

    .ps

    .pdf

  • 6 LaTeX \ Case sensitive [] optional parameter {} required parameter

  • 7 \begin{}

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

  • 8 Texmaker LaTeXWord/command completion LaTeX PDF Viewer

  • 9 Texmaker

  • 10

    ()

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

  • 11

    \title{}\author{} \and \thanks{} ()Abstract \begin{abstract} \end{abstract} \keywords

  • 12

    1, 2, 2.1, 2.2, \section{}\subsection{}\subsubsection{}

  • 13

    \begin{bibliography}{}

    \begin{thebibliography}{}\bibitem{label}

    \end{thebibliography}

  • 14

    \\

    This is a line.

    This text appears in the same line.

    This text appears in another line.

  • 15

    LaTeX %

    This is shown. % but this is not

    % this entire line is a comment.

  • 16

    \label \ref

    LaTeX

    \section{Introduction}\label{s:intro}

    :

    :

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

  • 17

    (List) enumerate itemize \item

    \begin{enumerate} % numbered list

    \item Item 1

    \item Item 2

    \end{enumerate}

    \begin{itemize} % bullet list

    \item Item 1

    \item Item 2

    \end{itemize}

  • 18

    math\begin{math}\end{math}\begin{displaymath}\end{displaymath}\begin{equation}\end{equation}\begin{eqnarray}\end{eqnarray}

    math displaymath $ $$ \( \) \[ \]

  • 19

    $ inline

    $$

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

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

  • 20

    \alpha, \theta, \epsilon, \pi, \Pi

    $\frac{a}{b}$

    $x^2$, $x_2$

    {} $x^20$ x20$x^{20}$ x20

  • 21

    \begin{displaymath}

    \lim_{x \to \infty} 3x

    \end{displaymath}

    \begin{displaymath}

    \int_0^20 x dx

    \end{displaymath}

  • 22

    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},

    }

  • 23

    \cite{} \bibliography{}

    ( .bib) \bibliographystyle{}

    \bibliography{references}

    \bibliographystyle{spiebib}

  • 24

    latex bibtex

    pdflatex

    pdflatex

    bibtex

    pdflatex

    .aux

    .bbl bibliography

    bibliography