04 M190 IntroMathTypsetLaTeXHO
04 M190 IntroMathTypsetLaTeXHO
Using LATEX
Mathematics 190
What is LATEX?
https://data-mining.philippe-fournier-viger.com/using-latex-for-writing-research-papers/
LATEX vs. Word
https://handsonkeyboard.files.wordpress.com/2019/07/wordvlatex2.png
LATEX vs. Word
efficient for medium to large documents (can be divided
into several files)
can run even on lower version of computer configuration
platform (windows, linux, mac) and version independent
open source (free, availability of packages)
pre-set standard formats (thesis, journal articles, technical
reports, books, and slide presentations)
LATEX vs. Word
https://data-mining.philippe-fournier-viger.com/using-latex-for-writing-research-papers/
LATEX vs. Word
efficient for medium to large documents (can be divided
into several files)
can run even on lower version of computer configuration
platform (windows, linux, mac) and version independent
open source (free, availability of packages)
pre-set standard formats (thesis, journal articles, technical
reports, books, and slide presentations)
easy sectioning, cross-references, placements of tables
and figures
automatic generation of bibliography, index, table of
contents, list of tables, list of figures, etc.
LATEX vs. Word
https://data-mining.philippe-fournier-viger.com/using-latex-for-writing-research-papers/
LATEX vs. Word
efficient for medium to large documents (can be divided
into several files)
can run even on lower version of computer configuration
platform and version independent (windows, linux, mac)
open source (free, availability of packages)
pre-set standard formats (thesis, journal articles, technical
reports, books, and slide presentations)
easy sectioning, cross-references, placements of tables
and figures
automatic generation of bibliography, index, table of
contents, list of tables, list of figures, etc.
fast and professional typesetting of math equations
LATEX vs. Word
https://data-mining.philippe-fournier-viger.com/using-latex-for-writing-research-papers/
Disadvantages of LATEX
https://www.freepik.com/premium-photo/asian-teenager-cheerful-excited-celebrating-success-front-
netbook_3683114.htm
Further Study
LATEX Cheat Sheet
Huge
\hspace{l} Horizontal space of length l (Ex: l = 20pt).
depth > x, where chapter has depth 0. Use a *, as in \large large \Huge \vspace{l} Vertical space of length l.
\section*{title}, to not number a particular item—these items will
\rule{w}{h} Line of width w and height h.
also not appear in the table of contents. These are declarations and should be used in the form {\small . . . },
or without braces to affect the entire document. Tabular environments
Text environments
\begin{comment} Comment (not printed). Requires verbatim pack- Verbatim text tabbing environment
age. \begin{verbatim} Verbatim environment.
\begin{quote} Indented quotation block. \begin{verbatim*} Spaces are shown as . \= Set tab stop. \> Go to tab stop.
\begin{quotation}Like quote with indented paragraphs. \verb!text! Text between the delimiting characters (in this Tab stops can be set on “invisible” lines with \kill at the end of the
\begin{verse} Quotation block for verse. case ‘!’) is verbatim. line. Normally \\ is used to separate lines.
LATEX Cheat Sheet
tabular environment Citation types The LATEX document should have the following two lines just before
\cite{key} Full author list and year. (Watson and Crick 1953) \end{document}, where bibfile.bib is the name of the BibTEX file.
\begin{array}[pos]{cols}
\begin{tabular}[pos]{cols} \citeA{key} Full author list. (Watson and Crick)
\bibliographystyle{plain}
\begin{tabular*}{width}[pos]{cols} \citeN{key} Full author list and year. Watson and Crick (1953)
\bibliography{bibfile}
\shortcite{key} Abbreviated author list and year. ?
tabular column specification \shortciteA{key} Abbreviated author list. ?
\shortciteN{key} Abbreviated author list and year. ? BibTEX example
l Left-justified column. \citeyear{key} Cite year only. (1953) The BibTEX database goes in a file called file.bib, which is
c Centered column. All the above have an NP variant without parentheses; Ex. \citeNP. processed with bibtex file.
r Right-justified column.
p{width} Same as \parbox[t]{width}. BibTEX entry types @String{N = {Na\-ture}}
@{decl} Insert decl instead of inter-column space. @Article{WC:1953,
@article Journal or magazine article. author = {James Watson and Francis Crick},
| Inserts a vertical line between columns.
@book Book with publisher. title = {A structure for Deoxyribose Nucleic Acid},
tabular elements @booklet Book without publisher. journal = N,
@conference Article in conference proceedings. volume = {171},
\hline Horizontal line between rows. @inbook A part of a book and/or range of pages. pages = {737},
\cline{x-y} Horizontal line across columns x through y. @incollection A part of book with its own title. year = 1953
\multicolumn{n}{cols}{text} @misc If nothing else fits. }
A cell that spans n columns, with cols column specifi- @phdthesis PhD. thesis.
cation. @proceedings Proceedings of a conference.
@techreport Tech report, usually numbered in series.
Sample LATEX document
Math mode @unpublished Unpublished. \documentclass[11pt]{article}
\usepackage{fullpage}
For inline math, use \(...\) or $...$. For displayed math, use BibTEX fields \title{Template}
\[...\] or \begin{equation}. \author{Name}
address Address of publisher. Not necessary for major publish-
Superscriptx ^{x} Subscriptx
P _{x} ers.
\begin{document}
x n
\frac{x}{y} \sum_{k=1}^n \maketitle
y
√n
Qnk=1 author Names of authors, of format ....
x \sqrt[n]{x} k=1
\prod_{k=1}^n booktitle Title of book when part of it is cited.
\section{section}
chapter Chapter or section number.
Math-mode symbols \subsection*{subsection without number}
edition Edition of a book.
text \textbf{bold text} text. Some math: $2+2=5$
editor Names of editors.
≤ \leq ≥ \geq 6= \neq ≈ \approx \subsection{subsection}
institution Sponsoring institution of tech. report.
× \times ÷ \div ± \pm · \cdot text \emph{emphasized text} text. \cite{WC:1953}
◦ ^{\circ} journal Journal name.
◦ \circ 0 \prime ··· \cdots discovered the structure of DNA.
key Used for cross ref. when no author.
∞ \infty ¬ \neg ∧ \wedge ∨ \vee
month Month published. Use 3-letter abbreviation.
⊃ \supset ∀ \forall ∈ \in → \rightarrow A table:
note Any additional information.
⊂ \subset ∃ \exists ∈
/ \notin ⇒ \Rightarrow \begin{table}[!th]
number Number of journal or magazine.
∪ \cup ∩ \cap | \mid ⇔ \Leftrightarrow \begin{tabular}{|l|c|r|}
organization Organization that sponsors a conference.
ȧ \dot a â \hat a ā \bar a ã \tilde a \hline
pages Page range (2,6,9--12).
α \alpha β \beta γ \gamma δ \delta first & row & data \\
publisher Publisher’s name.
\epsilon ζ \zeta η \eta ε \varepsilon second & row & data \\
school Name of school (for thesis).
θ \theta ι \iota κ \kappa ϑ \vartheta \hline
series Name of series of books.
λ \lambda µ \mu ν \nu ξ \xi \end{tabular}
title Title of work.
π \pi ρ \rho σ \sigma τ \tau \caption{This is the caption}
type Type of tech. report, ex. “Research Note”.
υ \upsilon φ \phi χ \chi ψ \psi \label{ex:table}
volume Volume of a journal or book.
ω \omega Γ \Gamma ∆ \Delta Θ \Theta \end{table}
year Year of publication.
Λ \Lambda Ξ \Xi Π \Pi Σ \Sigma
Not all fields need to be filled. See example below.
Υ \Upsilon Φ \Phi Ψ \Psi Ω \Omega The table is numbered \ref{ex:table}.
Common BibTEX style files \end{document}
Bibliography and citations
abbrv Standard abstract alpha with abstract
When using BibTEX, you need to run latex, bibtex, and latex alpha Standard apa APA Copyright c 2014 Winston Chang
twice more to resolve dependencies. plain Standard unsrt Unsorted http://wch.github.io/latexsheet/
Looking for the Command of a Symbol?
http://detexify.kirelabs.org/classify.html
ChatGPT
Test your LATEX Skills!
https://texnique.xyz/
The End