What is L A T E X? Dan Yasaki. June 4, 2018 REU at Elon University. UNC Greensboro. Dan Yasaki What is LAT E X? 1 / 22

Similar documents
A demonstration of the L A TEX2ε class file for Earthquake Engineering and Structural Dynamics

A demonstration of the L A TEX2ε class file for the International Journal of Network Management

An introduction. C.D. Emmery & M.M. van Zaanen. October 22, Tilburg University

L A TEX Tutorial. 1 Introduction. 2 Running L A TEX. J. E. Rice. May 2010

L A T E X Workshop. Bijulal D & Anu Thomas Industrial Engineering and Operations Research Indian Institute of Technology

LaTeX. Information Literacy II EN(IL2) Course

Introduction to L A TEX beamer

Mikkel Madsen

Helen Cameron. A Brief Overview of LATEX

Very Short Introduction to LaTeX

An Interactive Introduction to L A TEX. Part 2: Structured Documents & More. Dr John D. Lees-Miller. writel A TEX.

Math 235: Introduction to LaTeX

Introduction to L A TEX

Document Preparation Using L A TEX

A Demonstration of the L A TEX 2ε Class File for the Oxford University Press Ltd Journal. First Author 1 and Second Author 2.

Introduction to L A TEX

Introduction to LaTeX. Paul Fodor Stony Brook University

An Introduction to L A TEX

L A TEX Overview. Jiayi Liu. January 31, Colorado School of Mines

Helen Cameron. A Brief Overview of LATEX

LaTeX. Information Literacy II EN(IL2) Course

Intro to LaTeX Workshop

MATLAB for the Sciences

Research Method and Report Writing Lecture 4: An Introduction to L A TEX

David Helmbold, October 2005, Revised October 2007

L A TEX Workshop. Don Brower

VERY VERY SHORT GUIDE TO LATEX

Exercises in LaTeX IDA on AAU

Dec. 27 th, 2010 University of Isfahan

An Interactive Introduction to L A TEX

TUTORIAL 10: ARRAYS AND MATRICES. 1. Welcome. Hello. My name is Dr. Christopher Raridan (Dr. R). I want to welcome you to the L A TEX Tutorial Series.

Formatting with LaTeX

An Interactive Introduction to L A TEX. Part 1: The Basics. John Lees-Miller. writel A TEX

(Yet Another) Introduction to L A TEX 2ε (V3)

Workshop on LATEX 2ε. Asst. Prof. Dr. Kemal Bagzibagli Department of Economics. 20 May 2015

Assessments for CS students:

A L A TEX-Package for IEEE PES Transactions

Typesetting with L A TEX: The Basics 1

PRISM Introduction to L A TEX

CSCE 222 Discrete Structures for Computing. LaTeX. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

L A TEX: Eh? What is it, what isn t it, who cares? Andy Caird. LATEX: Eh? p.1/13

What is T E X? T E X and L A T E X Document preparation tools. Setting and casting type. What Knuth was setting. Setting and casting type

EBESS and MESS Presents: Learn to LaTeX. Presented by Joshua Tambunan 13 February 2018

Praktische Aspekte der Informatik. Moritz Mühlhausen Prof. Marcus Magnor

Getting started with Latex

Basics. Options. Commands

StarT E X at E X for beginners

L A TEX. COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. LaTeX. Development. Why?

Document Preparation Word Processors

L A TEX. A computer system for typesetting documents

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

L A T E X Tutorial. Wanmin Liu August. Department of Mathematics The Hong Kong University of Science and Technology

Latex Programs for Record

Using LaTex and BibTex to Write Academic Documents. Ligang He Department of Computer Science University of Warwick

COMS 6100 Class note

Latex Tutorial. CIS400 Senior Design 9/5/2013

An Introduction to LATEX

Introduction to L A TEX Part II

An Introduction to L A T E X

Workshop: A Simple Introduction to L A TEX

Using the Penn Biostat LaTeX Templates

Introduction to L A TEX Part II

