Basic L A TEX. what is LaTeX?

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

Introduction to LATEX

An Introduction to L A TEX

L A TEX From The Ground Up

Introduction to Latex. A workshop by Dr. Ala Eshmawi

Introduzione a LaTex. Fabrizio Messina

L A TEX Workshop. Don Brower

GROUP ASSIGNMENT. L A TEX Assignment 1/3

What is LaTeX. Is a document markup language and document preparation system for the TeX typesetting program

Introduction to L A T E X

Latex Tutorial. CIS400 Senior Design 9/5/2013

Introduction to LaTeX. Paul Fodor Stony Brook University

Using L A T E X for scientific writing

LaTeX A Tutorial. Mohsen Alimomeni, 2010

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

LAT E X week 2: Basics for Writing a Document

LaTeX. Information Literacy II EN(IL2) Course

COMS 6100 Class note

Very Short Introduction to LaTeX

Formatting with LaTeX

Helen Cameron. A Brief Overview of LATEX

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

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

Lecture 1. MA2730: Analysis I. Lecture slides for MA2730 Analysis I. Study and Assessment Components. MA L A TEX: topics for Lecture 1

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

Document Preparation Word Processors

The basics of LaTeX. Cédric Buron. April 25, 2016

Useful L A TEX Commands

Introduction to. Research Seminar System Analysis. Florian Kragulj

L A TEX Workshop. An Introduction to L A TEX. Rakesh Jana Research Scholar Department of Mathematics IIT Guwhati

Introduction to L A TEX

Guide to using L A TEX

L A TEX incollaboration

CS 189 L A TEX and Linux: Displaying Text

Introduction to LaTeX. Christoph Pickl

Math 235: Introduction to LaTeX

T E X and L A T E X Document preparation tools

An Introduction to. Andrew G. West, Jian Chang CIS400 Senior Design Tutorial September 15, 2009

A Very Brief Introduction to L A T E X MAT 3535

An Introduction to. Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014

Introduction to L A TEX

David Helmbold, October 2005, Revised October 2007

Introduction to L A TEX

A Brief Introduction to L A TEX

Dec. 27 th, 2010 University of Isfahan

Intro to LATEX I. Aaron Erlich POLS/CSSS 510, Why LATEX? Programming Document Structure Floats Tables Lists Math

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

Introduction to LATEX

The AES Convention Paper LATEX class Adam H. Lewenberg (October 18, 2008) 1

L A TEX Course at ICT School

An Introduction to LATEX

The Name of the Game. An Introduction to LATEX. Why L A TEX? The Name of the Game

Getting Started in L A TEX

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

Helen Cameron. A Brief Overview of LATEX

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

Introduction to L A TEX beamer

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

An Interactive Introduction to L A TEX

An Introduction to L A TEX

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

Excellent support for mathematical formatting. Automatically downloads/installs missing components as needed Updates somewhat frequently

An Introduction to L A T E X

NCSU Linguistics Eric Wilbanks & Jeff Mielke. November 21, An open-source typesetting language used for document mark-up

Outline. A Sneak Peek

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

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

simpletex Documentation

Abstract A quick intro by examples to the document preparation language L A TEX.

Document Preparation Using L A TEX

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

My LaTeX Document. July 7, Introduction 2

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

Introduction to L A TEX

Introduction to L A TEX

Lecture 1: Short summary of LaTeX basics

An introduction to L A TEX for students

L A TEX-cursus 5th e session: thesis in L A TEX

Using L A TEX. A numbered list is just that a collection of items sorted and labeled by number.

A brief introduction to L A TEX

Learn LaTeX in 30 Minutes. A. LOTFI School of Science and Technology Nottingham Trent University

A quick guide to L A TEX

Getting Started with L A T E X for a Technical Document or Thesis

Outline. Installing LaTeX. Opening TeXShop. Intro to LaTeX. Intro to LaTeX interface Working with text Tabbing and tables Figures Math and equations

Creating documents in L A TEX a basic tutorial

Introduction to LaTex 2ε. Based on The Not So Short Introduction to LaTeX 2ε by Tobias Oetiker et al., April 2001

Introduction to L A TEX

Learning L A TEX. Patrick Lam

L A TEX for Psychological Researchers

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

A L A T E X quick start

Mikkel Madsen

Workshop P. Stallinga 16-X-2012

VERY VERY SHORT GUIDE TO LATEX

Assessments for CS students:

L A TEX for Philosophers

Academic Skills in Computer Science (ASiCS) II) Text Processing with Latex II.1) Introduction to Latex

Researcher Development Unit: Introduction to Latex

Aalborg October 2014

Absolute L A TEX Beginner

Transcription:

Basic L A TEX Erik Brunvand what is LaTeX? it s a typesetting markup language it s a set of macros that use TeX to format documents it s a powerful set of formatting commands that includes support for mathematical formulae, tables, sectioning, indexing, bibliographic referencing and citation, etc.

what is LaTeX not? it s not a stretchy natural rubber product it s not a word processor it s definitely not WYSIWYG it s not for unstructured documents history TeX is a programming language for specifying typesetting designed by Donald Knuth first release in 1978 mostly finished by 1989 really complicated, low-level, and picky! rhymes with Blecchh

history LaTeX is a set of macros that builds upon TeX started as a set of macros by Leslie Lamport in the early 1980 s ( Lamport s TeX ) infinitely easier to deal with than plain TeX pronounced lah-tekh or lay-tekh how does it work? write a plain ASCII text file add LATEX markup commands in the text compile that file into a professional-looking document layout let LATEX make a myriad of detailed typesetting and page-layout decisions

