Joy Allen. March 12, 2015

Similar documents
How to make a presentation with L A TEX?

Biostatistics Student Seminar An Introduction To L A T E X

Latex Review Beamer: Presentations and Posters Citations & References. L A TEXWorkshop. Mai Ha Vu. University of Delaware.

LaTeX in a nutshell. Master on Libre Software Miguel Vidal. September 24, GSyC/Libresoft URJC

L A TEXtutorial. The very basics for typesetting research papers. Dr. Robin Roche. February 23, 2018

1 Introduction. Multimedia, Vision and Graphics Laboratory

Freedom from Powerpoint

Introduction. How to use this book. Linear algebra. Mathematica. Mathematica cells

DISCRETE RANDOM VARIABLES EXCEL LAB #3

Lab 6: Linear Algebra

Why knitr? Very first steps in knitr Reviewing knitr ATM.Rnw Further exercises. PhD Workshop Series in

PHYS 87. Check that it works by typesetting the tripple ensted list of the pervious exercise.

Writing Exercises Math 290 Spring 2017 Dr. Beezer

Word processing tools

CE-300 Mathcad Tutorial

(Elementary) Regression Methods & Computational Statistics ( )

The Title of a Standard LaTeX Report

A (Mostly) Correctly Formatted Sample Lab Report. Brett A. McGuire Lab Partner: Microsoft Windows Section AB2

Mathematical notation and writing

Octave. Tutorial. Daniel Lamprecht. March 26, Graz University of Technology. Slides based on previous work by Ingo Holzmann

PHYS Exercise: Typeset this by changing the default bullet symbol twice.

ISIS/Draw "Quick Start"

BASIC TECHNOLOGY Pre K starts and shuts down computer, monitor, and printer E E D D P P P P P P P P P P

CZECHOSLOVAK JOURNAL OF PHYSICS. Instructions for authors

Irrational Thoughts. Aim. Equipment. Irrational Investigation: Teacher Notes

CHEMDRAW ULTRA ITEC107 - Introduction to Computing for Pharmacy. ITEC107 - Introduction to Computing for Pharmacy 1

PPT PRESENTATION. What works, and what doesn t. Associate Dean USF Graduate School. Revised

For natural deduction, I have used a package called bussproofs. imported by putting

MA 580; Numerical Analysis I

1.0 Mathematics in This Shell

Mathematical Notation

An Introduction to L A T E X

Submitted to Econometrica A SAMPLE DOCUMENT 1

LESSON 1 of 3 (IJMPA)

1. Typeset a = b c = d e = f g = b h = d k = f. m 1 m 2 r 2. e E

How not to give a poster: Some suggestions based on years of experience. D. Lund (credit to J. Granger)

PHYS 87. Don t expect to go through all of these today. Will continue next week. 1. Typeset a = b c = d e = f g = b h = d k = f. m 1 m 2 r 2.

Title of the Book. A. U. Thor XYZ University

Contents. 6.1 Conditional statements 6.2 Iteration 6.3 Procedures and flow control

UNIVERSITY OF MIAMI THE TITLE FOR MY UNIVERSITY OF MIAMI THESIS. A.U. Thor

Keppel, G. & Wickens, T. D. Design and Analysis Chapter 4: Analytical Comparisons Among Treatment Means

Practical Data Processing With Haskell

Urban Canopy Tool User Guide `bo`

Introduction Snippets Conclusion References. Beamer snippets. October 21, Decock Beamer snippets

Experimental Physics I & II "Junior Lab" Fall Spring 2008

2.004 Dynamics and Control II Spring 2008

Guidelines for the preparation of reports for the short experiments and the technological work

Writing Mathematics. 1 LaTeX. 2 The Problem

These Choice Boards cover the fourteen units for eighth grade Common Core math.

Chapter-2 2.1)Page-28, Eq (2-9): should read (add parentheses around the terms involving the x-end-points):

Basic Linear Algebra in MATLAB

2 - Strings and Binomial Coefficients

How do I do that in Quantum GIS: illustrating classic GIS tasks Edited by: Arthur J. Lembo, Jr.; Salisbury University

Deciphering Math Notation. Billy Skorupski Associate Professor, School of Education

Notes on Writing, Typesetting, and Word Processing

DIMACS Book Series Sample

Moving into the information age: From records to Google Earth

Using Microsoft Excel

CAAM420: Week 3 Wednesday Notes

1 The gn-logic style option

