L A TEXInstallation and Introduction

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

Guide to using L A TEX

LAT E X week 2: Basics for Writing a Document

A Beginner s guide to L A TEX for CSCA67/MATA67. Kohilan Mohanarajan

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

An Introduction to L A TEX

L A TEXday, morning session Discovering L A TEX

Learning L A TEX. Patrick Lam

L A TEX for Psychological Researchers

Introduction to LATEX

Using L A TEX Tom Edgar

Introduction to LaTeX. Paul Fodor Stony Brook University

Become a L A TEX Guru

An introduction to L A TEX for students

Learn how to [learn] LATEX

How to L A TEX. George Wong, David Mykytyn. 6 October 2016

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

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

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

L A TEX examples. a b c a b c b b a c b c c b a. This table was typeset with the following commands.

Mikkel Madsen

Assessments for CS students:

A Grasshopper s Approach to L A TEX

L A TEX From The Ground Up

L A TEX for Psychological Researchers

Introduction to L A TEX

Mikkel Madsen

Introduction to LaTeX. M&S Talk Series August 16 th, 2016 AH Sheikh

Learning LaTeX: The Basics

MATLAB for the Sciences

Outline. A Sneak Peek

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

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

Getting started with Latex

Basics. Options. Commands

Introduction to Latex. A workshop by Dr. Ala Eshmawi

Introduction to LaTeX. Christoph Pickl

LaTeX A Tutorial. Mohsen Alimomeni, 2010

Introduction to L A TEX

An Introduction to LATEX

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

Math 235: Introduction to LaTeX

How to get started in L A TEX

Researcher Development Unit: Introduction to Latex

Introduction to LATEX

An Introduction to L A T E X

Introduction to L A TEX

Getting Funky: Headers, Tables, Abstracts etc.

The Joys of L A T E X

Introduction to L A TEX beamer

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

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

VERY VERY SHORT GUIDE TO LATEX

Presentation of Scientific Results

A Brief Introduction to LaTeX

The Joys of L A T E X

Useful L A TEX Commands

Workshop: A Simple Introduction to L A TEX

Introduction to L A TEX

Dec. 27 th, 2010 University of Isfahan

An Introduction to LATEX

My LaTeX Document. July 7, Introduction 2

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

A Brief Introduction to L A TEX

Helen Cameron. A Brief Overview of LATEX

Getting Started with L A TEX

Intro to LaTeX Workshop

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

Helen Cameron. A Brief Overview of LATEX

PHYS-4007/5007: Computational Physics

Introduction to L A TEX

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

L A TEX Workshop. Don Brower

WHAT IS L A TEX? LaTeX (pronounced lay-tek or lah-tek ) is a language created for the purpose of typesetting text and mathematical formulas.

Forschungskolleg / ACSE Exercise 1 - LaTeX

L A TEX 101. John Gardner and Alex Yuffa. May 2, How does L A TEX work? Exercise... 4

Introduction to L A TEX

Student Learning Service: Introduction to Latex

Introduction to L A TEX

A quick guide to L A TEX

Getting started General Tables Figures Math Wrap up. UCLA Department of Statistics Statistical Consulting Center. LaTeX Bootcamp

LearningLatex. % This file walks you through some basic things with LaTex % Thanks to Patrick Lam and Maya Sen for letting me borrow their materials

Introduction to L A TEX Part II

Alex Milbrand. September 8, Graduate Student Seminar. Introduction to L A TEX. Alex Milbrand. History. Software. Basic Set-Up and Construction

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

Introduction Beamer Personalization Beamer by Examples Discussion. Beamer by Examples. Powerful Language for Typesetting and Presentation

Introduction to L A TEX

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

Introduction to LAT E X

Introduction to L A TEX Part II

Very Short Introduction to LaTeX

Absolute L A TEX Beginner

Writing Mathematics in L A TEX by Example

1 Different Document Classes

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

A Short Introduction to L A TEX

An Interactive Introduction to L A TEX

Simple Math. Adam Dishaw 2011 September 21. Suppose you want to include some math in your documents. Just follow these basics steps:

A Short L A TEX Introduction

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

Transcription:

L A TEXInstallation and Introduction Andrew McAllister Society of Physics Students September 21st, 2011 Andrew McAllister (SPS) LATEXIntro September 21st, 2011 1 / 22

What is L A TEX? L A TEXis a typesetting system that is considered the standard for writing scientific papers - especially those with a lot of math. Andrew McAllister (SPS) LATEXIntro September 21st, 2011 2 / 22

What is L A TEX? L A TEXis a typesetting system that is considered the standard for writing scientific papers - especially those with a lot of math. Consider the following example: OR: \int_a^b f(x) dx = \lim_{n\rightarrow\infty} \sum_{n=1}^n f(c_i) \Delta x_i b a f (x)dx = lim n n=1 n f (c i ) x i Andrew McAllister (SPS) LATEXIntro September 21st, 2011 2 / 22

