Rolando V. RaqueñoMonday, June 15, 2015 1 Quick LaTeX Tutorial.

Slides:



Advertisements
Similar presentations
Lecture 8 Introduction to Latex. Introduction TeX is essentially a Markup Language (like HTML, XML and RTF) TeX written by Donald Knuth in 70´s –A revolution.
Advertisements

USING BIBTEX. Making references in LaTeX (fish.tex) \documentclass{article} \begin{document} \emph{My mother} is a \underline{fish} \cite{WF}. \begin{thebibliography}{99}
Rolando V. RaqueñoThursday, April 23, Referencing in LaTex Recall the following method of referencing.
LaTeX tutorial Eileen Kraemer CSCI 6950 September 30 th, 2011.
LaTeX How to setup and write a lab in LaTeX. What is it and how is it different? Latex is a scripting language used for writing documents. It differs.
Introduction to Jeroen Buijs.
Introduction to LaTeX CPS470 Software Engineering Fall 1998.
LaTeX 2e Basics CSE470 Fall 2000 Software Engineering B.J. Czerny Updated by J. Brown, A. Subramanian.
Applications of Tex for papers and your thesis Lecture by Natascha Niermann,in context of the phd progamm FB Physik, Surface Physics Universität Osnabrück,
LaTeX 2e Basics CSE470 Spring 2000 Software Engineering B.J. Czerny Updated by Prasad.
School of Aeronautics and Astronautics Introduction to by Arun K. Subramaniyan
CS 173 Fall Introduction to LaTeX David and Lucas CS 173 Fall 2009 Written with significant references to Oetiker et al. “The Not So Short Introduction.
Chapter 12: Network Programming Desktop Publishing Translator models Latex Documentation Preparation Postscript programming language WYSIWIG Editors.
LaTeX Tutorial. What is LaTeX? TeX is a typesetting system designed in 1978 to automate the production of high quality print using any type of computer.
Latex A document preparation system All academic staff in Computer Science publish their work using Latex – NOT Microsoft Word. Why? Note to self – press.
1 LaTeX Introduction Wenguang Wang Department of Computer Science University of Saskatchewan February 28, 2000.
Lecture 3 LaTeX and LyX. LaTeX TeX Computer program by Donald Knuth for typesetting text and formulas (1977) LaTeX Predefined professional layout You.
For AMS 200, 2009 Dept. of Applied Math & Statistics School of Engineering University of California Santa Cruz, CA A Very Short Introduction to LaTeX.
Adopted from: PRISM Brownbag Series June 9 th, 2009 Byungwon Woo.
LaTeX tutorial Syed Shazli. Most of the material taken from Monash University Online material available from Googling…
Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy.
Introduction to LaTeX PRISM Brownbag Series June 9 th, 2009 Byungwon Woo.
Introduction to LaTeX NetWorkShop by Daniel Göhl.
Using graphics/images in LaTeX By Matt Edwards. Introduction  How do you go about using graphics in LaTeX?  What we’ll cover: Syntax Attributes.
Introduction to Latex A very quick look at typesetting documents Andrei Gurtov (based on Troy D. Milner and Simon Cuce slides)
Introduction to LaTeX Thomas Gorry. What is Latex?  A typesetting system used to produce professional looking documents.  Particularly good at handling.
LaTeX Tutorial Fiona Shearer May 11th, 2004 Disclaimer added
LaTeX A Short Intro to Marco D. Santambrogio Politecnico di Milano Sala DEIB 2 Sept 2015 Ver. 2/9/15.
CC510 - LaTeX 1 Lecturer - 김한규 (Hangyu Kim) 1CC510 – 2011.
June LaTeX " A typesetting package for formatting and creating documents. Created by L. Lamport based on TeX designed by D. Knuth. " Alphanumeric.
1 LaTeX For Dummies Mulugeta Gebregziabher Division of Biostatistics and Epidemiology MUSC April 4, 2011.
Introduction to Interactive Media Interactive Media Components: Text.
Text, not Word Processing Gordon J. Pace March 2006 First steps.
Scientific Communication CITS7200 Lecture 1 Introduction to SciComm and LaTeX.
Academic Writing Using LaTeX
Visualizing and Presenting1Söhn (SS 2008) Visualizing and Presenting in Research and Teaching Introduction to LaTeX Jan-Philipp Söhn Adapted from David.
Creating documents 09/18/13 Introduction to Latex.
1 Winter Quarter 2003Rolando V. Raqueño Referencing in LaTex Recall the following method of referencing.
LATEX Graphics Inclusion Techniques. The Idea of the Bounding Box is the key to understanding graphical displays in LATEX, or any derivative (i.e. pdfTEX).
Digital Imaging and Remote Sensing Laboratory R.I.TR.I.TR.I.TR.I.T R.I.TR.I.TR.I.TR.I.T Creating Documents with LaTeX and WinEdt Emmett Ientilucci Digital.
LaTex By Wen Ying Gao.
LATEX B. R. Chandavarkar, Wireless Information Networking Group (WiNG), CSE Dept., NITK, Surathkal.
Text, not Word Processing Gordon J. Pace March 2006 Logical Organisation.
1 Winter Quarter 2004Rolando V. Raqueño Quick LaTeX Tutorial.
An introduction to LaTeX a document preparation language Richard Bower (from an original lecture by Shaun Cole and Cedric Lacey)
C151 Multiuser Operating Systems Introduction to LaTeX.
CSE470 Software Engineering Fall Tools - Overview LaTeX – Tool to create documents RCS – Revision Control System, to maintain multiple versions.
R 賴威昇 Introduction 2. Why using LaTeX ? 3. LaTeX usage: ◦ Backbone ◦ Equation ◦ Figure ◦ Table ◦ BibTex 4. Compile 5. Conclusion.
Vereniging voor Technische Physica workshop 2016.
Department of Mathematics, Jazan University, Jazan.
LaTex -Computer scientist named Donald Knuth developed the program called Tex, in 1978.(mainly focused on formulae) -Later a mathematician and computer.
1 Winter Quarter 2003Rolando V. Raqueño Quick LaTeX Tutorial.
LaTeX Tutorial. What is LaTeX? TeX is a typesetting system designed in 1978 to automate the production of high quality print using any type of computer.
LATEX By GerardoVela 3/27/2015.
Vereniging voor Technische Physica workshop 2016.
RMarkdown, LaTeX and Lyx
Ma Communicating Mathematics
Introduction to LaTeX David and Lucas CS 173 Fall 2009
LaTeX Tutorial.
Introduction to LaTeX By Dan Burke.
LaTeX is not... rubber a Bill Gates product WYSIWYG (see) VooDoo
Introduction to LaTeX David Squire
Graphics in TeX CONTENTS Sung-Ju Kang Department Of Physics
A Very Short Introduction to LaTeX
Engineering Librarian
A high quality document preparation system
Making Math Look Pretty – or How to Use LaTeX
LaTeX A typesetting package for formatting and creating documents. Created by L. Lamport based on TeX designed by D. Knuth. Alphanumeric source files are.
Latex Yaser Khamayseh.
Presentation transcript:

Rolando V. RaqueñoMonday, June 15, Quick LaTeX Tutorial

Rolando V. RaqueñoMonday, June 15, LaTeX Tutorial Why do you want to learn LaTeX? Nuts and Bolts of LaTex Examples

Rolando V. RaqueñoMonday, June 15, Why you want to learn LaTeX Very powerful control of document generation, particularly large technical documents Minimizes the drudgery of formatting, numbering, and referencing Disadvantage: –Steep Learning Curve

Rolando V. RaqueñoMonday, June 15, LaTeX Platforms Scientific Workplace –(Commercial Package) UNIX Systems (LyX) –(Free) MikTex and WinEdt –PC Shareware

Rolando V. RaqueñoMonday, June 15, LaTeX Resources Ref/ Ref/ The Not So Short Introduction to LaTeX 2e (Tobias Oetiker) Math Into LaTeX (George Gratzer)

Rolando V. RaqueñoMonday, June 15, The LaTeX Process 1.Create a text file (with your favorite text editor) with LaTeX commands 2.“Compile” or “Build” your document using the LaTeX program 3.Display resulting Document 4.Continue writing and go to 1 until finished 5.Convert Document to Postscript or PDF

Rolando V. RaqueñoMonday, June 15, Flow of LaTeX Process

Rolando V. RaqueñoMonday, June 15, Source code of your first LaTeX document (fish.tex) \documentclass{article} \begin{document} My mother is a fish. \end{document}

Rolando V. RaqueñoMonday, June 15, Commands to Build and View Document To use xdvi viewer % latex fish.tex … % xdvi fish.dvi To use acroread % pdflatex fish.tex … % acroread fish.pdf

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Emphasizing words (fish.tex) \documentclass{article} \begin{document} \emph{My mother} is a fish. \end{document}

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Underlining words (fish.tex) \documentclass{article} \begin{document} \emph{My mother} is a \underline{fish}. \end{document}

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Making references in LaTeX (fish.tex) \documentclass{article} \begin{document} \emph{My mother} is a \underline{fish} \cite{WF}. \begin{thebibliography}{99} \bibitem{WF} William Falkner, \emph{As I Lay Dying} \end{thebibliography} \end{document}