O P E R A T I N G M A N U A L

SCAR XXXI & Open Science Conference

LAT E X Math Mode. RSI 2007 Staff

1-D Convection-Diffusion Lab

LAT E X Math Mode. RSI 2006 Staff

MATLAB AND L A TEX EXAMPLES

Notation, Matrices, and Matrix Mathematics

ADVICE ON MATHEMATICAL WRITING

A simple san serif article

Experiment 1 Scientific Writing Tools

Maths Pack. Distance Learning Mathematics Support Pack. For the University Certificates in Astronomy and Cosmology

A Simple Introduction to EES Version (Handout version 5.1) Copyright C. S. Tritt, Ph.D. September 20, 2005

Newton s Cooling Model in Matlab and the Cooling Project!

Rules of thumb for L A TEX

Using the kbordermatrix package

Chemistry Physical Chemistry II Course Syllabus Spring 2019

Introduction to Python and its unit testing framework

ScienceWord and PagePlayer Chemical formulae. Dr Emile C. B. COMLAN Novoasoft Representative in Africa

FIT100 Spring 01. Project 2. Astrological Toys

VCell Tutorial. Building a Rule-Based Model

Comparing whole genomes

GMS 8.0 Tutorial MT3DMS Advanced Transport MT3DMS dispersion, sorption, and dual domain options

Riemann Sums. Outline. James K. Peterson. September 15, Riemann Sums. Riemann Sums In MatLab

INSTRUCTIONS FOR PRODUCING CAMERA-READY MANUSCRIPT USING MS-WORD FOR PUBLICATION IN CONFERENCE PROCEEDINGS *

Appendix B Microsoft Office Specialist exam objectives maps

SYMBOLIC AND NUMERICAL COMPUTING FOR CHEMICAL KINETIC REACTION SCHEMES

Whitby Community College Your account expires on: 8 Nov, 2013

QUADRATIC PROGRAMMING?

A GUI FOR EVOLVE ZAMS

The Title of a Sample SW Report 1

Remember that C is a constant and ë and n are variables. This equation now fits the template of a straight line:

Introduction to Computational Neuroscience

Department of Mathematics Mahatma Gandhi University Scheme of Ph. D Course Work

A primer on matrices

Riemann Integration. James K. Peterson. February 2, Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Math Computer Lab 4 : Fourier Series

Population Models Part I

Assignment 5 Bounding Complexities KEY

Riemann Integration. Outline. James K. Peterson. February 2, Riemann Sums. Riemann Sums In MatLab. Graphing Riemann Sums

SCAR XXXI & Open Science Conference

Transcription:

LATEX Newcastle University March 12, 2015

Why use L A TEX? Extremely useful tool for writing scientific papers, presentations and PhD Thesis which are heavily laden with mathematics You get lovely pretty documents Extremely satisfying Free software Lots of help on the internet

Why use L A TEX? Extremely useful tool for writing scientific papers, presentations and PhD Thesis which are heavily laden with mathematics You get lovely pretty documents Extremely satisfying Free software Lots of help on the internet Word and Powerpoint are painful...

Useful resources The Not So Short Introduction to L A TEX https://tobi.oetiker.ch/lshort/lshort.pdf A shorter, snappier tutorial: http://ece.uprm.edu/ caceros/latex/introduction.pdf

The Preamble L A TEX needs to know the type of document the author wants to create. This is specified with the \ d o c u m e n t c l a s s command. \ d o c u m e n t c l a s s [ o p t i o n s ] { c l a s s } is declared at the very beginning of every document. The class specifies the type of document being created.

Document class types \ d o c u m e n t c l a s s [ o p t i o n s ] { c l a s s }

Document class options \ d o c u m e n t c l a s s [ o p t i o n s ] { c l a s s }

Example Let s begin our document \ d o c u m e n t c l a s s [ a4 paper, 11 pt ] { a r t i c l e } \ b e g i n { document } Some w r i t i n g h e r e. \ end { document }

Example Let s begin our document \ d o c u m e n t c l a s s [ a4 paper, 11 pt ] { a r t i c l e } \ b e g i n { document } Some w r i t i n g h e r e. \ end { document } Save this as a.tex file (e.g. example.tex) Make sure the editor compiler is pdflatex Compile! (Press F1 to build and view) Congratulations on your first ever L A TEX document! The output is automatically saved as a.pdf file (example.pdf).

