Documente Academic
Documente Profesional
Documente Cultură
W. Drago Chen
Department of Applied Mathematics, NDHU
June 6, 2008
W. Drago Chen
Outline
1
4 5
Introduction LaTeX Beamer Softwares LaTeX by Examples Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference Beamer by Examples Basic Structure and Commands Dress Up Special Eects Reference Discussion
W. Drago Chen LaTeX and Beamer by Examples
What is LaTeX?
LaTeX (pronounced lay-tek or lah-tek) is a typesetting language. LaTeX was created for the purpose of typesetting text and mathematical formulas. LaTeX is not a word processing program. Unlike programs like MS Word where your document is produced on the y through a What You See Is What You Get (WYSIWYG) format, LaTeX les need to be processed or compiled rst before the nal product can be viewed.
W. Drago Chen
What is LaTeX?
LaTeX (pronounced lay-tek or lah-tek) is a typesetting language. LaTeX was created for the purpose of typesetting text and mathematical formulas. LaTeX is not a word processing program. Unlike programs like MS Word where your document is produced on the y through a What You See Is What You Get (WYSIWYG) format, LaTeX les need to be processed or compiled rst before the nal product can be viewed.
W. Drago Chen
LaTeX Fundamentals
1 2
Edit the text le (saved as lename.tex) Process the le with the LaTeX program and this will create a device independent (.dvi) le. View the .dvi le with a DVI viewer. Return to step 1 to make further changes. If no further changes are to be made, convert the .dvi le into a format like PS (postscript) or PDF (Adobe Portable Document Format) in order to print.
3 4 5
W. Drago Chen
LaTeX Fundamentals
1 2
Edit the text le (saved as lename.tex) Process the le with the LaTeX program and this will create a device independent (.dvi) le. View the .dvi le with a DVI viewer. Return to step 1 to make further changes. If no further changes are to be made, convert the .dvi le into a format like PS (postscript) or PDF (Adobe Portable Document Format) in order to print.
3 4 5
W. Drago Chen
LaTeX Fundamentals
1 2
Edit the text le (saved as lename.tex) Process the le with the LaTeX program and this will create a device independent (.dvi) le. View the .dvi le with a DVI viewer. Return to step 1 to make further changes. If no further changes are to be made, convert the .dvi le into a format like PS (postscript) or PDF (Adobe Portable Document Format) in order to print.
3 4 5
W. Drago Chen
What is Beamer?
Beamer is a LaTeX class for creating presentations that are held using a projector, but it can also be used to create transparency slides. Preparing presentations with Beamer is dierent from preparing them with WYSIWYG programs like MS Powerpoint. A Beamer presentation is created like any other LaTeX document.
W. Drago Chen
What is Beamer?
Beamer is a LaTeX class for creating presentations that are held using a projector, but it can also be used to create transparency slides. Preparing presentations with Beamer is dierent from preparing them with WYSIWYG programs like MS Powerpoint. A Beamer presentation is created like any other LaTeX document.
W. Drago Chen
What is Beamer?
Beamer is a LaTeX class for creating presentations that are held using a projector, but it can also be used to create transparency slides. Preparing presentations with Beamer is dierent from preparing them with WYSIWYG programs like MS Powerpoint. A Beamer presentation is created like any other LaTeX document.
W. Drago Chen
Acrobat Reader (PDF Viewer) Ghostscript, Ghostview and GSview (PS Viewer) MiKTeX or fpTeX (Complete Setup) cwTeX (Add Chinese Fonts and Typesetting) WinEdt (Typesetting English and Chinese) TeXnicCenter or WinShell (Typesetting English Only)
W. Drago Chen
Acrobat Reader (PDF Viewer) Ghostscript, Ghostview and GSview (PS Viewer) MiKTeX or fpTeX (Complete Setup) cwTeX (Add Chinese Fonts and Typesetting) WinEdt (Typesetting English and Chinese) TeXnicCenter or WinShell (Typesetting English Only)
W. Drago Chen
Acrobat Reader (PDF Viewer) Ghostscript, Ghostview and GSview (PS Viewer) MiKTeX or fpTeX (Complete Setup) cwTeX (Add Chinese Fonts and Typesetting) WinEdt (Typesetting English and Chinese) TeXnicCenter or WinShell (Typesetting English Only)
W. Drago Chen
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
W. Drago Chen
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
W. Drago Chen
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Title
Result
\title{LaTeX and Beamer by Examples} \institute{Department of Applied Mathematics, NDHU} \auther{W. Drago Chen} \date{\today} \maketitle
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Title
Result
\title{LaTeX and Beamer by Examples} \institute{Department of Applied Mathematics, NDHU} \auther{W. Drago Chen} \date{\today} \maketitle
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
1 Probability
Here is a typical problem of interest involving probability ...
2 Statistics
Historically, statistics have been used to tell a story with ... Typesetting
\section{Probability} Here is a typical problem of interest involving probability ... \section{Statistics} Historically, statistics have been used to tell a story with ...
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
1 Probability
Here is a typical problem of interest involving probability ...
2 Statistics
Historically, statistics have been used to tell a story with ... Typesetting
\section{Probability} Here is a typical problem of interest involving probability ... \section{Statistics} Historically, statistics have been used to tell a story with ...
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Itemized List
Result Sampling Schemes Systematic Sampling Stratied Sampling Cluster Sampling Typesetting Sampling Schemes \begin{itemize} \item Systematic Sampling \item Stratied Sampling \item Cluster Sampling \end{itemize}
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Itemized List
Result Sampling Schemes Systematic Sampling Stratied Sampling Cluster Sampling Typesetting Sampling Schemes \begin{itemize} \item Systematic Sampling \item Stratied Sampling \item Cluster Sampling \end{itemize}
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Mathematical Expressions
Result If the sample regression model is yi = 0 + 1 xi + i , i = 1, 2, ..., n, then the least squares criterion is S ( 0 , 1 ) =
i =1
( yi 0 1 xi ) 2 .
Typesetting If the sample regression model is $y i=\beta 0+\beta 1x i+ \epsilon i, i=1,2,...,n$, then the least squares criterion is $$S(\beta 0,\beta 1)=\sum {i=1}n(y i-\beta 0\beta 1x i)2.$$
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Mathematical Expressions
Result If the sample regression model is yi = 0 + 1 xi + i , i = 1, 2, ..., n, then the least squares criterion is S ( 0 , 1 ) =
i =1
( yi 0 1 xi ) 2 .
Typesetting If the sample regression model is $y i=\beta 0+\beta 1x i+ \epsilon i, i=1,2,...,n$, then the least squares criterion is $$S(\beta 0,\beta 1)=\sum {i=1}n(y i-\beta 0\beta 1x i)2.$$
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Mathematical Expressions
W. Drago Chen
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Mathematical Expressions
W. Drago Chen
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Mathematical Expressions
Result 2x cos xdx
= 2x sin x
2 sin xdx
(1) (2)
= 2x sin x + 2 cos x + C .
Typesetting
\begin{eqnarray} \int2x\cos xdx &=& 2x\sin x-\int2\sin xdx\\ &=& 2x\sin x+2\cos x+C. \end{eqnarray}
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Mathematical Expressions
Result 2x cos xdx
= 2x sin x
2 sin xdx
(1) (2)
= 2x sin x + 2 cos x + C .
Typesetting
\begin{eqnarray} \int2x\cos xdx &=& 2x\sin x-\int2\sin xdx\\ &=& 2x\sin x+2\cos x+C. \end{eqnarray}
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Mathematical Expressions
Result 12 + 22 + 32 + ... + n2 n(n + 1)(2n + 1) = . 6
Typesetting
W. Drago Chen
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Mathematical Expressions
Result 12 + 22 + 32 + ... + n2 n(n + 1)(2n + 1) = . 6
Typesetting
W. Drago Chen
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Mathematical Expressions
Theorem There is no greatest prime number. Proof. Trivial. Typesetting
W. Drago Chen
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Mathematical Expressions
Theorem There is no greatest prime number. Proof. Trivial. Typesetting
W. Drago Chen
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Mathematical Expressions
Theorem There is no greatest prime number. Proof. Trivial. Typesetting
W. Drago Chen
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Table
\begin{center}\begin{tabular}{IccIcI} \hline $p$ & $q$ & and\\ \hline \hline T & T & T\\ T & F & F\\ \hline \end{tabular}\end{center}
W. Drago Chen
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Table
\begin{center}\begin{tabular}{IccIcI} \hline $p$ & $q$ & and\\ \hline \hline T & T & T\\ T & F & F\\ \hline \end{tabular}\end{center}
W. Drago Chen
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Figure
Typesetting
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Figure
Typesetting
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Abstract
Result Abstract
It is proven that the celebration of birthdays is healthy. Statistics show that those people who celebrate the most birthdays become the oldest.
Typesetting
\begin{abstract} It is proven that the celebration of birthdays is healthy. Statistics show that those people who celebrate the most birthdays become the oldest. \end{abstract}
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Abstract
Result Abstract
It is proven that the celebration of birthdays is healthy. Statistics show that those people who celebrate the most birthdays become the oldest.
Typesetting
\begin{abstract} It is proven that the celebration of birthdays is healthy. Statistics show that those people who celebrate the most birthdays become the oldest. \end{abstract}
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Reference
Result Jiang W. (2002). On weak base hypotheses and their implications for boosting regression and classication. Annals of Statistics, 30, 5173. Typesetting
\begin{thebibliography}{Tototo} \bibitem[Jiang W., 2002]{JW02} {\sc Jiang W.} (2002). On weak base hypotheses and their implications for boosting regression and classication. {\em Annals of Statistics}, {\bf 30}, 5173. \end{thebibliography}
W. Drago Chen LaTeX and Beamer by Examples
Basic Structure and Commands Mathematical Expressions Table, Figure, Abstract and Reference
Reference
Result Jiang W. (2002). On weak base hypotheses and their implications for boosting regression and classication. Annals of Statistics, 30, 5173. Typesetting
\begin{thebibliography}{Tototo} \bibitem[Jiang W., 2002]{JW02} {\sc Jiang W.} (2002). On weak base hypotheses and their implications for boosting regression and classication. {\em Annals of Statistics}, {\bf 30}, 5173. \end{thebibliography}
W. Drago Chen LaTeX and Beamer by Examples
\documentclass{beamer} \usepackage{...} \title{...} \author{...} \institute{...} \date{...} \begin{document} \maketitle \begin{frame} \frametitle{...} ...... \end{frame} ...... \end{document}
W. Drago Chen LaTeX and Beamer by Examples
Assign a Theme
Typesetting
W. Drago Chen
Assign a Theme
Typesetting
W. Drago Chen
Color Themes
Typesetting
W. Drago Chen
Color Themes
Typesetting
W. Drago Chen
Dynamic
Typesetting
\begin{frame} \frametitle{...} \setbeamercovered{dynamic} \begin{block}{...} ...... \end{block} \pause \begin{block}{...} ...... \end{block} \end{frame}
Other Eects {invisible}, {highly dynamic}, ...
W. Drago Chen LaTeX and Beamer by Examples
Dynamic
Typesetting
\begin{frame} \frametitle{...} \setbeamercovered{dynamic} \begin{block}{...} ...... \end{block} \pause \begin{block}{...} ...... \end{block} \end{frame}
Other Eects {invisible}, {highly dynamic}, ...
W. Drago Chen LaTeX and Beamer by Examples
Reference
Some Guides M. Alsani (2002). LaTeX by Example. Henri P. Gavin (2002). A Brief LaTeX Tutorial. Andrew Mertz and William Slough (2005). Beamer by Example. Till Tantau (2004). Users Guide to the Beamer Class. Diwaker Gupta (2005). Why LaTeX Beamer.
W. Drago Chen
W. Drago Chen