What You Need to Run L A TEX A L A TEXDistribution An Editor A Document Viewer Andrew McAllister (SPS) LATEXIntro September 21st, 2011 3 / 22

L A TEXDistribution - Miktex The most common distribution is Miktex which can be found at miktex.org. Andrew McAllister (SPS) LATEXIntro September 21st, 2011 4 / 22

L A TEXDistribution - Miktex The most common distribution is Miktex which can be found at miktex.org. Miktex also easily installs packages for you. Examples: AMS Math Packages Resume Packages TikZ and PGF... Andrew McAllister (SPS) LATEXIntro September 21st, 2011 4 / 22

... Which does things like this: ITEM name COMPONENT nil SYSTEM parts SENSOR nil PART nil Cooling System nil Cooling Loop nil Pressure nil Temperature nil Pump nil Valve nil Instants cool Instants fw-loop sw-loop Instants fw-p-suction fw-p-delivery fw-p-loop sw-p-suction sw-p-delivery sw-p-loop Closed/Open nil Instants fw-clop-warm-up sw-clop-control Instants fw-t-engine fw-t-heat-exch. sw-t-heat-exch. Level nil Instants fw-l-tank Ammeter nil Instants fw-pump-ammeter sw-pump-ammeter Instants fw-pump sw-pump Tank nil Instants fw-expansion-tank Heat Exchanger nil Instants fw-heat-exchanger Strainer nil Instants sw-strainer Instants fw-suction-valve fw-delivery-valve sw-suction-valve sw-delivery-valve sw-discharge-valve sw-control-valve Engine nil Instants fw-engine Coolant nil Instants fw-coolant sw-coolant Andrew McAllister (SPS) LATEXIntro September 21st, 2011 5 / 22

L A TEXEditor - TeXnic Center We ve got a lot of choices here, why use TeXnic Center? Easy to install Lots of features to help new users Andrew McAllister (SPS) LATEXIntro September 21st, 2011 6 / 22

L A TEXViewer This is the easy one you all already have Acrobat installed on your computers. Andrew McAllister (SPS) LATEXIntro September 21st, 2011 7 / 22

Actually Writing a L A TEXDocument! The Basic Structure Andrew McAllister (SPS) LATEXIntro September 21st, 2011 8 / 22

Actually Writing a L A TEXDocument! The Basic Structure \documentclass[11pt]{article} \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{enumerate} \begin{document} \end{document} Andrew McAllister (SPS) LATEXIntro September 21st, 2011 8 / 22

Regular Text \begin{document} \title{your Title} \author{you} \date{the Date} \maketitle \tableofcontents \section{stuff} To write regular text, just write wherever you want it to appear. \subsection{more Stuff} \subsubsection{even More Stuff} \end{document} Andrew McAllister (SPS) LATEXIntro September 21st, 2011 9 / 22

What does that look like? Your Title You The Date Contents 1 Stuff 1 1.1 More Stuff............................. 1 1.1.1 Even More Stuff..................... 1 1 Stuff To write regular text, just write wherever you want it to appear. 1.1 More Stuff 1.1.1 Even More Stuff Andrew McAllister (SPS) LATEXIntro September 21st, 2011 10 / 22

Including Math (the important thing) There are two things that you need to know: Commands are always started with a backslash Math Mode - Inline math mode is surrounded by: \( MATH \) Separate line math mode is surrounded by: \[ MATH \] Andrew McAllister (SPS) LATEXIntro September 21st, 2011 11 / 22

Including Math (the important thing) There are two things that you need to know: Commands are always started with a backslash Math Mode - Inline math mode is surrounded by: \( MATH \) Separate line math mode is surrounded by: \[ MATH \] NOTE: Some people use $ to and $$ for math mode. I think this is weird looking and prefer to use paranthesis and brackets, but you can use either. Andrew McAllister (SPS) LATEXIntro September 21st, 2011 11 / 22

Some Basic Math Commands Andrew McAllister (SPS) LATEXIntro September 21st, 2011 12 / 22

Some Basic Math Commands Greek Letters: Just use \LETTER \lambda = λ \ Lambda = Λ Andrew McAllister (SPS) LATEXIntro September 21st, 2011 12 / 22

Some Basic Math Commands Greek Letters: Just use \LETTER \lambda = λ \ Lambda = Λ Del is called nabla: \nabla = Andrew McAllister (SPS) LATEXIntro September 21st, 2011 12 / 22

Some Basic Math Commands Greek Letters: Just use \LETTER \lambda = λ \ Lambda = Λ Del is called nabla: \nabla = Integrals and Sums: \int and \sum Andrew McAllister (SPS) LATEXIntro September 21st, 2011 12 / 22