Getting Started Most characters on the keyboard, such as letters and numbers, have their usual meaning. However the characters \ { } $ ˆ % # & are used for special purposes within LaTeX. Thus typing one of these characters will not produce the corresponding character in the final document. In particular, there are sequences of characters which begin with a backslash which are used to produce mathematical symbols and Greek letters and to accomplish tasks such as changing fonts. These are known as control sequences.

Special characters $ The special character $ is used when embedding mathematical expressions in paragraphs of ordinary text in order to change into and out of mathematics mode. \ { Most control sequences consist of a backslash followed by a string of (upper or lower case) letters. e.g $\ d e l t a $ gives the greek letter delta δ The braces { and } are used for grouping: the characters they enclose are treated as a single group, which can be specified as an argument of a control sequence. E.g. {\ b f { H e l l o World }} gives Hello World. % The special character % is used to introduce comments into the input file that do not appear in the final document: all characters occuring after % on any line of the input file are ignored by LATEX.

Special characters cont. and The special characters and are used in mathematical expressions to produce superscripts and subscripts respectively. # The special character # is used to specify arguments in definitions of control sequences. & The special character & is used when typesetting tables in order to separate entries in different columns within the tabular or eqnarray. The special character is used to create spaces. In order to generate these characters within your document, you can combine them with a backslash to create a control sequence, however in a few cases you may need to include their name. This must be done within mathmode. \$, \ b a c k s l a s h, \{, \%, \wedge, \, \#, \&, \ sim $, \, {, %,,, #, &,

Changing font style Adding color \ d o c u m e n t c l a s s [ a4 paper, 11 pt ] { a r t i c l e } \ b e g i n { document } \ t e x t c o l o r { r e d }{Some w r i t i n g h e r e. } \ end { document }

Changing font style Adding color \ d o c u m e n t c l a s s [ a4 paper, 11 pt ] { a r t i c l e } \ b e g i n { document } \ t e x t c o l o r { r e d }{Some w r i t i n g h e r e. } \ end { document } When we try to compile this, we get an error. If you want to include graphics, colored text or source code from a file into your document, you need to enhance the capabilities of LATEX. Such enhancements are called packages. Some packages come with the LATEX base distribution. Others are provided separately. Modern TEX distributions come with a large number of packages pre-installed.

Packages We link L A TEX to the packages we wish to use in the preamble. \ d o c u m e n t c l a s s [ a4 paper, 11 pt ] { a r t i c l e } \ u s e p a c k a g e { x c o l o r } \ b e g i n { document }....

Packages We link L A TEX to the packages we wish to use in the preamble. \ d o c u m e n t c l a s s [ a4 paper, 11 pt ] { a r t i c l e } \ u s e p a c k a g e { x c o l o r } \ b e g i n { document }.... 2829 packages in the MiKTeX repository: http://miktex.org/packages You can see which packages are installed on your computer and what all is availabile by looking at the MiKTeX Package Manager via: <Win> and r button. open mpm MiKTeX automatically installs the packages required if they are called for in the preamble.

Fonts \Huge h e l l o \\ \ huge h e l l o \\ \LARGE h e l l o \\ \ Large h e l l o \\ \ l a r g e h e l l o \\ \ s m a l l h e l l o \\ \ f o o t n o t e s i z e h e l l o \\ \ s c r i p t s i z e h e l l o \\ \ t i n y h e l l o \\

Font Italic text \emph{ t e x t } text Bold Text {\ b f { t e x t }} text Underlining text \ u n d e r l i n e { t e x t } text

Text Alignment \ b e g i n { c e n t e r } Text w r i t t e n i n h e r e w i l l be c e n t e r e d. \ end { c e n t e r } \ b e g i n { f l u s h l e f t } Text h e r e w i l l be l e f t j u s t i f i e d t h i s d e f a u l t so no need to s p e c i f y u n l e s s you have changed t h e d e f a u l t. \ end { f l u s h l e f t } \ b e g i n { f l u s h r i g h t } Text h e r e w i l l be j u s t i f i e d to t h e r i g h t. \ end { f l u s h r i g h t } \ j u s t i f y i n g Text f o l l o w i n g t h i s w i l l be f u l l y j u s t i f i e d. This command r e q u i r e s t h e package ragged 2 e to be i n s t a l l e d.

Document Structure \ t i t l e {The t i t l e o f my o v e r a l l document } \ a u t h o r {My name} \ d a t e {} %Leave b l a n k i f you do not want a d a t e added %E i t h e r s p e c i f y t h e d a t e you want %Or don t i n c l u d e a t a l l i f you want t o d a y s d a t e. \ b e g i n { document } \ m a k e t i t l e o r \ t i t l e p a g e \ c h a p t e r {} % o n l y works i n r e p o r t o r book c l a s s \ s e c t i o n { S e c t i o n Heading 1} Some w r i t i n g i n s e c t i o n one. \ s u b s e c t i o n { S u b s e c t i o n Heading 1. 1 } \ s u b s u b s e c t i o n { S u b s u b s e c t i o n Heading 1. 1. 1 } P l a c i n g \ t a b l e o f c o n t e n t s a f t e r \ b e g i n { document } r e s u l t s i n an a u t o r m a t i c a l l y g e n e r a t e d t a b l e o f c o n t e n t s

Math mode Example equation: \ b e g i n { e q u a t i o n } ( i \gamma)\ hbar \ f r a c {\ p a r t i a l \ p h i \ b f r t } {\ p a r t i a l t } = \ l e f t ( \ f r a c {\ hbar ˆ2}{2m}\ n a b l a ˆ2 + g \ p h i \ b f r t ˆ 2 \mu \ r i g h t )\ p h i \ b f r t \ ;. \ end { e q u a t i o n } ) φ(r, t) (i γ) = ( 2 t 2m 2 + g φ(r, t) 2 µ φ(r, t).

Packages you need: \ u s e p a c k a g e {amsmath} \ u s e p a c k a g e {amssymb} Math mode, eqn evironment Equation environments, LATEX automatically numbers your equations \ b e g i n { e q u a t i o n } y = mx + c \ end { e q u a t i o n } y = mx + c (1) If you don t want an equation number: \ b e g i n { e q u a t i o n } y = mx + c \ end { e q u a t i o n } Short for this is: $$ y = mx + c $$ y = mx + c

Math mode cont. Greek letters and eqn alignment \ b e g i n { e q n a r r a y } A &=& \ p i r ˆ2 \ nonumber \\ C &=& \ p i d \ end { e q n a r r a y } A = πr 2 C = πd (2) We can do fractions, operator signs, bold text, roman text, large brackets...

Importing graphics into a L A TEXdocument Need the package: \ u s e p a c k a g e { g r a p h i c x } If compiling with pdflatex.png.jpeg.pdf.eps may work if you follow with epstopdf - depending on your installation. If compiling with latex (need to follow with dvipslatex ps2pdf latex)..eps

Figures in Latex \ b e g i n { f i g u r e } [ placement s p e c i f i e r ] \ i n c l u d e g r a p h i c s [ s i z e ] { name o f f i g u r e } \ end { f i g u r e }

Useful commands Taking a new line \\ Bullet points \ b e g i n { i t e m i z e } \ item Item 1 \ item Item 2 \ end { i t e m i z e }

Useful commands continued - Multicolumns Multicolumns \ u s e p a c k a g e { m u l t i c o l } \ b e g i n { document } \ b e g i n { m u l t i c o l s }{2} The t e x t w i l l be s p l i t o v e r two columns. When t h e f i r s t column i s f i l l e d, t h e t e x t w i l l c o n t i n u e i n t o t h e second. \ end { m u l t i c o l s } \ end { document } The text will be split over two columns. When the first column is filled, the text will continue into the second.

Useful commands continued - Minipages \ b e g i n { m i n i p a g e }{0.45\ l i n e w i d t h } M u l t i c o l u m n s a r e u s e f u l f o r a f u l l document, but what i f I am making s l i d e s and I know where I want to s p l i t my t e x t? \ end { m i n i p a g e } \ b e g i n { m i n i p a g e }{0.45\ l i n e w i d t h } Or I want a f i g u r e on one s i d e o f t h e page, and w r i t i n g on t h e o t h e r? \\ \ t e x t c o l o r { mypurple }{ Use m i n i p a g e s. } \ end { m i n i p a g e } Multicolumns are useful for a full document, but what if I am making slides and I know where I want to split my text? Or I want a figure on one side of the page, and writing on the other? Use minipages.

And much, much more There is so much more you can do, you can customise L A TEX to suit your needs as you gain more experience. You can define your own colors, regularly used commands, change margins, put in movies... More useful packages you may need.. \ u s e p a c k a g e [ a4 paper ] { geometry } \ u s e p a c k a g e { f a n c y b o x } \ u s e p a c k a g e { m u l t i m e d i a }