Introduction Math bootcamp 2017

Slides:



Advertisements
Similar presentations
Document preparation for project reports Rob Pooley
Advertisements

EndNote reference manager. Introduction to EndNote.
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.
Some LaTeX features By Andreas Grondoudis 1. Contents This week we'll look at some TeX features Before specifics – Already uploaded on my website; the.
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.
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,
Document Preparation LaTeX and other vital tools for computing scientists. CMPUT 603: Teaching and Research Methods Paul Berube Sept. 19, 2005.
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.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
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.
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.
Digital Imaging and Remote Sensing Laboratory R.I.TR.I.TR.I.TR.I.T R.I.TR.I.TR.I.TR.I.T Writing Large Documents with LaTeX and WinEdt Emmett Ientilucci.
Welcome to the 3-day Workshop on > Presented by Saeid Abolfazli Faculty of Computer Science and IT University Malaya 23,24, and.
Adopted from: PRISM Brownbag Series June 9 th, 2009 Byungwon Woo.
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… About Tex & LaTeX What is TeX? What is LaTeX? Advantages - Disadvantages.
Introduction to Unix – CS 21 Lecture 16. Lecture Overview LaTeX History Running and creating LaTeX documents Documents and Articles Tables Lists Fonts.
Introduction to LaTeX Thomas Gorry. What is Latex?  A typesetting system used to produce professional looking documents.  Particularly good at handling.
Citation in Latex with Jabref Saeid Abolfazli Faculty of Computer Science and IT, University Malaya.
LaTeX Tutorial Fiona Shearer May 11th, 2004 Disclaimer added
LATEXLATEX IPA – batch. LATEXLATEX  A document preparation system - pronounced as lay-tek  It is a markup and programming language created by.
LaTeX A Short Intro to Marco D. Santambrogio Politecnico di Milano Sala DEIB 2 Sept 2015 Ver. 2/9/15.
LaTeX (+ BibTeX) Tutorial
1 Lecture 4 A Brief Introduction to LaTeX Introduction to Information Technology Dr. Ken Tsang 曾镜涛
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.
Academic Writing Using LaTeX
Creating documents 09/18/13 Introduction to Latex.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office Word 2007 Lab 3 Creating Reports and Tables.
SIGNewGrad: Intro to LaTeX
LATEX B. R. Chandavarkar, Wireless Information Networking Group (WiNG), CSE Dept., NITK, Surathkal.
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.
Introduction to LaTeX and Bibtex
Information SKL for Graduate Students Instructors: Sina Mater 3 December 2010.
R 賴威昇 Introduction 2. Why using LaTeX ? 3. LaTeX usage: ◦ Backbone ◦ Equation ◦ Figure ◦ Table ◦ BibTex 4. Compile 5. Conclusion.
Sébastien Le Roux. not What I am not going to talk about The explanations are in my HowTo ! Check my web IPCMS Basic tutorial to programming.
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.
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.
Lecture 1 Introduction to Latex
Sébastien Le Roux.
LaTeX Resume / CV Workshop
Vereniging voor Technische Physica workshop 2016.
Bibliography Management in LaTeX
RMarkdown, LaTeX and Lyx
By Rajyalakshmi Divi IIT Bombay
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
ENDNOTE Software – The Basics
Basic usage and packages of TEX
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.
Presentation transcript:

Introduction Math bootcamp 2017 August 14th, 2017

What is LaTex A scripting language used for writing documents. Donald Knuth in 1978 develop a typesetting program Tex. LaTex is an extension of Tex. Like a programming language, and produces files (PDF, html, ps) Differences with Microsoft word: Microsoft Word: ‘What You See Is What You Get’ (WYSIWYG) LaTex: You cannot see the final document while you are typing (WYSIWYM)

Advantages It looks pretty It is fast Consistent in term of formatting. Good for long documents, such as dissertation and books. y = \frac{{n!}}{{k!\left( {n - k} \right)!}}p^k q^{n - k} = \left( {\begin{array}{*{20}c} n \\ k \\\end{array}} \right)p^k q^{n - k}