Some Basic Math Commands Greek Letters: Just use \LETTER \lambda = λ \ Lambda = Λ Del is called nabla: \nabla = Integrals and Sums: \int and \sum Upper and Lower Things : Upper - ˆLower - Andrew McAllister (SPS) LATEXIntro September 21st, 2011 12 / 22

Some Basic Math Commands Greek Letters: Just use \LETTER \lambda = λ \ Lambda = Λ Del is called nabla: \nabla = Integrals and Sums: \int and \sum Upper and Lower Things : Upper - ˆLower - Trig Functions: \sin,cos etc. Andrew McAllister (SPS) LATEXIntro September 21st, 2011 12 / 22

Some Basic Math Commands Greek Letters: Just use \LETTER \lambda = λ \ Lambda = Λ Del is called nabla: \nabla = Integrals and Sums: \int and \sum Upper and Lower Things : Upper - ˆLower - Trig Functions: \sin,cos etc. Fractions: \frac{}{} Andrew McAllister (SPS) LATEXIntro September 21st, 2011 12 / 22

Basic Formatting - 1 Text Sizes 1 \tiny 2 \scriptsize 3 \footnotesize 4 \small 5 \normalsize 6 \large 7 \Large 8 \LARGE 9 \huge 10 \HUGE Andrew McAllister (SPS) LATEXIntro September 21st, 2011 13 / 22

Basic Formatting - 2 Font Emphasis Bold - \textbf{} Italic - \emph{} Breaks Line Break \newline Page Break \newpage Andrew McAllister (SPS) LATEXIntro September 21st, 2011 14 / 22

Basic Formatting - 3 Making Lists These are contained in environments - \begin{itemize} \item \end{itemize} Instead of itemize you can have enumerate or description. Andrew McAllister (SPS) LATEXIntro September 21st, 2011 15 / 22

Tables Tables are contained in the Table Environment: \begin{table}[h] \begin{center} \begin{tabular}{ c c c } \hline & \textbf{outgoing Officers (2010-2011)} & \textbf{incoming Officers (2011-2012)} \\\hline \textbf{president} & Andrew McAllister & Charles Martin \\\hline \textbf{vice President} & Joe Paki & Krysta Boccuzzi \\\hline \textbf{secretary/treasurer} & Charles Martin & Amy Lovell \\\hline \textbf{outreach Coordinater} & Allycia Gariepy & Ryan Roussel \\\hline \end{tabular} \end{center} \end{table} Andrew McAllister (SPS) LATEXIntro September 21st, 2011 16 / 22

Example Table Outgoing Officers (2010-2011) Incoming Officers (2011-2012) President Andrew McAllister Charles Martin Vice President Joe Paki Krysta Boccuzzi Secretary/Treasurer Charles Martin Amy Lovell Outreach Coordinater Allycia Gariepy Ryan Roussel Andrew McAllister (SPS) LATEXIntro September 21st, 2011 17 / 22

Example Table 2 Outgoing Officers (2010-2011) Incoming Officers (2011-2012) President Andrew McAllister Charles Martin Vice President Joe Paki Krysta Boccuzzi Secretary/Treasurer Charles Martin Amy Lovell Outreach Coordinater Allycia Gariepy Ryan Roussel Andrew McAllister (SPS) LATEXIntro September 21st, 2011 18 / 22

Figures Inserting figures into documents is easy: \begin{figure}[h] \includegraphics[scale =.5]{FILENAME} \end{figure} Andrew McAllister (SPS) LATEXIntro September 21st, 2011 19 / 22

Figures Inserting figures into documents is easy: \begin{figure}[h] \includegraphics[scale =.5]{FILENAME} \end{figure} Getting them where you want is NOT. Andrew McAllister (SPS) LATEXIntro September 21st, 2011 19 / 22

Figures Inserting figures into documents is easy: \begin{figure}[h] \includegraphics[scale =.5]{FILENAME} \end{figure} Getting them where you want is NOT. The best advice I can give is to use [h!] or [H] after your begin figure or table. This is telling Latex to put the figure HERE in the document. Andrew McAllister (SPS) LATEXIntro September 21st, 2011 19 / 22

Common Warning/Error Messages Overfull or Underfull Boxes - Not that big of a deal. I can t write on file... - You have the pdf open, it can t be made unless you close it. File ended while scanning the use of... - You didn t close a curly bracket or forgot to end an environment. Andrew McAllister (SPS) LATEXIntro September 21st, 2011 20 / 22

Some Packages/Other Interesting Things amssymb amsmath amsfonts Graphicx BibTex Beamer Andrew McAllister (SPS) LATEXIntro September 21st, 2011 21 / 22

What Next? I have a few books on starting latex that I can give to you/put online. I also can give some example documents to look at. If there is interest I can do some more advanced subjects. Don t forget - lots of upperclassmen use LaTeX and can help. Also, the internet has the answer to 99% of your questions about Latex. Andrew McAllister (SPS) LATEXIntro September 21st, 2011 22 / 22