Rolando V. RaqueñoMonday, June 15, Need to compile the document twice Because we are using symbolic references, e.g., \cite{WF}, a second pass is necessary The second pass will resolve references

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Sum Equation Example (sum.tex) \documentclass{article} \begin{document} \begin{equation} \label{E:sum} s = \sum_{i=1}^{n}x_{i} \end{equation} \end{document}

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Sum of Squares Equation Example (sum_squares.tex) \documentclass{article} \begin{document} \begin{equation} \label{E:sum_squares} s2 = \sum_{i=1}^{n}x_{i}^{2} \end{equation} \end{document}

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Mean Equation Example (mean.tex) \documentclass{article} \begin{document} \begin{equation} \label{E:mean} \bar{x} = \frac{\sum_{i=1}^{n}x_{i}} {n} \end{equation} \end{document}

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Mean Equation Example with limits (mean_limits.tex) \documentclass{article} \begin{document} \begin{equation} \label{E:mean} \bar{x} = \frac{\sum\limits_{i=1}^{n} x_{i}} {n} \end{equation} \end{document}

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Variance Equation Example (variance.tex) \documentclass{article} \begin{document} \begin{equation} \label{E:variance} \sigma^{2} = \frac{\sum\limits_{i=1}^{n} \left(x_{i} - \bar{x}\right)^{2}} {n-1} \end{equation} \end{document}

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Standard Deviation Equation Example (sd.tex) \documentclass{report} \begin{document} \chapter{Standard Deviation} \begin{equation} \label{E:sd} \sigma = \sqrt{\frac{\sum\limits_{i=1}^{n} \left(x_{i} - \bar{x}\right)^{2}} {n-1}} \end{equation} \end{document}

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Changing the document styles \documentclass{article} \documentclass{book} \documentclass{letter} \documentclass{report}

Rolando V. RaqueñoMonday, June 15, Report document style (main.tex) \documentclass{report} \title{Assignment 2 for SIMG726} \author{Rolando V. Raque\~no} \begin{document} \maketitle \tableofcontents \end{document}

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Create the following chapters chapter_sum.tex chapter_mean.tex chapter_sd.tex

Rolando V. RaqueñoMonday, June 15, chapter_mean.tex \chapter{Mean} \label{C:Mean} \begin{equation} \label{E:mean} \bar{x} = \frac{\sum_{i=1}^{n}x_{i}} {n} \end{equation}

Rolando V. RaqueñoMonday, June 15, chapter_sum.tex \chapter{Sum} \label{C:Sum} \begin{equation} \label{E:sum} s = \sum_{i=1}^{n}x_{i} \end{equation}

Rolando V. RaqueñoMonday, June 15, chapter_sd.tex \chapter{Standard Deviation} \label{C:SD} \begin{equation} \label{E:sd} \sigma = \sqrt{\frac{\sum\limits_{i=1}^{n} \left(x_{i} - \bar{x}\right)^{2}} {n-1}} \end{equation}

Rolando V. RaqueñoMonday, June 15, Modify main.tex to include chapters \documentclass{report} \title{Assignment 2 for SIMG726} \author{Rolando V. Raque\~no} \begin{document} \maketitle \tableofcontents \include{chapter_sum} \include{chapter_mean} \include{chapter_sd} \end{document}

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Modify chapter_sd.tex \chapter{Standard Deviation} \label{C:SD} … \end{equation} We can see that equation \ref{E:sd} uses equation \ref{E:mean} to compute the mean and that the \emph{Mean} function uses equation \ref{E:sum} both of which are defined in Chapter \ref{C:Sum} and \ref{C:Mean}, respectively

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Modify main.tex to include chapters \documentclass{report} \title{Assignment 2 for SIMG726} \author{Rolando V. Raque\~no} \begin{document} \maketitle \tableofcontents \include{chapter_mean} \include{chapter_sum} \include{chapter_sd} \end{document}

Rolando V. RaqueñoMonday, June 15,

Rolando V. RaqueñoMonday, June 15, Including image graphics into you LaTeX document Need to convert your image graphics into EPS (encapsulated postscript). –For images, use pnmtops, e.g. % pnmtops MyCat.pgm > MyCat.ps Need to include an extension package to LaTeX called “graphics” using command \usepackage{graphics} N.B. In CIS systems, following example works for latex but not for pdflatex

Rolando V. RaqueñoMonday, June 15, Image Graphics Example (image.tex) \documentclass{article} \usepackage{graphics} \begin{document} \begin{figure} \includegraphics{MyCat.ps} \caption{This is My Cat} \label{F:MyCat} \end{figure} \end{document}