why LaTeX? separates the content of the document from the format allows very high-quality typesetting during the compilation process allows consistent look and feel for a family of documents great support for bibliographic databases / citations (very) basic document structure % comments start from %, go to end of the line % commands all start with \ \documentclass{ } % what sort of doc? \usepackage{ } % any special add-ons? \begin{document} % setup done, start doc text of your document \end{document} % end of the document

% Perhaps the simplest LATEX document possible \documentclass{article} \begin{document} Hello world! \end{document} % Perhaps the simplest LATEX document possible \documentclass{article} \begin{document} Hello world! \end{document} switch to demo.

LaTeX IDEs I use TeXShop on my Macbook http://pages.uoregon.edu/koch/texshop/texshop.html TeXmaker, TeXstudio, TeXworks, (local IDE) ShareLaTeX, Overleaf, Authorea, (web-based) TeXlipse (if you really like Eclipse) more details special characters: # $ % ^ & _ { } ~ \ these will not print as regular characters you can escape them with a backslash (except for backslash!) \# \$ \% \^{} \& \_ \{ \} \~{} \textbackslash

more details Commands start with a \ \command [optional-parameter] {parameter} You can \textsl{lean} on me! font styles Generally two techniques \emph{ emphasized } {\em emphasized } \textsf{ sans-serif } {\sffamily sans-serif } \textit{ italic text } {\itshape italic text } \textbf{ boldface } {\bfseries boldface} \textnormal{}, \textrm{}, \texttt{}, \textsl{}, \textsc{},

font sizes commands hold until changed so you might want a new scope {\small this is very small text} \tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \LARGE, \huge, \Huge font choices surprisingly complex TeX/LaTeX are old enough that they predate modern conventions % change serif to Times, sans-serif to Helvetica, % monospaced to Courier \usepackage{times} other choices: <default>, lmodern, mathptmx, palatino, bookman, newcent, charter, chancery, avant,

font choices LaTeX style files will usually choose fonts for you best to stick with the defaults, or the simple usepackage options for now or go somewhere like http://www.tug.dk/fontcatalogue/ for examples sectioning commands LaTeX is all about structure \chapter{}, \section{}, \subsection{}, \subsubsection{}, \paragraph{}

\documentclass[11pt]{article} % resize the overall font \title{very Small Document} % define the title and author \author{erik Brunvand} \begin{document} % begin the document \maketitle % generate the title \section{introduction} This is the start of the article. \section{second Section} Here's some additional text in another section \subsection{really?} I don't think I really need a sub-section yet, but just for fun \ldots{} \end{document} This text will not show up in the output. \documentclass[11pt]{article} % resize the overall font \title{very Small Document} % define the title and author \author{erik Brunvand} \begin{document} % begin the document \maketitle % generate the title \section{introduction} This is the start of the article. \section{second Section} Here's some additional text in another section \subsection{really?} I don't think I really need a sub-section yet, but just for fun \ldots{} \end{document} This text will not show up in the output.

options \documentclass[options]{types} options: 10pt, 11pt, 12pt, a4paper, letterpaper, twocolumn, twoside, landscape native types: article, report, book, proc provided types: IEEEtran,ieeeconf, sig-alternate, acmsiggraph, nsfprop, egpubl, vgtc, jpaper other environments \begin{itemize} \item This is the first item \begin{itemize} \item Here s a sub-bullet \item And another sub-bullet point \end{itemize} \item Here s another item \item And another \ldots{} \end{itemize}

other environments \begin{enumerate} \item This is the first item \begin{enumerate} \item Here s a sub-bullet \item And another sub-bullet point \end{enumerate} \item Here s another item \item And another \ldots{} \end{enumerate} other environments \begin{description} \item[first:] This is the first item \begin{enumerate} \item Here s a sub-bullet \item And another sub-bullet point \end{enumerate} \item[another Point:] Here s another item \item[still Another:] And another \ldots{} \end{description}

figures %Latex needs help including images \usepackage{graphicx} \begin{document} \begin{figure} \centering \includegraphics[width=4.2in]{images/animage} \caption{images can be jpg, png, pdf, eps (eps may require the epstopdf package)} \label{figure-handle} \end{figure} In the text you can refer to this as Figure~\ref{figure-handle}. bibliography two parts: 1. the bibliographic database (another text file) 2. the bibtex program (compiles the bibliography)

bibliography In the text you can cite things with \cite{citation-key}. This will extract the citation from the database, generate a citation number, and put the reference into your references section. \bibliographystyle{reference-type} \bibliography{/path/to/your/bib/file} bib file format @InProceedings{kopta-HPG13, title = {An Energy and Bandwidth Efficient Ray Tracing Architecture}, author = {Daniel Kopta and Konstantin Shkurko and Josef Spjut and Erik Brunvand and Al Davis}, booktitle = {High-Performance Graphics (HPG 2013)}, year = 2013, organization = {ACM} } text outside of the entries is treated as a comment @Article{kopta-CGF14, author = {D. Kopta and K. Shkurko and J. Spjut and E. Brunvand and A. Davis}, title = {Memory Considerations for Low Energy Ray Tracing}, journal = {Computer Graphics Forum}, volume = {34}, number = {1}, issn = {1467-8659}, url = {http://dx.doi.org/10.1111/cgf.12458}, doi = {10.1111/cgf.12458}, pages = {47--59}, year = {2015}, }

bibliography In the text you can cite things with \cite{kopta-hpg13,kopta-cgf14}. This will extract the citation from the database, generate a citation number, and put the reference into your references section. \bibliographystyle{plain} % plain, alpha, acm, ieeetr \bibliography{/bib/example.bib} % file path moving on equations and mathematical formatting figures tables modifying standard environments using ACM/IEEE templates etc. etc. etc