Introduction to LaTeX By Dan Burke.

Slides:



Advertisements
Similar presentations
COMPUTER PROGRAMMING Task 1 LEVEL 6 PROGRAMMING: Be able to use a text based language like Python and JavaScript & correctly use procedures and functions.
Advertisements

Html: getting started HTML is hyper text markup language. It is what web browsers look at on the Internet. HTML documents should be created in a simple.
XHTML Basics.
Google Drive / Microsoft Office Plus: online collaboration & more!
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.
SDT-Specific IT-INTRODUCTION IT at the IT-University Versioning LaTex TODAY.
1 Lab Session-I CSIT120 Spring2001 Using Windows Using An Editor Using Visual C++ Using Compiler Writing and Running Programs Lab-1 continues (Session.
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.
Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.
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.
Creating a Web Page HTML, FrontPage, Word, Composer.
1 LaTeX Introduction Wenguang Wang Department of Computer Science University of Saskatchewan February 28, 2000.
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.
A guide for UICET for using Wikispaces.  A wiki is a web page or collection of web pages that can be linked together as a website.  Wikis are often.
Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy.
Introduction to LaTeX PRISM Brownbag Series June 9 th, 2009 Byungwon Woo.
Making an HTML Document Notepad Group Bo Kim Dan Carter Han Chong Justin Weaver Kris Lamont.
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.
Intro to LaTeX WING meeting 12 Jan What’s LaTeX? >An alternative to using MS Word for writing reports and papers >Our target today: HYP Thesis.
Chapter 3 – Part 1 Word Processing Writer for Linux CMPF 112 : COMPUTING SKILLS.
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
Moodle with Style Integrating new technologies to empower learning and transform leadership.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
SIGNewGrad: Intro to LaTeX
Overview Installing the engine Choosing a GUI Editor Customizing LaTex Bibliography Manager Equation Editor LaTex Help Files (*click on icons to go to.
LATEX B. R. Chandavarkar, Wireless Information Networking Group (WiNG), CSE Dept., NITK, Surathkal.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
Typing and Formatting a Research Paper WORD 2013.
C151 Multiuser Operating Systems Introduction to LaTeX.
Landscaper 101. Time Code AMC AMCNET HELP!!! Where do you go for help? –Upper right corner has a ? for the online help –This presentation.
Creating and Editing a Web Page
Information SKL for Graduate Students Instructors: Sina Mater 3 December 2010.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”
R 賴威昇 Introduction 2. Why using LaTeX ? 3. LaTeX usage: ◦ Backbone ◦ Equation ◦ Figure ◦ Table ◦ BibTex 4. Compile 5. Conclusion.
Creating and Editing a Web Page Using Inline Styles
Laboratory Exercise # 10 – Microsoft Word Additional Topics Office Productivity Tools 1 Laboratory Exercise # 10 Microsoft Word Additional Topics Objectives:
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.
VNVe First computer lab Lector: Petr Veigend Brno University of Technology, Faculty of Information Technology Božetěchova 1/2, Brno - Královo Pole.
Department of Mathematics, Jazan University, Jazan.
Google Drive / Microsoft Office Plus: online collaboration & more!
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.
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
LATEX By GerardoVela 3/27/2015.
RMarkdown, LaTeX and Lyx
Using a template to create a document
Tutorial: How to Creat a Website.
Guide To UNIX Using Linux Third Edition
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
Introduction to LaTeX David and Lucas CS 173 Fall 2009
LaTeX Tutorial.
The How-to-Guide for Using Word
LaTeX is not... rubber a Bill Gates product WYSIWYG (see) VooDoo
How to Run a Java Program
ICT Word Processing Lesson 1: Introduction to Word Processing
A Very Short Introduction to LaTeX
A high quality document preparation system
Making Math Look Pretty – or How to Use LaTeX
HOW TO CREATE BIBLIOGRAPHY:
Review of Previous Lesson
Latex Yaser Khamayseh.
Presentation transcript:

Introduction to LaTeX By Dan Burke

Creating complex and compatible documents with references and correct styling is cumbersome with Word

There exists alternatives to Word, one example is LaTeX - a typesetting language similar to C/HTML

LaTeX can be used for papers, labs, word documents, assignments, presentations

LaTeX is written in code similar to HTML, then compiled like a ‘C’ program \documentclass[12pt]{article}% \usepackage{amsmath}% \usepackage{amsfonts}% \usepackage{amssymb}% \usepackage{graphicx} \usepackage{setspace} \usepackage{cite} \usepackage{hyperref} %------------------------------------------- \begin{document} \title{} \author{Dan \\ \emph{with} } \date{\today} \maketitle \singlespacing \begin{abstract} \end{abstract} \doublespacing \section{Theory} file.out file.aux file.log file.pdf compile

HOW DO I WRITE ? Any text editor can be used Compile: Command prompt IDE (integrated development environment) Somewhere between C and HTML

FILE STRUCTURE \documentclass{article} \title{Cartesian closed categories and the price of eggs} \author{Jane Doe} \date{September 1994} \begin{document} \maketitle Hello world! \end{document}

PACKAGES ? Add functionality to your documents Images Equations Links Etc.

PACKAGES \usepackage{amsmath}% \usepackage{amsfonts}% \usepackage{amssymb}% \usepackage{graphicx} \usepackage{setspace} \usepackage{cite} \usepackage{hyperref}

NOTES ON LATEX Commands and special characters start with a ‘\’ Comments start with ‘%’, New line ‘\newline’ or ‘\\’ Special characters or inline equations must be surrounded by ‘$’

NOTES ON LATEX superscrip$^t$ $super^{script}$ subscrip$_t$ code result superscrip$^t$ superscript $super^{script}$ subscrip$_t$ subscript big $\Omega$ big Ω little $\omega$ little ω

Label must come after caption GRAPHICS / FIGURES Including a figure: \begin{figure}[htbp] %[Here Top Bottom Page(of floats)] \centering %center the Figure \includegraphics[width=3.0in]{HeNeSetup} %Width and Filename \caption{Diagram of equipment setup used for the HeNe laser test experiments} %Caption for the figure \label{fg:lasertest} %Label name for the figure, use this to reference it later. \end{figure} Figures can be of type .jpg, .eps and .png some others but may need extra packages… Label must come after caption

EQUATIONS Including an Equation: Gives (with a reference number)… \begin{align} n_i \sin \theta _i = n_t \sin \theta _t \label{eq:snell} \end{align} Gives (with a reference number)…

TABLES The code looks complicated End result looks very nice Very customizable you know the right commands

TABLES \begin{table}[htbp] \centering \begin{tabular}{||l|cr|} \hline col 1 & col 2 & col 3 \\ 1 & 3 & 5 \\ 2 & 4 & 6 \\ \end{tabular} \caption{Table Caption} \label{tab:table_label} \end{table}

CITATIONS & REFERENCES At any point in a paper one can include a citation or reference code result Snell’s law\cite{snell} is shown in equation \eqref{eq:snellslaw}. Snell’s law[1] is shown in equation (2).

BIBLIOGRAPHY AND REFERENCES Bibliography is at the end and must include everything that has a \cite{} in the paper References must point to a “\label” somewhere in the document Chapter, table, figure, equation, etc.

HOW TO COMPILE Easiest to compile to PDF, but many other options are available Can be done from a program OR command line >> pdflatex filename.tex Output is to “filename.pdf”

HOW TO COMPILE References and citations are found at runtime and no searching is performed. Needs to be compiled TWICE, once to see all references, second to label them appropriately

Compiling the ‘tex’ file - program reads through your file ONCE See equation \eqref{simpleMath}. \begin{equation} 1+2=3 \label{simpleMath} \end{equation}

Compiling the ‘tex’ file - program reads through your file ONCE ?? See equation \eqref{simpleMath}. \begin{equation} 1+2=3 \label{simpleMath} \end{equation} file.aux 1 Adds ‘simpleMath’

Compiling the ‘tex’ file - program reads through your file ONCE Found it ! See equation \eqref{simpleMath}. \begin{equation} 1+2=3 \label{simpleMath} \end{equation} file.aux 2 Adds ‘simpleMath’

Old Assignment: WINDOWS LABS AT CARLETON Get latex.zip from 1908 website. Save latex.zip to w:\ drive unzip the file: right click ‘latex.zip’ ‘extract here’ Do not simply double click the file

WINDOWS LABS AT CARLETON Open Start Menu Click ‘Run...’ Type ‘cmd’ and press return Change to latex directory: \> cd w:\latex To compile and run: w:\latex\> pdflatex assignment

YOUR ASSIGNMENT Recreate ‘final_report.pdf’ using ‘assignment.tex’ Look at ‘assignment.pdf’ to see what is already there Reuse old code, copy and paste, etc. Due on Sunday March 9

SOME TIPS Use your old files as starting points for new reports Search examples and guides for added help, lots of resources available Many programs can output to Latex format (ex. MathType, Maple, …) Ask for help

SOME TIPS Use labels with useful names \label{fig:nucleus} Good ! \label{pic2} Bad \label{fig:big_atom} Good ! \label{fig:big atom} Bad When in doubt, compile again

Creating the document Text Editors to edit and compile in shell/terminal Integrated Design Environment (IDE) edit and compile in one application Browser/cloud based tools (Overleaf) What you see is what you get (WYSIWYG). Bolt on point and click editors Do not create actualy latex BAD!

Text Editors – many choices Cross Platform – Sublime Text (install latex mode then almost like and ide) OSX – TextMate, Emacs, vi Windows – Notepad++

Overleaf Web and Browser based latex editor Cloud based storage Large number of templates Collaborative document developement

WHERE CAN I FIND IT ? Linux – check documentation for the Latex source (suggested IDE: Kile) Mac OS X – use MacTeX, or homebrew or macports to install as a package (suggested IDE: TeXShop) Windows – MikTex or ProTeXt (suggested IDE: TexWorks or Texniccenter) In the lab click on file and TexWorks should start up.

MORE INFO… See the example.tex file provided www.latex-project.org www.latex-project.org/guides/ http://en.wikipedia.org/wiki/Help:Displaying_a_form ula