Advantages (Cont.) Stability and interchangeability (Office 97, Office 2000, ….) Most journals have their LaTeX styles file (just download and use them). Good bibliography management. Connection with statistical software (R and SAS) It is free!

Disadvantages Learning curve. Take a little bit longer to obtain working knowledge. Flexibility. Hard to customize. Trade-off: hard to learn, but powerful.

How to Setup LaTeX for Windows Download and install MikTeX http://www.miktex.org/ Install Acrobat Reader Install Editor Text Studio http://www.texstudio.org/ WinEdt http://www.winedt.com/ Emacs, vi, etc. LaTeX package

How to Setup LaTeX for Mac Download and install MacTex https://www.tug.org/mactex/ Or TexShop http://pages.uoregon.edu/koch/t exshop/ Install Acrobat Reader Install Editor Text Studio http://www.texstudio.org/ WinEdt http://www.winedt.com/ Emacs, vi, etc. LaTeX package LaTeX package

How to Setup LaTeX. Don’t want to install anything Use overleaf www.overleaf.com

Get Started with some basics

Get Started \documentclass[12pt]{article} \begin{document} Hello world. This is my \emph{first} document prepared in \LaTeX. \end{document}

\documentclass \documentclass[12pt]{article} {report} {beamer} {book} {letter} \documentclass[12pt]{article} article: suitable for short document, journal articles report: good for longer document, such as thesis. beamer: similar to power point format.

Font

Font Size

Titles \documentclass[12pt]{article} \begin{document} \title{Introduction to \LaTeX} \author{Zeda Li and William W.S. Wei} \maketitle Hello world. This is my \emph{first} document prepared in \LaTeX. \end{document}

Sections … \begin{abstract} ... \end{abstract} \section{introduction} \section{Methodolgy} \subsection{Data and Variables} \subsection{Statistical Model}

Standard Environments \begin{env_name} stuff \end{enc_name} Environment name (env_name) can be document, itemize, enumerate, tabular, etc. \begin{itemize} \item The first item \item The second item \end{itemize} \begin{enumerate} \item The first item \item The second item \end{enumerate}

Standard Environments \begin{equation} E=mc^2 \end{equation} \begin{tabular}{l|c|r} 1 & 2 & 3 \\ 4 & 5 & 6 \\ \end{tabular}

Figures \begin{figure} \centering \includegraphics {name of the figure file} \caption{Put the caption here} \end{figure} You can insert figures in pdf, jpg, png, eps, and other formats into your document. In general, figures have to be in the same folder as .tex file. Multiple figures can be inserted using \subfigure https://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions https://www.sharelatex.com/learn/Inserting_Images

Labels and cross-reference \begin{figure} \centering \includegraphics {name of the figure file} \caption{Put the caption here} \label{a short name that you can easily remember} \end{figure} \section{Introduction} \label{sec:intro} \section{Methodology} \label{sec:meth} …. In Section \ref{sec:intro}, we see the Figure \ref{fig:s11},

Math Mode

Math Mode Use \( … \) or $...$ for in-line math formulas Use \[ … \] or $$...$$ for math formulas with separate line Spaces inside \( … \) and \[ … \] are ignored. If needed, use “\ ” or “~” to add space Use \mbox{…} or \text{…} for words inside math formulas \begin{equation} …. \end{equation}

Math Mode: some examples x = \frac{-b \pm \sqrt{b^2-4ac} } {2a} \int_0^\infty \frac{\partial u}{\partial x} \gamma, \pi, \theta, \lambda, \sigma \Gamma, \Pi, \Theta, \Lambda, \Sigma https://oeis.org/wiki/List_of_LaTeX_mathematical_symbols http://artofproblemsolving.com/wiki/index.php?title=LaTeX:Symbols

Exercise Produces following equations:

Special Characters # $ % ^ & _ { } ~ \ \# \$ \% \^{} \& \_ \{ \} \~{} # $ % ^ & _ { } ~ \ \# \$ \% \^{} \& \_ \{ \} \~{} Try \cdots, \vdots