Workshop on LaTeX. Outline. Muhammad Mostafa Monowar 11/13/2017

The Joys of LAT E X. Vadim Ponomarenko. introducing the world s standard typesetting language.

WYSIWYG Systems. CSCM10 Research Methodology Lecture 4 (11/2/16): A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems

INTRODUCTION TO L A TEX

Researcher Development Unit: Introduction to Latex

LaTeX Seminar III: Environments and More Advanced Mathematical Typesetting

CSCM10 Research Methodology A Taster of L A TEX

An introduction to L A TEX for students

Why do I need LaTeX? What is LaTeX? Where can I get LaTeX? How can I use LaTeX? Who can help me with LaTeX? Why What Where How Who

An Introduction to LATEX

عمادة البحث العلمي جامعة الملك سعود

Introduction to LATEX

Pimp your thesis: a minimal introduction to L A T E X.

Literate programming with R and L A TEX

L A TEX minicourse. dstowell, mag, sar, scannell,... September Typeset by FoilTEX

The Joys of L A T E X

LaTeX Workshop. While you re waiting, please make an account at

An introduction to LATEX

Introduction to LaTeX. Christoph Pickl

Began as TeX, in 1982 (Knuth). Purely a typesetting tool. LaTeX added macros, maintaining TeX as it s typesetting engine (Lamport).

L A TEXcourse. Carmen Alonso Montes. 30th May-2nd June, 2016

Aalborg October 2014

HOW TO TYPESET THESES. Using iiscthesis style for LAT E X

Introduction to Scientific Typesetting Lesson 5: The Structure of a Document

A LAT E X Tutorial. Evangelos Milios. March 15, 2004

Student Learning Service: Introduction to Latex

1 Obtaining LyX and L A TEX

Introduction to L A TEX

Basic L A TEX. what is LaTeX?

Introduction to L A TEX

The EJASA L A TEXTemplate An introduction for authors

Introduction to Scientific Typesetting Lesson 7: Graphics and Floats

LaTeX: Scientific Document Writing

INTRODUCTION TO L A TEX WHAT IS L A TEX?

Scientific writing and bibliographic research

Become a L A TEX Guru

Typing Mathematics. Darrin Doud

Introduction to L A T E X

Transcription:

What is L A T E X? Dan Yasaki UNC Greensboro June 4, 2018 REU at Elon University Dan Yasaki What is LAT E X? 1 / 22

What is L A T E X? L A T E X is a document preparation system by Leslie Lamport built upon Donald Knuth s T E X formatting engine. It is widely used in academia to produce documents of high typographical quality. Figure: Knuth (left) and Lamport (right). Dan Yasaki What is LAT E X? 2 / 22

Some Advantages L A T E X follows the design philosophy of separating presentation from content. High quality typesetting. Convenient formatting of mathematical formulae. Complex structures (footnotes, references, table of contents, links, etc) can be generated easily. Encourages structured writing. Highly portable and free. Dan Yasaki What is LAT E X? 3 / 22

Some Disadvantages? L A T E X follows the design philosophy of separating presentation from content. It is very hard to write unstructured and disorganized documents. Changes to document layout are tricky. Syntax errors. Dan Yasaki What is LAT E X? 4 / 22

Basic Workflow Plain text file foo.tex to foo.pdf Edit L A T E X Dan Yasaki What is LAT E X? 5 / 22

Advanced Workflow Edit L A T E X L A T E X BibT E X makeindex Dan Yasaki What is LAT E X? 6 / 22