User-defined Commands \newcommand\bs{\boldsymbol} \newcommand{\cov}{\text{Cov}} \newcommand{\cor}{\text{Corr}} \def\mb#1{\setbox0=\hbox{$#1$} \kern-.025em\copy0\kern-\wd0 \kern.05em\copy0\kern-\wd0 \kern-.025em\raise.0em\box0} \def\X{{\bf X}} \def\Z{{\bf Z}} \newcommand{\beq}{\begin{equation}} \newcommand{\eeq}{\end{equation}}

Packages Many packages can be used to fill user’s advanced needs. It is hard to include all of them here. Use google! https://en.wikibooks.org/wiki/LaTeX/Package_Reference

Tables

\begin{tabular}{|l|l|} Apples & Green \\ Strawberries & Red \\ Oranges & Orange \\ \end{tabular}

\begin{tabular}{l*{6}{c}r} Team & P & W & D & L & F & A & Pts \\ \hline Manchester United & 6 & 4 & 0 & 2 & 10 & 5 & 12 \\ Celtic & 6 & 3 & 0 & 3 & 8 & 9 & 9 \\ Benfica & 6 & 2 & 1 & 3 & 7 & 8 & 7 \\ FC Copenhagen & 6 & 2 & 1 & 3 & 5 & 8 & 7 \\ \end{tabular}

... \usepackage{multirow} \begin{tabular}{ |l|l|l| } \hline \multicolumn{3}{ |c| }{PhD Office} \\ Senior Associate Dean & Milton F Stauffer Professor & Paul Pavlou \\ \multirow{2}{*}{Student Services} & Associate Director & Lisa Fitch \\ & Coordinator & Felix Flores \\ \multirow{12}{*}{Concentration Advisors} & Accounting & Jagannathan Krishnan \\ & Decision Neuroscience & Angelika Dimoka \\ & Finance & Connie X. Mao\\ & Human Resource & Crystal Harold \\ & Interdisciplinary Studies & Angelika Dimoka \\ & International Business & J. Jay Choi\\ & Marketing & Susan Mudambi \\ & MIS & Sunil Wattal \\ & RMI & Hua Chen\\ & Statistics & Cheng Yong Tang\\ & Strategic & Susan Feinberg\\ & Tourism \& Sports & Daniel Funk\\ \end{tabular}

Exercise Produces following tables: https://en.wikibooks.org/wiki/LaTeX/Tables https://www.sharelatex.com/learn/Tables

Bibliography and Citation

Simple Bibliography If you know you have between 10 and 99 publications, you can start with \begin{thebibliography}[99]. Use any two digit number in the argument, since all numerals are the same width.

Bibliography Management BibTeX is a widely used bibliography management tool in LATEX. The bibliography entries are kept in a separate file and then imported into the main document. Once the external bibliography file is imported, the command \cite, \citet, \citep,… Very useful to build your own bibliography library. Make sure include package \usepackage{natbib}

Main Tex Ths document is an example of BibTeX using in bibliography management. Three items are cited: \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Einstein journal paper \cite{einstein}, and the Donald Knuth's website \cite{knuthwebsite}. The \LaTeX\ related items are \cite{latexcompanion,knuthwebsite}.   \medskip   \bibliographystyle{unsrt} \bibliography{sample}

BibTex @article{einstein, author = "Albert Einstein", title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German}) [{On} the electrodynamics of moving bodies]", journal = "Annalen der Physik", volume = "322", number = "10", pages = "891--921", year = "1905", DOI = "http://dx.doi.org/10.1002/andp.19053221004" }   @book{latexcompanion, author = "Michel Goossens and Frank Mittelbach and Alexander Samarin", title = "The \LaTeX\ Companion", year = "1993", publisher = "Addison-Wesley", address = "Reading, Massachusetts" }   @misc{knuthwebsite, author = "Donald Knuth", title = "Knuth: Computers and Typesetting", url = "http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html" }

Another Advantages The bibTex file can be downloaded directly from Temple library Website!!!

Other Usage of Latex

Connect LaTex with other software Connect with R. Provide flexible and fast report writing and editing. Need two packages, kinitr and sweave. If you are all interested in learning R, we can do a section latter.

LaTex for Presentation Good for math intensive presentation. Not flexible LaTex for CV