Resources Getting started with TeX, LaTeX, and friends from the TeX Users Group (http://www.tug.org/begin.html) LaTeX project site (https://www.latex-project.org) This workshop page (https://www.uncg.edu/mat/faculty/d_yasaki/ teaching/latex/) Dan Yasaki What is LAT E X? 7 / 22

Get to Work hello-world.tex nonsense.tex workshop-article.tex workshop-slides.tex (if time permits) Dan Yasaki What is LAT E X? 8 / 22

hello-world.tex \documentclass{amsart} % This is a comment \begin{document} Hello world. \end{document} Dan Yasaki What is LAT E X? 9 / 22

hello-world.tex \documentclass{amsart} % This is a comment \begin{document} Hello world. \end{document} Dan Yasaki What is LAT E X? 9 / 22

hello-world.tex \documentclass{amsart} % This is a comment \begin{document} Hello world. \end{document} Dan Yasaki What is LAT E X? 9 / 22

hello-world.tex \documentclass{amsart} % This is a comment \begin{document} Hello world. \end{document} Dan Yasaki What is LAT E X? 9 / 22

nonsense.tex \documentclass{amsart} \usepackage{lipsum} \begin{document} \title{some Nonsense} \author{dan Yasaki} \begin{abstract} \lipsum[1] \end{abstract} \maketitle \section{introduction} \lipsum \end{document} Dan Yasaki What is LAT E X? 10 / 22

nonsense.tex \documentclass{amsart} \usepackage{lipsum} \begin{document} \title{some Nonsense} \author{dan Yasaki} \begin{abstract} \lipsum[1] \end{abstract} \maketitle \section{introduction} \lipsum \end{document} Dan Yasaki What is LAT E X? 10 / 22

nonsense.tex \documentclass{amsart} \usepackage{lipsum} \begin{document} \title{some Nonsense} \author{dan Yasaki} \begin{abstract} \lipsum[1] \end{abstract} \maketitle \section{introduction} \lipsum \end{document} Dan Yasaki What is LAT E X? 10 / 22

nonsense.tex \documentclass{amsart} \usepackage{lipsum} \begin{document} \title{some Nonsense} \author{dan Yasaki} \begin{abstract} \lipsum[1] \end{abstract} \maketitle \section{introduction} \lipsum \end{document} Dan Yasaki What is LAT E X? 10 / 22

nonsense.tex \documentclass{amsart} \usepackage{lipsum} \begin{document} \title{some Nonsense} \author{dan Yasaki} \begin{abstract} \lipsum[1] \end{abstract} \maketitle \section{introduction} \lipsum \end{document} Dan Yasaki What is LAT E X? 10 / 22

nonsense.tex \documentclass{amsart} \usepackage{lipsum} \begin{document} \title{some Nonsense} \author{dan Yasaki} \begin{abstract} \lipsum[1] \end{abstract} \maketitle \section{introduction} \lipsum \end{document} Dan Yasaki What is LAT E X? 10 / 22

nonsense.tex \documentclass{amsart} \usepackage{lipsum} \begin{document} \title{some Nonsense} \author{dan Yasaki} \begin{abstract} \lipsum[1] \end{abstract} \maketitle \section{introduction} \lipsum \end{document} Dan Yasaki What is LAT E X? 10 / 22

minimal.tex Go to https://www.uncg.edu/mat/faculty/d_yasaki/ teaching/latex/ and download minimal.tex. Rename it workshop-article.tex and move to a workshop folder. Dan Yasaki What is LAT E X? 11 / 22

Inline versus displayed Use $ around inline math and \[... \] around displayed math. $1 + 2 = 2$ versus \[1 + 2 = 2.\] The number of nonisomorphic Galois 2-adic fields with Galois group G is 1 µ # Aut(G) G (H)α(H). H G The number of nonisomorphic Galois $2$-adic fields with Galois group $G$ is \[\frac{1}{\#\aut(g)}\sum_{h \leq G} \mu_g(h)\alpha(h).\] Dan Yasaki What is LAT E X? 12 / 22

Inline versus displayed Use $ around inline math and \[... \] around displayed math. $1 + 2 = 2$ versus \[1 + 2 = 2.\] The number of nonisomorphic Galois 2-adic fields with Galois group G is 1 µ # Aut(G) G (H)α(H). H G The number of nonisomorphic Galois $2$-adic fields with Galois group $G$ is \[\frac{1}{\#\aut(g)}\sum_{h \leq G} \mu_g(h)\alpha(h).\] Dan Yasaki What is LAT E X? 12 / 22

Inline versus displayed Use $ around inline math and \[... \] around displayed math. $1 + 2 = 2$ versus \[1 + 2 = 2.\] The number of nonisomorphic Galois 2-adic fields with Galois group G is 1 µ # Aut(G) G (H)α(H). H G The number of nonisomorphic Galois $2$-adic fields with Galois group $G$ is \[\frac{1}{\#\aut(g)}\sum_{h \leq G} \mu_g(h)\alpha(h).\] Dan Yasaki What is LAT E X? 12 / 22

Inline versus displayed Use $ around inline math and \[... \] around displayed math. $1 + 2 = 2$ versus \[1 + 2 = 2.\] The number of nonisomorphic Galois 2-adic fields with Galois group G is 1 µ # Aut(G) G (H)α(H). H G The number of nonisomorphic Galois $2$-adic fields with Galois group $G$ is \[\frac{1}{\#\aut(g)}\sum_{h \leq G} \mu_g(h)\alpha(h).\] Dan Yasaki What is LAT E X? 12 / 22

A Syntax Error Figure: xkcd: Wisdom of the Ancients (https://xkcd.com/979/). All long help threads should have a sticky globally-editable post at the top saying DEAR PEOPLE FROM THE FUTURE: Here s what we ve figured out so far... Dan Yasaki What is LAT E X? 13 / 22

newcommand and DeclareMathOperator You can define your own functions. Add these lines to your preamble. \newcommand{\rr}{\mathbb{r}} \newcommand{\qq}{\mathbb{q}} \DeclareMathOperator{\Aut}{Aut} Dan Yasaki What is LAT E X? 14 / 22

newcommand and DeclareMathOperator You can define your own functions. Add these lines to your preamble. \newcommand{\rr}{\mathbb{r}} \newcommand{\qq}{\mathbb{q}} \DeclareMathOperator{\Aut}{Aut} Dan Yasaki What is LAT E X? 14 / 22

newcommand and DeclareMathOperator You can define your own functions. Add these lines to your preamble. \newcommand{\rr}{\mathbb{r}} \newcommand{\qq}{\mathbb{q}} \DeclareMathOperator{\Aut}{Aut} Dan Yasaki What is LAT E X? 14 / 22

Labels and references Label and reference. Compile at least twice. \begin{theorem}\label{thm:bob} Let $a$, $b$, and $c$ blah. \end{theorem} An equation we want to reference: \begin{equation}\label{eq:fancy} \sum_{k = 1}^{\infty} k = -\frac{1}{12}. \end{equation} Theorem~\ref{thm:bob} and \eqref{eq:fancy} blah. Dan Yasaki What is LAT E X? 15 / 22

Labels and references Label and reference. Compile at least twice. \begin{theorem}\label{thm:bob} Let $a$, $b$, and $c$ blah. \end{theorem} An equation we want to reference: \begin{equation}\label{eq:fancy} \sum_{k = 1}^{\infty} k = -\frac{1}{12}. \end{equation} Theorem~\ref{thm:bob} and \eqref{eq:fancy} blah. Dan Yasaki What is LAT E X? 15 / 22

Labels and references Label and reference. Compile at least twice. \begin{theorem}\label{thm:bob} Let $a$, $b$, and $c$ blah. \end{theorem} An equation we want to reference: \begin{equation}\label{eq:fancy} \sum_{k = 1}^{\infty} k = -\frac{1}{12}. \end{equation} Theorem~\ref{thm:bob} and \eqref{eq:fancy} blah. Dan Yasaki What is LAT E X? 15 / 22

Labels and references Label and reference. Compile at least twice. \begin{theorem}\label{thm:bob} Let $a$, $b$, and $c$ blah. \end{theorem} An equation we want to reference: \begin{equation}\label{eq:fancy} \sum_{k = 1}^{\infty} k = -\frac{1}{12}. \end{equation} Theorem~\ref{thm:bob} and \eqref{eq:fancy} blah. Dan Yasaki What is LAT E X? 15 / 22

Labels and references Label and reference. Compile at least twice. \begin{theorem}\label{thm:bob} Let $a$, $b$, and $c$ blah. \end{theorem} An equation we want to reference: \begin{equation}\label{eq:fancy} \sum_{k = 1}^{\infty} k = -\frac{1}{12}. \end{equation} Theorem~\ref{thm:bob} and \eqref{eq:fancy} blah. Dan Yasaki What is LAT E X? 15 / 22

Labels and references Label and reference. Compile at least twice. \begin{theorem}\label{thm:bob} Let $a$, $b$, and $c$ blah. \end{theorem} An equation we want to reference: \begin{equation}\label{eq:fancy} \sum_{k = 1}^{\infty} k = -\frac{1}{12}. \end{equation} Theorem~\ref{thm:bob} and \eqref{eq:fancy} blah. Dan Yasaki What is LAT E X? 15 / 22

Labels and references Label and reference. Compile at least twice. \begin{theorem}\label{thm:bob} Let $a$, $b$, and $c$ blah. \end{theorem} An equation we want to reference: \begin{equation}\label{eq:fancy} \sum_{k = 1}^{\infty} k = -\frac{1}{12}. \end{equation} Theorem~\ref{thm:bob} and \eqref{eq:fancy} blah. Dan Yasaki What is LAT E X? 15 / 22

Labels and references Label and reference. Compile at least twice. \begin{theorem}\label{thm:bob} Let $a$, $b$, and $c$ blah. \end{theorem} An equation we want to reference: \begin{equation}\label{eq:fancy} \sum_{k = 1}^{\infty} k = -\frac{1}{12}. \end{equation} Theorem~\ref{thm:bob} and \eqref{eq:fancy} blah. Dan Yasaki What is LAT E X? 15 / 22

Labels and references Label and reference. Compile at least twice. \begin{theorem}\label{thm:bob} Let $a$, $b$, and $c$ blah. \end{theorem} An equation we want to reference: \begin{equation}\label{eq:fancy} \sum_{k = 1}^{\infty} k = -\frac{1}{12}. \end{equation} Theorem~\ref{thm:bob} and \eqref{eq:fancy} blah. Dan Yasaki What is LAT E X? 15 / 22

Labels and references Label and reference. Compile at least twice. \begin{theorem}\label{thm:bob} Let $a$, $b$, and $c$ blah. \end{theorem} An equation we want to reference: \begin{equation}\label{eq:fancy} \sum_{k = 1}^{\infty} k = -\frac{1}{12}. \end{equation} Theorem~\ref{thm:bob} and \eqref{eq:fancy} blah. Dan Yasaki What is LAT E X? 15 / 22

Citations Go to MathSciNet: http://www.ams.org/mathscinet/ Retrieve BibT E X reference. Save to references.bib. At end: \bibliographystyle{amsalpha} \bibliography{references} In text: \cite{foo} or \cite[theorem 1.2]{foo} L A T E X, BibT E X, L A T E X, L A T E X. Dan Yasaki What is LAT E X? 16 / 22

Citations Go to MathSciNet: http://www.ams.org/mathscinet/ Retrieve BibT E X reference. Save to references.bib. At end: \bibliographystyle{amsalpha} \bibliography{references} In text: \cite{foo} or \cite[theorem 1.2]{foo} L A T E X, BibT E X, L A T E X, L A T E X. Dan Yasaki What is LAT E X? 16 / 22

Citations Go to MathSciNet: http://www.ams.org/mathscinet/ Retrieve BibT E X reference. Save to references.bib. At end: \bibliographystyle{amsalpha} \bibliography{references} In text: \cite{foo} or \cite[theorem 1.2]{foo} L A T E X, BibT E X, L A T E X, L A T E X. Dan Yasaki What is LAT E X? 16 / 22

Citations Go to MathSciNet: http://www.ams.org/mathscinet/ Retrieve BibT E X reference. Save to references.bib. At end: \bibliographystyle{amsalpha} \bibliography{references} In text: \cite{foo} or \cite[theorem 1.2]{foo} L A T E X, BibT E X, L A T E X, L A T E X. Dan Yasaki What is LAT E X? 16 / 22

align and friends a = 1 + 3 (1) c = 4 (2) \begin{align} a &= 1 + 3 \label{eq:eve1} \\ c &= 4 \label{eq:eve2} \end{align} Use align* for no equation numbers. a = 1 + 3 c = 4 Dan Yasaki What is LAT E X? 17 / 22

align and friends a = 1 + 3 (1) c = 4 (2) \begin{align} a &= 1 + 3 \label{eq:eve1} \\ c &= 4 \label{eq:eve2} \end{align} Use align* for no equation numbers. a = 1 + 3 c = 4 Dan Yasaki What is LAT E X? 17 / 22

align and friends a = 1 + 3 (1) c = 4 (2) \begin{align} a &= 1 + 3 \label{eq:eve1} \\ c &= 4 \label{eq:eve2} \end{align} Use align* for no equation numbers. a = 1 + 3 c = 4 Dan Yasaki What is LAT E X? 17 / 22

align and friends a = 1 + 3 (1) c = 4 (2) \begin{align} a &= 1 + 3 \label{eq:eve1} \\ c &= 4 \label{eq:eve2} \end{align} Use align* for no equation numbers. a = 1 + 3 c = 4 Dan Yasaki What is LAT E X? 17 / 22

Figures In your preamble: \usepackage{graphicx} %for including pictures Figure captions go below. The [width = 0.5\textwidth] is optional. \begin{figure} \includegraphics[width=0.5\textwidth]{me.jpg} \caption{caption goes here.}\label{fig:selfie} \end{figure} Dan Yasaki What is LAT E X? 18 / 22

Figures In your preamble: \usepackage{graphicx} %for including pictures Figure captions go below. The [width = 0.5\textwidth] is optional. \begin{figure} \includegraphics[width=0.5\textwidth]{me.jpg} \caption{caption goes here.}\label{fig:selfie} \end{figure} Dan Yasaki What is LAT E X? 18 / 22

Figures In your preamble: \usepackage{graphicx} %for including pictures Figure captions go below. The [width = 0.5\textwidth] is optional. \begin{figure} \includegraphics[width=0.5\textwidth]{me.jpg} \caption{caption goes here.}\label{fig:selfie} \end{figure} Dan Yasaki What is LAT E X? 18 / 22

Figures In your preamble: \usepackage{graphicx} %for including pictures Figure captions go below. The [width = 0.5\textwidth] is optional. \begin{figure} \includegraphics[width=0.5\textwidth]{me.jpg} \caption{caption goes here.}\label{fig:selfie} \end{figure} Dan Yasaki What is LAT E X? 18 / 22

Figures In your preamble: \usepackage{graphicx} %for including pictures Figure captions go below. The [width = 0.5\textwidth] is optional. \begin{figure} \includegraphics[width=0.5\textwidth]{me.jpg} \caption{caption goes here.}\label{fig:selfie} \end{figure} Dan Yasaki What is LAT E X? 18 / 22

Figures In your preamble: \usepackage{graphicx} %for including pictures Figure captions go below. The [width = 0.5\textwidth] is optional. \begin{figure} \includegraphics[width=0.5\textwidth]{me.jpg} \caption{caption goes here.}\label{fig:selfie} \end{figure} Dan Yasaki What is LAT E X? 18 / 22

Tables using tabular You can create tables with tabular and array. The caption is before the table. The label comes after the caption. In preamble: \usepackage{booktabs} %for good looking tables. \begin{table} \caption{caption goes here.}\label{tab:han} \begin{tabular}{clr} \toprule centered & left & right\\ \midrule alice & bob & eve\\ $x$ & $y$ & $z$\\ \bottomrule \end{tabular} \end{table} Dan Yasaki What is LAT E X? 19 / 22

Tables using tabular You can create tables with tabular and array. The caption is before the table. The label comes after the caption. In preamble: \usepackage{booktabs} %for good looking tables. \begin{table} \caption{caption goes here.}\label{tab:han} \begin{tabular}{clr} \toprule centered & left & right\\ \midrule alice & bob & eve\\ $x$ & $y$ & $z$\\ \bottomrule \end{tabular} \end{table} Dan Yasaki What is LAT E X? 19 / 22

Tables using tabular You can create tables with tabular and array. The caption is before the table. The label comes after the caption. In preamble: \usepackage{booktabs} %for good looking tables. \begin{table} \caption{caption goes here.}\label{tab:han} \begin{tabular}{clr} \toprule centered & left & right\\ \midrule alice & bob & eve\\ $x$ & $y$ & $z$\\ \bottomrule \end{tabular} \end{table} Dan Yasaki What is LAT E X? 19 / 22

Tables using tabular You can create tables with tabular and array. The caption is before the table. The label comes after the caption. In preamble: \usepackage{booktabs} %for good looking tables. \begin{table} \caption{caption goes here.}\label{tab:han} \begin{tabular}{clr} \toprule centered & left & right\\ \midrule alice & bob & eve\\ $x$ & $y$ & $z$\\ \bottomrule \end{tabular} \end{table} Dan Yasaki What is LAT E X? 19 / 22

Tables using tabular You can create tables with tabular and array. The caption is before the table. The label comes after the caption. In preamble: \usepackage{booktabs} %for good looking tables. \begin{table} \caption{caption goes here.}\label{tab:han} \begin{tabular}{clr} \toprule centered & left & right\\ \midrule alice & bob & eve\\ $x$ & $y$ & $z$\\ \bottomrule \end{tabular} \end{table} Dan Yasaki What is LAT E X? 19 / 22

Tables using tabular You can create tables with tabular and array. The caption is before the table. The label comes after the caption. In preamble: \usepackage{booktabs} %for good looking tables. \begin{table} \caption{caption goes here.}\label{tab:han} \begin{tabular}{clr} \toprule centered & left & right\\ \midrule alice & bob & eve\\ $x$ & $y$ & $z$\\ \bottomrule \end{tabular} \end{table} Dan Yasaki What is LAT E X? 19 / 22

Tables using tabular You can create tables with tabular and array. The caption is before the table. The label comes after the caption. In preamble: \usepackage{booktabs} %for good looking tables. \begin{table} \caption{caption goes here.}\label{tab:han} \begin{tabular}{clr} \toprule centered & left & right\\ \midrule alice & bob & eve\\ $x$ & $y$ & $z$\\ \bottomrule \end{tabular} \end{table} Dan Yasaki What is LAT E X? 19 / 22

Tables using array \begin{table} \caption{caption goes here.}\label{tab:obiwan} $\begin{array}{clr} \toprule \text{centered} & \text{left} & \text{right}\\ \midrule \text{alice} & \text{bob} & \text{eve}\\ x & y & z\\ \bottomrule \end{array}$ \end{table} Dan Yasaki What is LAT E X? 20 / 22

Tables using array \begin{table} \caption{caption goes here.}\label{tab:obiwan} $\begin{array}{clr} \toprule \text{centered} & \text{left} & \text{right}\\ \midrule \text{alice} & \text{bob} & \text{eve}\\ x & y & z\\ \bottomrule \end{array}$ \end{table} Dan Yasaki What is LAT E X? 20 / 22

Beamer Go to: https://www.uncg.edu/mat/faculty/d_yasaki/ teaching/latex/ and download sample-slides.tex. Rename it workshop-slides.tex and move to workshop folder. We will edit that file together. Dan Yasaki What is LAT E X? 21 / 22

Thank you. Dan Yasaki What is LAT E X? 22 / 22