introduction to latex · latex document structure mathematics with latex bibliography overview...

176
Introduction Latex Document Structure Mathematics with Latex Bibliography Introduction to LaTeX Amitay Isaacs April 27, 2012 Amitay Isaacs Introduction to LaTeX

Upload: others

Post on 27-Jul-2020

24 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

Introduction to LaTeX

Amitay Isaacs

April 27, 2012

Amitay Isaacs Introduction to LaTeX

Page 2: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

What is Latex

Pronounciation: It is lei-tek. Some people read it as la-tek.But NEVER read it as lei-teks, which is a rubber product.

It’s a document preparation system for typesetting journalarticles, technical reports, books, slide presentations etc.

It is based on the idea that it is better to leave documentdesign to document designers, and let authors get on withwriting documents.

It is not a word processor, but a programming language andjust as any other language, you lean by practicing it.

TeX was written by Donald Knuth in ’70s, Latex is anextension to TeX in the form of macro packages.

Amitay Isaacs Introduction to LaTeX

Page 3: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

What is Latex

Pronounciation: It is lei-tek. Some people read it as la-tek.But NEVER read it as lei-teks, which is a rubber product.

It’s a document preparation system for typesetting journalarticles, technical reports, books, slide presentations etc.

It is based on the idea that it is better to leave documentdesign to document designers, and let authors get on withwriting documents.

It is not a word processor, but a programming language andjust as any other language, you lean by practicing it.

TeX was written by Donald Knuth in ’70s, Latex is anextension to TeX in the form of macro packages.

Amitay Isaacs Introduction to LaTeX

Page 4: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

What is Latex

Pronounciation: It is lei-tek. Some people read it as la-tek.But NEVER read it as lei-teks, which is a rubber product.

It’s a document preparation system for typesetting journalarticles, technical reports, books, slide presentations etc.

It is based on the idea that it is better to leave documentdesign to document designers, and let authors get on withwriting documents.

It is not a word processor, but a programming language andjust as any other language, you lean by practicing it.

TeX was written by Donald Knuth in ’70s, Latex is anextension to TeX in the form of macro packages.

Amitay Isaacs Introduction to LaTeX

Page 5: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

What is Latex

Pronounciation: It is lei-tek. Some people read it as la-tek.But NEVER read it as lei-teks, which is a rubber product.

It’s a document preparation system for typesetting journalarticles, technical reports, books, slide presentations etc.

It is based on the idea that it is better to leave documentdesign to document designers, and let authors get on withwriting documents.

It is not a word processor, but a programming language andjust as any other language, you lean by practicing it.

TeX was written by Donald Knuth in ’70s, Latex is anextension to TeX in the form of macro packages.

Amitay Isaacs Introduction to LaTeX

Page 6: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

What is Latex

Pronounciation: It is lei-tek. Some people read it as la-tek.But NEVER read it as lei-teks, which is a rubber product.

It’s a document preparation system for typesetting journalarticles, technical reports, books, slide presentations etc.

It is based on the idea that it is better to leave documentdesign to document designers, and let authors get on withwriting documents.

It is not a word processor, but a programming language andjust as any other language, you lean by practicing it.

TeX was written by Donald Knuth in ’70s, Latex is anextension to TeX in the form of macro packages.

Amitay Isaacs Introduction to LaTeX

Page 7: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

What is Latex

Pronounciation: It is lei-tek. Some people read it as la-tek.But NEVER read it as lei-teks, which is a rubber product.

It’s a document preparation system for typesetting journalarticles, technical reports, books, slide presentations etc.

It is based on the idea that it is better to leave documentdesign to document designers, and let authors get on withwriting documents.

It is not a word processor, but a programming language andjust as any other language, you lean by practicing it.

TeX was written by Donald Knuth in ’70s, Latex is anextension to TeX in the form of macro packages.

Amitay Isaacs Introduction to LaTeX

Page 8: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Advantages of using Latex

It’s free

It’s portable and runs on virtually any operating system.

Automatically and consistently does cross-referencing,labelling, headers footers, page numbers, bibliography etc.

It is the de facto standard for the communication andpublication of scientific documents, since it produces highquality documents

was originally designed for mathematics-related writers, sotypesetting nice-looking mathematics is very easy

It’s good for large documents

Not very easy to learn

Amitay Isaacs Introduction to LaTeX

Page 9: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Advantages of using Latex

It’s free

It’s portable and runs on virtually any operating system.

Automatically and consistently does cross-referencing,labelling, headers footers, page numbers, bibliography etc.

It is the de facto standard for the communication andpublication of scientific documents, since it produces highquality documents

was originally designed for mathematics-related writers, sotypesetting nice-looking mathematics is very easy

It’s good for large documents

Not very easy to learn

Amitay Isaacs Introduction to LaTeX

Page 10: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Advantages of using Latex

It’s free

It’s portable and runs on virtually any operating system.

Automatically and consistently does cross-referencing,labelling, headers footers, page numbers, bibliography etc.

It is the de facto standard for the communication andpublication of scientific documents, since it produces highquality documents

was originally designed for mathematics-related writers, sotypesetting nice-looking mathematics is very easy

It’s good for large documents

Not very easy to learn

Amitay Isaacs Introduction to LaTeX

Page 11: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Advantages of using Latex

It’s free

It’s portable and runs on virtually any operating system.

Automatically and consistently does cross-referencing,labelling, headers footers, page numbers, bibliography etc.

It is the de facto standard for the communication andpublication of scientific documents, since it produces highquality documents

was originally designed for mathematics-related writers, sotypesetting nice-looking mathematics is very easy

It’s good for large documents

Not very easy to learn

Amitay Isaacs Introduction to LaTeX

Page 12: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Advantages of using Latex

It’s free

It’s portable and runs on virtually any operating system.

Automatically and consistently does cross-referencing,labelling, headers footers, page numbers, bibliography etc.

It is the de facto standard for the communication andpublication of scientific documents, since it produces highquality documents

was originally designed for mathematics-related writers, sotypesetting nice-looking mathematics is very easy

It’s good for large documents

Not very easy to learn

Amitay Isaacs Introduction to LaTeX

Page 13: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Advantages of using Latex

It’s free

It’s portable and runs on virtually any operating system.

Automatically and consistently does cross-referencing,labelling, headers footers, page numbers, bibliography etc.

It is the de facto standard for the communication andpublication of scientific documents, since it produces highquality documents

was originally designed for mathematics-related writers, sotypesetting nice-looking mathematics is very easy

It’s good for large documents

Not very easy to learn

Amitay Isaacs Introduction to LaTeX

Page 14: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Advantages of using Latex

It’s free

It’s portable and runs on virtually any operating system.

Automatically and consistently does cross-referencing,labelling, headers footers, page numbers, bibliography etc.

It is the de facto standard for the communication andpublication of scientific documents, since it produces highquality documents

was originally designed for mathematics-related writers, sotypesetting nice-looking mathematics is very easy

It’s good for large documents

Not very easy to learn

Amitay Isaacs Introduction to LaTeX

Page 15: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Advantages of using Latex

It’s free

It’s portable and runs on virtually any operating system.

Automatically and consistently does cross-referencing,labelling, headers footers, page numbers, bibliography etc.

It is the de facto standard for the communication andpublication of scientific documents, since it produces highquality documents

was originally designed for mathematics-related writers, sotypesetting nice-looking mathematics is very easy

It’s good for large documents

Not very easy to learn

Amitay Isaacs Introduction to LaTeX

Page 16: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

You will need

The Latex program: it’s a small program that is extendedwith packages. (MikTeX and TeXLive are populardistributions of Latex.)http://www.miktex.org

A text editor, or Latex environemnt like TeXnicCenter whichis very user friendly especially if you are a beginner.http://www.texniccenter.org

PDF viewer, DVI viewer (YAP comes with the Texdistribution), postscript viewer (Ghostscript)

BibTeX software to maintain bibliographies (JabRef)http://jabref.sourceforge.net

Amitay Isaacs Introduction to LaTeX

Page 17: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

You will need

The Latex program: it’s a small program that is extendedwith packages. (MikTeX and TeXLive are populardistributions of Latex.)http://www.miktex.org

A text editor, or Latex environemnt like TeXnicCenter whichis very user friendly especially if you are a beginner.http://www.texniccenter.org

PDF viewer, DVI viewer (YAP comes with the Texdistribution), postscript viewer (Ghostscript)

BibTeX software to maintain bibliographies (JabRef)http://jabref.sourceforge.net

Amitay Isaacs Introduction to LaTeX

Page 18: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

You will need

The Latex program: it’s a small program that is extendedwith packages. (MikTeX and TeXLive are populardistributions of Latex.)http://www.miktex.org

A text editor, or Latex environemnt like TeXnicCenter whichis very user friendly especially if you are a beginner.http://www.texniccenter.org

PDF viewer, DVI viewer (YAP comes with the Texdistribution), postscript viewer (Ghostscript)

BibTeX software to maintain bibliographies (JabRef)http://jabref.sourceforge.net

Amitay Isaacs Introduction to LaTeX

Page 19: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

You will need

The Latex program: it’s a small program that is extendedwith packages. (MikTeX and TeXLive are populardistributions of Latex.)http://www.miktex.org

A text editor, or Latex environemnt like TeXnicCenter whichis very user friendly especially if you are a beginner.http://www.texniccenter.org

PDF viewer, DVI viewer (YAP comes with the Texdistribution), postscript viewer (Ghostscript)

BibTeX software to maintain bibliographies (JabRef)http://jabref.sourceforge.net

Amitay Isaacs Introduction to LaTeX

Page 20: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

You will need

The Latex program: it’s a small program that is extendedwith packages. (MikTeX and TeXLive are populardistributions of Latex.)http://www.miktex.org

A text editor, or Latex environemnt like TeXnicCenter whichis very user friendly especially if you are a beginner.http://www.texniccenter.org

PDF viewer, DVI viewer (YAP comes with the Texdistribution), postscript viewer (Ghostscript)

BibTeX software to maintain bibliographies (JabRef)http://jabref.sourceforge.net

Amitay Isaacs Introduction to LaTeX

Page 21: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Useful links

Latex Projecthttp://www.latex-project.org

Comprehensive TeX Archive Network (CTAN)http://www.ctan.org

TeX Users Group (TUG)http://www.tug.org

Not so Short Introduction to Latexhttp://tobi.oetiker.ch/lshort/lshort.pdf

Amitay Isaacs Introduction to LaTeX

Page 22: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

A simple example

\documentclassarticle\titleHow to write in Latex\authorAmitay Isaacs\dateApril 2012\begindocument\maketitleThis is a very simple document.\enddocument

This document is an article.

Its title is How to write in Latex.

Its author is Amitay Isaacs.

Document consists of a title followed by a line of text.

Amitay Isaacs Introduction to LaTeX

Page 23: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

A simple example

\documentclassarticle\titleHow to write in Latex\authorAmitay Isaacs\dateApril 2012\begindocument\maketitleThis is a very simple document.\enddocument

This document is an article.

Its title is How to write in Latex.

Its author is Amitay Isaacs.

Document consists of a title followed by a line of text.

Amitay Isaacs Introduction to LaTeX

Page 24: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

A simple example

\documentclassarticle\titleHow to write in Latex\authorAmitay Isaacs\dateApril 2012\begindocument\maketitleThis is a very simple document.\enddocument

This document is an article.

Its title is How to write in Latex.

Its author is Amitay Isaacs.

Document consists of a title followed by a line of text.

Amitay Isaacs Introduction to LaTeX

Page 25: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

A simple example

\documentclassarticle\titleHow to write in Latex\authorAmitay Isaacs\dateApril 2012\begindocument\maketitleThis is a very simple document.\enddocument

This document is an article.

Its title is How to write in Latex.

Its author is Amitay Isaacs.

Document consists of a title followed by a line of text.

Amitay Isaacs Introduction to LaTeX

Page 26: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

A simple example

\documentclassarticle\titleHow to write in Latex\authorAmitay Isaacs\dateApril 2012\begindocument\maketitleThis is a very simple document.\enddocument

This document is an article.

Its title is How to write in Latex.

Its author is Amitay Isaacs.

Document consists of a title followed by a line of text.

Amitay Isaacs Introduction to LaTeX

Page 27: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

What goes in Latex file?

Basic symbols52 Letters: A B C ...Z a b c ...z10 Digits: 0 1 2 ...99 Puncuation Marks: , ; . ? ! : ‘ ’ -4 Parenthesis: ( ) [ ]7 Math symbols: / * + = - < >3 Spaces: space, tab, newline

Special Symbols13 Special symbols: # $ % & ~ ^ \ @ " |

Any other character is invalid and can not be used in Latex file. Asseen from previous example, all Latex commands begin with thebackslash “\”.

Amitay Isaacs Introduction to LaTeX

Page 28: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

What goes in Latex file?

Basic symbols52 Letters: A B C ...Z a b c ...z10 Digits: 0 1 2 ...99 Puncuation Marks: , ; . ? ! : ‘ ’ -4 Parenthesis: ( ) [ ]7 Math symbols: / * + = - < >3 Spaces: space, tab, newline

Special Symbols13 Special symbols: # $ % & ~ ^ \ @ " |

Any other character is invalid and can not be used in Latex file. Asseen from previous example, all Latex commands begin with thebackslash “\”.

Amitay Isaacs Introduction to LaTeX

Page 29: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

What goes in Latex file?

Basic symbols52 Letters: A B C ...Z a b c ...z10 Digits: 0 1 2 ...99 Puncuation Marks: , ; . ? ! : ‘ ’ -4 Parenthesis: ( ) [ ]7 Math symbols: / * + = - < >3 Spaces: space, tab, newline

Special Symbols13 Special symbols: # $ % & ~ ^ \ @ " |

Any other character is invalid and can not be used in Latex file. Asseen from previous example, all Latex commands begin with thebackslash “\”.

Amitay Isaacs Introduction to LaTeX

Page 30: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

What goes in Latex file?

Basic symbols52 Letters: A B C ...Z a b c ...z10 Digits: 0 1 2 ...99 Puncuation Marks: , ; . ? ! : ‘ ’ -4 Parenthesis: ( ) [ ]7 Math symbols: / * + = - < >3 Spaces: space, tab, newline

Special Symbols13 Special symbols: # $ % & ~ ^ \ @ " |

Any other character is invalid and can not be used in Latex file. Asseen from previous example, all Latex commands begin with thebackslash “\”.

Amitay Isaacs Introduction to LaTeX

Page 31: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Latex Vocabulary

Commands produce text or space:\hspace2in and \textitsome italic wordsDeclarations affect the following text:\large prints the following text in a larger fontsmall text \large only this is big and small again

Environments receive special processing and are defined by\beginname ...\endnameExample: \beginquote Someone said so \endquoteMandator arguments are enclosed in braces :\hspace2in requires the length

Optional arguments are encosed in brackets []:\documentclass[11pt]article - fontsize is optional

Amitay Isaacs Introduction to LaTeX

Page 32: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Latex Vocabulary

Commands produce text or space:\hspace2in and \textitsome italic words

Declarations affect the following text:\large prints the following text in a larger fontsmall text \large only this is big and small again

Environments receive special processing and are defined by\beginname ...\endnameExample: \beginquote Someone said so \endquoteMandator arguments are enclosed in braces :\hspace2in requires the length

Optional arguments are encosed in brackets []:\documentclass[11pt]article - fontsize is optional

Amitay Isaacs Introduction to LaTeX

Page 33: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Latex Vocabulary

Commands produce text or space:\hspace2in and \textitsome italic wordsDeclarations affect the following text:\large prints the following text in a larger fontsmall text \large only this is big and small again

Environments receive special processing and are defined by\beginname ...\endnameExample: \beginquote Someone said so \endquoteMandator arguments are enclosed in braces :\hspace2in requires the length

Optional arguments are encosed in brackets []:\documentclass[11pt]article - fontsize is optional

Amitay Isaacs Introduction to LaTeX

Page 34: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Latex Vocabulary

Commands produce text or space:\hspace2in and \textitsome italic wordsDeclarations affect the following text:\large prints the following text in a larger fontsmall text \large only this is big and small again

Environments receive special processing and are defined by\beginname ...\endnameExample: \beginquote Someone said so \endquote

Mandator arguments are enclosed in braces :\hspace2in requires the length

Optional arguments are encosed in brackets []:\documentclass[11pt]article - fontsize is optional

Amitay Isaacs Introduction to LaTeX

Page 35: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Latex Vocabulary

Commands produce text or space:\hspace2in and \textitsome italic wordsDeclarations affect the following text:\large prints the following text in a larger fontsmall text \large only this is big and small again

Environments receive special processing and are defined by\beginname ...\endnameExample: \beginquote Someone said so \endquoteMandator arguments are enclosed in braces :\hspace2in requires the length

Optional arguments are encosed in brackets []:\documentclass[11pt]article - fontsize is optional

Amitay Isaacs Introduction to LaTeX

Page 36: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

OverviewResourcesDiving in Latex

Latex Vocabulary

Commands produce text or space:\hspace2in and \textitsome italic wordsDeclarations affect the following text:\large prints the following text in a larger fontsmall text \large only this is big and small again

Environments receive special processing and are defined by\beginname ...\endnameExample: \beginquote Someone said so \endquoteMandator arguments are enclosed in braces :\hspace2in requires the length

Optional arguments are encosed in brackets []:\documentclass[11pt]article - fontsize is optional

Amitay Isaacs Introduction to LaTeX

Page 37: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Structure of a Latex Document

\documentclass[options]article

Preamble (for Latex commands only)

\begindocument

Body (text with embedded Latex commands)

\enddocument

Amitay Isaacs Introduction to LaTeX

Page 38: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Structure of a Latex Document

\documentclass[options]article

Preamble (for Latex commands only)

\begindocument

Body (text with embedded Latex commands)

\enddocument

Amitay Isaacs Introduction to LaTeX

Page 39: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Structure of a Latex Document

\documentclass[options]article

Preamble (for Latex commands only)

\begindocument

Body (text with embedded Latex commands)

\enddocument

The Document class determines the overall layout of thedocument.

In addition to article class, which is a good all-purpose class,other commonly used classes are:

report, thesis, book, letter, slides

Amitay Isaacs Introduction to LaTeX

Page 40: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Structure of a Latex Document

\documentclass[options]article

Preamble (for Latex commands only)

\begindocument

Body (text with embedded Latex commands)

\enddocument

The Document class determines the overall layout of thedocument.

In addition to article class, which is a good all-purpose class,other commonly used classes are:

report, thesis, book, letter, slides

Amitay Isaacs Introduction to LaTeX

Page 41: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Structure of a Latex Document

\documentclass[options]article

Preamble (for Latex commands only)

\begindocument

Body (text with embedded Latex commands)

\enddocument

Preamble: document class, fonts, packages to use, title,author, date, all the specifications and definitions

Body: abstract, parts, sections, subsections, etc. These canbe numbered or not

Amitay Isaacs Introduction to LaTeX

Page 42: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Structure of a Latex Document

\documentclass[options]article

Preamble (for Latex commands only)

\begindocument

Body (text with embedded Latex commands)

\enddocument

Preamble: document class, fonts, packages to use, title,author, date, all the specifications and definitions

Body: abstract, parts, sections, subsections, etc. These canbe numbered or not

Amitay Isaacs Introduction to LaTeX

Page 43: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Document Class Options

A document class may be modified using options:\documentclass[options ]article

Commonly-used options include:

Size of the font - 10pt*, 11pt, 12pt

Size of the paper - a4paper, letterpaper*

Duplex printing - oneside*, twoside

Columns - onecolumn*, twocolumn

Output - draft, final*

Amitay Isaacs Introduction to LaTeX

Page 44: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Document Class Options

A document class may be modified using options:\documentclass[options ]article

Commonly-used options include:

Size of the font - 10pt*, 11pt, 12pt

Size of the paper - a4paper, letterpaper*

Duplex printing - oneside*, twoside

Columns - onecolumn*, twocolumn

Output - draft, final*

Amitay Isaacs Introduction to LaTeX

Page 45: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Document Class Options

A document class may be modified using options:\documentclass[options ]article

Commonly-used options include:

Size of the font - 10pt*, 11pt, 12pt

Size of the paper - a4paper, letterpaper*

Duplex printing - oneside*, twoside

Columns - onecolumn*, twocolumn

Output - draft, final*

Amitay Isaacs Introduction to LaTeX

Page 46: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Document Class Options

A document class may be modified using options:\documentclass[options ]article

Commonly-used options include:

Size of the font - 10pt*, 11pt, 12pt

Size of the paper - a4paper, letterpaper*

Duplex printing - oneside*, twoside

Columns - onecolumn*, twocolumn

Output - draft, final*

Amitay Isaacs Introduction to LaTeX

Page 47: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Document Class Options

A document class may be modified using options:\documentclass[options ]article

Commonly-used options include:

Size of the font - 10pt*, 11pt, 12pt

Size of the paper - a4paper, letterpaper*

Duplex printing - oneside*, twoside

Columns - onecolumn*, twocolumn

Output - draft, final*

Amitay Isaacs Introduction to LaTeX

Page 48: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Formatting text

Most of the document is in plain text. Latex takes care of

spacing between words, sentences, paragraphsheading sizes and numberingpage numbering \pagestyle.. plain, empty, headings

Words are separated by one or more spaces

Paragraphs are usually separated by one or more blank lines

The output if not affected by adding extra spaces or extrablank lines

% is used to start a comment

To force a new line, use \\

\textbfbold, \textititalic, \emphemphasized-- and --- produce – and —

Amitay Isaacs Introduction to LaTeX

Page 49: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Formatting text

Most of the document is in plain text. Latex takes care of

spacing between words, sentences, paragraphsheading sizes and numberingpage numbering \pagestyle.. plain, empty, headings

Words are separated by one or more spaces

Paragraphs are usually separated by one or more blank lines

The output if not affected by adding extra spaces or extrablank lines

% is used to start a comment

To force a new line, use \\

\textbfbold, \textititalic, \emphemphasized-- and --- produce – and —

Amitay Isaacs Introduction to LaTeX

Page 50: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Formatting text

Most of the document is in plain text. Latex takes care of

spacing between words, sentences, paragraphsheading sizes and numberingpage numbering \pagestyle.. plain, empty, headings

Words are separated by one or more spaces

Paragraphs are usually separated by one or more blank lines

The output if not affected by adding extra spaces or extrablank lines

% is used to start a comment

To force a new line, use \\

\textbfbold, \textititalic, \emphemphasized-- and --- produce – and —

Amitay Isaacs Introduction to LaTeX

Page 51: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Formatting text

Most of the document is in plain text. Latex takes care of

spacing between words, sentences, paragraphsheading sizes and numberingpage numbering \pagestyle.. plain, empty, headings

Words are separated by one or more spaces

Paragraphs are usually separated by one or more blank lines

The output if not affected by adding extra spaces or extrablank lines

% is used to start a comment

To force a new line, use \\

\textbfbold, \textititalic, \emphemphasized-- and --- produce – and —

Amitay Isaacs Introduction to LaTeX

Page 52: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Formatting text

Most of the document is in plain text. Latex takes care of

spacing between words, sentences, paragraphsheading sizes and numberingpage numbering \pagestyle.. plain, empty, headings

Words are separated by one or more spaces

Paragraphs are usually separated by one or more blank lines

The output if not affected by adding extra spaces or extrablank lines

% is used to start a comment

To force a new line, use \\

\textbfbold, \textititalic, \emphemphasized-- and --- produce – and —

Amitay Isaacs Introduction to LaTeX

Page 53: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Formatting text

Most of the document is in plain text. Latex takes care of

spacing between words, sentences, paragraphsheading sizes and numberingpage numbering \pagestyle.. plain, empty, headings

Words are separated by one or more spaces

Paragraphs are usually separated by one or more blank lines

The output if not affected by adding extra spaces or extrablank lines

% is used to start a comment

To force a new line, use \\

\textbfbold, \textititalic, \emphemphasized-- and --- produce – and —

Amitay Isaacs Introduction to LaTeX

Page 54: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Formatting text

Most of the document is in plain text. Latex takes care of

spacing between words, sentences, paragraphsheading sizes and numberingpage numbering \pagestyle.. plain, empty, headings

Words are separated by one or more spaces

Paragraphs are usually separated by one or more blank lines

The output if not affected by adding extra spaces or extrablank lines

% is used to start a comment

To force a new line, use \\

\textbfbold, \textititalic, \emphemphasized-- and --- produce – and —

Amitay Isaacs Introduction to LaTeX

Page 55: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Formatting text

Most of the document is in plain text. Latex takes care of

spacing between words, sentences, paragraphsheading sizes and numberingpage numbering \pagestyle.. plain, empty, headings

Words are separated by one or more spaces

Paragraphs are usually separated by one or more blank lines

The output if not affected by adding extra spaces or extrablank lines

% is used to start a comment

To force a new line, use \\

\textbfbold, \textititalic, \emphemphasized

-- and --- produce – and —

Amitay Isaacs Introduction to LaTeX

Page 56: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Formatting text

Most of the document is in plain text. Latex takes care of

spacing between words, sentences, paragraphsheading sizes and numberingpage numbering \pagestyle.. plain, empty, headings

Words are separated by one or more spaces

Paragraphs are usually separated by one or more blank lines

The output if not affected by adding extra spaces or extrablank lines

% is used to start a comment

To force a new line, use \\

\textbfbold, \textititalic, \emphemphasized-- and --- produce – and —

Amitay Isaacs Introduction to LaTeX

Page 57: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Font sizes

\tiny sample text

\scriptsize sample text

\footnotesize sample text

\small sample text

\normalsize sample text\large sample text\Large sample text\LARGE sample text\huge sample text\Huge sample text

Amitay Isaacs Introduction to LaTeX

Page 58: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Text Alignment

For left aligned text, use flushleft environment

For right aligned text, use flushright environment

For centered text, use center environment

In figures/tables, usually \centering command is used insteadof center environment

Amitay Isaacs Introduction to LaTeX

Page 59: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Text Alignment

For left aligned text, use flushleft environment

For right aligned text, use flushright environment

For centered text, use center environment

In figures/tables, usually \centering command is used insteadof center environment

Amitay Isaacs Introduction to LaTeX

Page 60: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Text Alignment

For left aligned text, use flushleft environment

For right aligned text, use flushright environment

For centered text, use center environment

In figures/tables, usually \centering command is used insteadof center environment

\beginflushleftThis is left aligned.\endflushleft

This is left aligned.

Amitay Isaacs Introduction to LaTeX

Page 61: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Text Alignment

For left aligned text, use flushleft environment

For right aligned text, use flushright environment

For centered text, use center environment

In figures/tables, usually \centering command is used insteadof center environment

Amitay Isaacs Introduction to LaTeX

Page 62: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Text Alignment

For left aligned text, use flushleft environment

For right aligned text, use flushright environment

For centered text, use center environment

In figures/tables, usually \centering command is used insteadof center environment

\beginflushrightThis is right aligned.\endflushright

This is right aligned.

Amitay Isaacs Introduction to LaTeX

Page 63: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Text Alignment

For left aligned text, use flushleft environment

For right aligned text, use flushright environment

For centered text, use center environment

In figures/tables, usually \centering command is used insteadof center environment

Amitay Isaacs Introduction to LaTeX

Page 64: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Text Alignment

For left aligned text, use flushleft environment

For right aligned text, use flushright environment

For centered text, use center environment

In figures/tables, usually \centering command is used insteadof center environment

\begincenterThis is centered.\endcenter

This is centered.

Amitay Isaacs Introduction to LaTeX

Page 65: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Text Alignment

For left aligned text, use flushleft environment

For right aligned text, use flushright environment

For centered text, use center environment

In figures/tables, usually \centering command is used insteadof center environment

Amitay Isaacs Introduction to LaTeX

Page 66: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Breaking up a document

Latex is a language for creating structured documents. Adocument is split in logical sections.

\part..\chapter.., \chapter*..\section.., \section*..\subsection.., \subsection*..\subsubsection.., \subsubsection*..

First form creates sections with numbers and the second formdoes not number the headings.

To create an abstract, place the text in abstract environment.\beginabstractYour abstract goes here.\endabstract.

Amitay Isaacs Introduction to LaTeX

Page 67: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Breaking up a document

Latex is a language for creating structured documents. Adocument is split in logical sections.

\part..\chapter.., \chapter*..\section.., \section*..\subsection.., \subsection*..\subsubsection.., \subsubsection*..

First form creates sections with numbers and the second formdoes not number the headings.

To create an abstract, place the text in abstract environment.\beginabstractYour abstract goes here.\endabstract.

Amitay Isaacs Introduction to LaTeX

Page 68: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Breaking up a document

Latex is a language for creating structured documents. Adocument is split in logical sections.

\part..\chapter.., \chapter*..\section.., \section*..\subsection.., \subsection*..\subsubsection.., \subsubsection*..

First form creates sections with numbers and the second formdoes not number the headings.

To create an abstract, place the text in abstract environment.\beginabstractYour abstract goes here.\endabstract.

Amitay Isaacs Introduction to LaTeX

Page 69: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Breaking up a document

Latex is a language for creating structured documents. Adocument is split in logical sections.

\part..\chapter.., \chapter*..\section.., \section*..\subsection.., \subsection*..\subsubsection.., \subsubsection*..

First form creates sections with numbers and the second formdoes not number the headings.

To create an abstract, place the text in abstract environment.\beginabstractYour abstract goes here.\endabstract.

Amitay Isaacs Introduction to LaTeX

Page 70: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Breaking up a document

Latex is a language for creating structured documents. Adocument is split in logical sections.

\part..\chapter.., \chapter*..\section.., \section*..\subsection.., \subsection*..\subsubsection.., \subsubsection*..

First form creates sections with numbers and the second formdoes not number the headings.

To create an abstract, place the text in abstract environment.\beginabstractYour abstract goes here.\endabstract.

Amitay Isaacs Introduction to LaTeX

Page 71: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Cross-References

\chapterResults\labelch:results

Experiemental results are in Section~\refsec:expt.

\sectionExperiments\labelsec:exptAs mentioned in Chapter~\refch:results ...

\label.. creates a label

Chapters, sections, figures, tables can be labeled

Labels have to be unique in a document

\ref.. puts a reference assoicated with that label

\pageref.. puts page number where that label occurs

Amitay Isaacs Introduction to LaTeX

Page 72: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Cross-References

\chapterResults\labelch:results

Experiemental results are in Section~\refsec:expt.

\sectionExperiments\labelsec:exptAs mentioned in Chapter~\refch:results ...

\label.. creates a label

Chapters, sections, figures, tables can be labeled

Labels have to be unique in a document

\ref.. puts a reference assoicated with that label

\pageref.. puts page number where that label occurs

Amitay Isaacs Introduction to LaTeX

Page 73: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Cross-References

\chapterResults\labelch:results

Experiemental results are in Section~\refsec:expt.

\sectionExperiments\labelsec:exptAs mentioned in Chapter~\refch:results ...

\label.. creates a label

Chapters, sections, figures, tables can be labeled

Labels have to be unique in a document

\ref.. puts a reference assoicated with that label

\pageref.. puts page number where that label occurs

Amitay Isaacs Introduction to LaTeX

Page 74: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Cross-References

\chapterResults\labelch:results

Experiemental results are in Section~\refsec:expt.

\sectionExperiments\labelsec:exptAs mentioned in Chapter~\refch:results ...

\label.. creates a label

Chapters, sections, figures, tables can be labeled

Labels have to be unique in a document

\ref.. puts a reference assoicated with that label

\pageref.. puts page number where that label occurs

Amitay Isaacs Introduction to LaTeX

Page 75: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Cross-References

\chapterResults\labelch:results

Experiemental results are in Section~\refsec:expt.

\sectionExperiments\labelsec:exptAs mentioned in Chapter~\refch:results ...

\label.. creates a label

Chapters, sections, figures, tables can be labeled

Labels have to be unique in a document

\ref.. puts a reference assoicated with that label

\pageref.. puts page number where that label occurs

Amitay Isaacs Introduction to LaTeX

Page 76: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Cross-References

\chapterResults\labelch:results

Experiemental results are in Section~\refsec:expt.

\sectionExperiments\labelsec:exptAs mentioned in Chapter~\refch:results ...

\label.. creates a label

Chapters, sections, figures, tables can be labeled

Labels have to be unique in a document

\ref.. puts a reference assoicated with that label

\pageref.. puts page number where that label occurs

Amitay Isaacs Introduction to LaTeX

Page 77: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Table of Contents

For large documents (report, thesis), it’s useful to providetable of contents. Latex generates the table of contentsautomatically using \tableofcontents.

To generate list of tables, \listoftables

To generate list of figures, \listoffigures

Amitay Isaacs Introduction to LaTeX

Page 78: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Table of Contents

For large documents (report, thesis), it’s useful to providetable of contents. Latex generates the table of contentsautomatically using \tableofcontents.

To generate list of tables, \listoftables

To generate list of figures, \listoffigures

Amitay Isaacs Introduction to LaTeX

Page 79: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Table of Contents

For large documents (report, thesis), it’s useful to providetable of contents. Latex generates the table of contentsautomatically using \tableofcontents.

To generate list of tables, \listoftables

To generate list of figures, \listoffigures

Amitay Isaacs Introduction to LaTeX

Page 80: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Table of Contents

For large documents (report, thesis), it’s useful to providetable of contents. Latex generates the table of contentsautomatically using \tableofcontents.

To generate list of tables, \listoftables

To generate list of figures, \listoffigures

Amitay Isaacs Introduction to LaTeX

Page 81: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Lists - Itemized and Numbered

There are maximum 4 levels of nesting

The appearance of the bullets and numbers in the slides isdifferent than those in the text.

Amitay Isaacs Introduction to LaTeX

Page 82: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Lists - Itemized and Numbered

\beginitemize\item Item 1\beginitemize

\item Sub item 1\item Sub item 2

\enditemize\item Item 2

\enditemize

There are maximum 4 levels of nesting

The appearance of the bullets and numbers in the slides isdifferent than those in the text.

Amitay Isaacs Introduction to LaTeX

Page 83: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Lists - Itemized and Numbered

\beginitemize\item Item 1\beginitemize

\item Sub item 1\item Sub item 2

\enditemize\item Item 2

\enditemize

Item 1

Sub item 1Sub item 2

Item 2

There are maximum 4 levels of nesting

The appearance of the bullets and numbers in the slides isdifferent than those in the text.

Amitay Isaacs Introduction to LaTeX

Page 84: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Lists - Itemized and Numbered

\beginenumerate\item Item 1\beginenumerate

\item Sub item 1\item Sub item 2

\endenumerate\item Item 2

\endenumerate

There are maximum 4 levels of nesting

The appearance of the bullets and numbers in the slides isdifferent than those in the text.

Amitay Isaacs Introduction to LaTeX

Page 85: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Lists - Itemized and Numbered

\beginenumerate\item Item 1\beginenumerate

\item Sub item 1\item Sub item 2

\endenumerate\item Item 2

\endenumerate

1 Item 11 Sub item 12 Sub item 2

2 Item 2

There are maximum 4 levels of nesting

The appearance of the bullets and numbers in the slides isdifferent than those in the text.

Amitay Isaacs Introduction to LaTeX

Page 86: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Lists - Itemized and Numbered

\beginenumerate\item Item 1\beginenumerate

\item Sub item 1\item Sub item 2

\endenumerate\item Item 2

\endenumerate

1 Item 11 Sub item 12 Sub item 2

2 Item 2

There are maximum 4 levels of nesting

The appearance of the bullets and numbers in the slides isdifferent than those in the text.

Amitay Isaacs Introduction to LaTeX

Page 87: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Lists - Itemized and Numbered

\beginenumerate\item Item 1\beginenumerate

\item Sub item 1\item Sub item 2

\endenumerate\item Item 2

\endenumerate

1 Item 11 Sub item 12 Sub item 2

2 Item 2

There are maximum 4 levels of nesting

The appearance of the bullets and numbers in the slides isdifferent than those in the text.

Amitay Isaacs Introduction to LaTeX

Page 88: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Descriptions

There are 3 types of list environments.

itemize – which generate bullet points

enumerate – which generate a numbered list

description – which generates a list like this one

Amitay Isaacs Introduction to LaTeX

Page 89: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Descriptions

There are 3 types of list environments.

itemize – which generate bullet points

enumerate – which generate a numbered list

description – which generates a list like this one

Amitay Isaacs Introduction to LaTeX

Page 90: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Descriptions

There are 3 types of list environments.

itemize – which generate bullet points

enumerate – which generate a numbered list

description – which generates a list like this one

Amitay Isaacs Introduction to LaTeX

Page 91: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Descriptions

There are 3 types of list environments.

itemize – which generate bullet points

enumerate – which generate a numbered list

description – which generates a list like this one

Amitay Isaacs Introduction to LaTeX

Page 92: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Descriptions

There are 3 types of list environments.

itemize – which generate bullet points

enumerate – which generate a numbered list

description – which generates a list like this one

\begindescription\item[itemize] -- which generate bullet points\item[enumerate] -- which generate a numbered list\item[description] -- which generates a list like

this one\enddescription

Amitay Isaacs Introduction to LaTeX

Page 93: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Floating objects

Tables\begintable[options ]\endtableFigures\beginfigure[options ]\endfigureFloating objects do not split across pages. They are put wherethere is enough place for them.

You can provide hints to Latex, where to put these objects.

h = place table heret = place at top of pageb = place at bottom of page

Amitay Isaacs Introduction to LaTeX

Page 94: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Floating objects

Tables\begintable[options ]\endtable

Figures\beginfigure[options ]\endfigureFloating objects do not split across pages. They are put wherethere is enough place for them.

You can provide hints to Latex, where to put these objects.

h = place table heret = place at top of pageb = place at bottom of page

Amitay Isaacs Introduction to LaTeX

Page 95: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Floating objects

Tables\begintable[options ]\endtableFigures\beginfigure[options ]\endfigure

Floating objects do not split across pages. They are put wherethere is enough place for them.

You can provide hints to Latex, where to put these objects.

h = place table heret = place at top of pageb = place at bottom of page

Amitay Isaacs Introduction to LaTeX

Page 96: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Floating objects

Tables\begintable[options ]\endtableFigures\beginfigure[options ]\endfigureFloating objects do not split across pages. They are put wherethere is enough place for them.

You can provide hints to Latex, where to put these objects.

h = place table heret = place at top of pageb = place at bottom of page

Amitay Isaacs Introduction to LaTeX

Page 97: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Floating objects

Tables\begintable[options ]\endtableFigures\beginfigure[options ]\endfigureFloating objects do not split across pages. They are put wherethere is enough place for them.

You can provide hints to Latex, where to put these objects.

h = place table heret = place at top of pageb = place at bottom of page

Amitay Isaacs Introduction to LaTeX

Page 98: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Floating objects

Tables\begintable[options ]\endtableFigures\beginfigure[options ]\endfigureFloating objects do not split across pages. They are put wherethere is enough place for them.

You can provide hints to Latex, where to put these objects.

h = place table heret = place at top of pageb = place at bottom of page

Amitay Isaacs Introduction to LaTeX

Page 99: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Tables

Amitay Isaacs Introduction to LaTeX

Page 100: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Tables

\begintabular|lcr||\hlineKiwi & Orange & Pears \\ \hlineBanana & Strawberry & Watermelon \\ \hline\endtabular

Amitay Isaacs Introduction to LaTeX

Page 101: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Tables

\begintabular|lcr||\hlineKiwi & Orange & Pears \\ \hlineBanana & Strawberry & Watermelon \\ \hline\endtabular

Kiwi Orange Pears

Banana Strawberry Watermelon

Tabular environment creates the rows and columns structure.

Amitay Isaacs Introduction to LaTeX

Page 102: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Tables

\begintabular|lcr||\hlineKiwi & Orange & Pears \\ \hlineBanana & Strawberry & Watermelon \\ \hline\endtabular

l Left-justified column entryc Centered column entryr Right-justified column entryp Paragraph column entry| Vertical rule column|| Double vertical rule column

Amitay Isaacs Introduction to LaTeX

Page 103: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Tables

\begintabular|lcr||\hlineKiwi & Orange & Pears \\ \hlineBanana & Strawberry & Watermelon \\ \hline\endtabular

& Moves to the next column\\ Moves to the next row

\hline Draws horizontal rule\multicolumn Create cells spanning multiple columns

Amitay Isaacs Introduction to LaTeX

Page 104: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Tables

Amitay Isaacs Introduction to LaTeX

Page 105: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Tables

\begintable\captionFruits\labeltab:fruits\begintabularl|c|rKiwi & Orange & Pears \\ \hlineBanana & Strawberry & Watermelon\endtabular\endtable

Amitay Isaacs Introduction to LaTeX

Page 106: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Tables

\begintable\captionFruits\labeltab:fruits\begintabularl|c|rKiwi & Orange & Pears \\ \hlineBanana & Strawberry & Watermelon\endtabular\endtable

Table: Fruits

Kiwi Orange Pears

Banana Strawberry Watermelon

Amitay Isaacs Introduction to LaTeX

Page 107: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Tables

\begintable\captionFruits\labeltab:fruits\begintabularl|c|rKiwi & Orange & Pears \\ \hlineBanana & Strawberry & Watermelon\endtabular\endtable

Remember to put \label.. after \caption..

You can refer to the table asas shown in Table~\reftab:fruits

Amitay Isaacs Introduction to LaTeX

Page 108: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Tables

\begintable\captionFruits\labeltab:fruits\begintabularl|c|rKiwi & Orange & Pears \\ \hlineBanana & Strawberry & Watermelon\endtabular\endtable

Remember to put \label.. after \caption..You can refer to the table asas shown in Table~\reftab:fruits

Amitay Isaacs Introduction to LaTeX

Page 109: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Figures

We use a special graphics package called graphicx

Add \usepackagegraphicx in preamble

Use \includegraphics[options ]figname to include animage

Options – width, height, scaleLatex supports bmp, eps, gif, jpg, pdf, ps images

\includegraphics[width=2in]graph1

Automatically searches for EPS (graph1.eps) or PNG(graph1.png) image.

Amitay Isaacs Introduction to LaTeX

Page 110: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Figures

We use a special graphics package called graphicx

Add \usepackagegraphicx in preamble

Use \includegraphics[options ]figname to include animage

Options – width, height, scaleLatex supports bmp, eps, gif, jpg, pdf, ps images

\includegraphics[width=2in]graph1

Automatically searches for EPS (graph1.eps) or PNG(graph1.png) image.

Amitay Isaacs Introduction to LaTeX

Page 111: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Figures

We use a special graphics package called graphicx

Add \usepackagegraphicx in preamble

Use \includegraphics[options ]figname to include animage

Options – width, height, scaleLatex supports bmp, eps, gif, jpg, pdf, ps images

\includegraphics[width=2in]graph1

Automatically searches for EPS (graph1.eps) or PNG(graph1.png) image.

Amitay Isaacs Introduction to LaTeX

Page 112: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Figures

We use a special graphics package called graphicx

Add \usepackagegraphicx in preamble

Use \includegraphics[options ]figname to include animage

Options – width, height, scaleLatex supports bmp, eps, gif, jpg, pdf, ps images

\includegraphics[width=2in]graph1

Automatically searches for EPS (graph1.eps) or PNG(graph1.png) image.

Amitay Isaacs Introduction to LaTeX

Page 113: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Figures

We use a special graphics package called graphicx

Add \usepackagegraphicx in preamble

Use \includegraphics[options ]figname to include animage

Options – width, height, scale

Latex supports bmp, eps, gif, jpg, pdf, ps images

\includegraphics[width=2in]graph1

Automatically searches for EPS (graph1.eps) or PNG(graph1.png) image.

Amitay Isaacs Introduction to LaTeX

Page 114: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Figures

We use a special graphics package called graphicx

Add \usepackagegraphicx in preamble

Use \includegraphics[options ]figname to include animage

Options – width, height, scaleLatex supports bmp, eps, gif, jpg, pdf, ps images

\includegraphics[width=2in]graph1

Automatically searches for EPS (graph1.eps) or PNG(graph1.png) image.

Amitay Isaacs Introduction to LaTeX

Page 115: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Figures

We use a special graphics package called graphicx

Add \usepackagegraphicx in preamble

Use \includegraphics[options ]figname to include animage

Options – width, height, scaleLatex supports bmp, eps, gif, jpg, pdf, ps images

\includegraphics[width=2in]graph1

Automatically searches for EPS (graph1.eps) or PNG(graph1.png) image.

Amitay Isaacs Introduction to LaTeX

Page 116: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Figures

We use a special graphics package called graphicx

Add \usepackagegraphicx in preamble

Use \includegraphics[options ]figname to include animage

Options – width, height, scaleLatex supports bmp, eps, gif, jpg, pdf, ps images

\includegraphics[width=2in]graph1Automatically searches for EPS (graph1.eps) or PNG(graph1.png) image.

Amitay Isaacs Introduction to LaTeX

Page 117: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Figures

Amitay Isaacs Introduction to LaTeX

Page 118: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Figures

\beginfigure[h]\centering\includegraphics[width=5cm]chart1\captionAn example of a chart\labelfig:chart\endfigure

Figure: An example of a chart

Amitay Isaacs Introduction to LaTeX

Page 119: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Figures

\beginfigure[h]\centering\includegraphics[width=5cm]chart1\captionAn example of a chart\labelfig:chart\endfigure

Remember to put \label.. after \caption..

You can refer to the figure asas shown in Figure~\reffig:chart

Amitay Isaacs Introduction to LaTeX

Page 120: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormattingListsFloats

Figures

\beginfigure[h]\centering\includegraphics[width=5cm]chart1\captionAn example of a chart\labelfig:chart\endfigure

Remember to put \label.. after \caption..You can refer to the figure asas shown in Figure~\reffig:chart

Amitay Isaacs Introduction to LaTeX

Page 121: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Mathematical Formulae

There are two ways to insert mathematical formula in adocument

Mathematical formula (e.g.√

x2 + y2) embedded in the text$ \sqrt x^2 + y^2 $Mathematical formula an equation on a separate line asfollows.

xn − 1

x − 1=

n−1∑k=0

xk

There are Latex commands for most mathematical operationsand symbols

Amitay Isaacs Introduction to LaTeX

Page 122: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Mathematical Formulae

There are two ways to insert mathematical formula in adocument

Mathematical formula (e.g.√

x2 + y2) embedded in the text$ \sqrt x^2 + y^2 $Mathematical formula an equation on a separate line asfollows.

xn − 1

x − 1=

n−1∑k=0

xk

There are Latex commands for most mathematical operationsand symbols

Amitay Isaacs Introduction to LaTeX

Page 123: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Mathematical Formulae

There are two ways to insert mathematical formula in adocument

Mathematical formula (e.g.√

x2 + y2) embedded in the text$ \sqrt x^2 + y^2 $

Mathematical formula an equation on a separate line asfollows.

xn − 1

x − 1=

n−1∑k=0

xk

There are Latex commands for most mathematical operationsand symbols

Amitay Isaacs Introduction to LaTeX

Page 124: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Mathematical Formulae

There are two ways to insert mathematical formula in adocument

Mathematical formula (e.g.√

x2 + y2) embedded in the text$ \sqrt x^2 + y^2 $Mathematical formula an equation on a separate line asfollows.

xn − 1

x − 1=

n−1∑k=0

xk

There are Latex commands for most mathematical operationsand symbols

Amitay Isaacs Introduction to LaTeX

Page 125: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Mathematical Formulae

There are two ways to insert mathematical formula in adocument

Mathematical formula (e.g.√

x2 + y2) embedded in the text$ \sqrt x^2 + y^2 $Mathematical formula an equation on a separate line asfollows.

xn − 1

x − 1=

n−1∑k=0

xk

$$\fracx^n-1x-1 = \sum k=0^n-1 x^k

$$

There are Latex commands for most mathematical operationsand symbols

Amitay Isaacs Introduction to LaTeX

Page 126: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Mathematical Formulae

There are two ways to insert mathematical formula in adocument

Mathematical formula (e.g.√

x2 + y2) embedded in the text$ \sqrt x^2 + y^2 $Mathematical formula an equation on a separate line asfollows.

xn − 1

x − 1=

n−1∑k=0

xk

\[\fracx^n-1x-1 = \sum k=0^n-1 x^k

\]

There are Latex commands for most mathematical operationsand symbols

Amitay Isaacs Introduction to LaTeX

Page 127: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Mathematical Formulae

There are two ways to insert mathematical formula in adocument

Mathematical formula (e.g.√

x2 + y2) embedded in the text$ \sqrt x^2 + y^2 $Mathematical formula an equation on a separate line asfollows.

xn − 1

x − 1=

n−1∑k=0

xk

\begindisplaymath\fracx^n-1x-1 = \sum k=0^n-1 x^k

\enddisplaymath

There are Latex commands for most mathematical operationsand symbols

Amitay Isaacs Introduction to LaTeX

Page 128: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Mathematical Formulae

There are two ways to insert mathematical formula in adocument

Mathematical formula (e.g.√

x2 + y2) embedded in the text$ \sqrt x^2 + y^2 $Mathematical formula an equation on a separate line asfollows.

xn − 1

x − 1=

n−1∑k=0

xk

\begindisplaymath\fracx^n-1x-1 = \sum k=0^n-1 x^k

\enddisplaymathThere are Latex commands for most mathematical operationsand symbols

Amitay Isaacs Introduction to LaTeX

Page 129: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Exponents, Subscripts and Fractions

Use the ^ character, known as caret, to create expoenents.

$x^2$ produces x2

$x^21 \ne x^21$ produces x21 6= x21

Use the (underscore) character, to create subscripts.

$x 2$ produces x2

$x 21 \ne x 21$ produces x21 6= x21

Fractions are written in two ways: with a diagonal fraction baror a horizontal one. Digaonal fraction bars work best in tightplaces. Horizontal bar is clearer when there is more room.

$a/b$ becomes a/b$$ \fraca/b-c/de/f-g/h $$ becomes

a/b − c/d

e/f − g/h

Amitay Isaacs Introduction to LaTeX

Page 130: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Exponents, Subscripts and Fractions

Use the ^ character, known as caret, to create expoenents.

$x^2$ produces x2

$x^21 \ne x^21$ produces x21 6= x21

Use the (underscore) character, to create subscripts.

$x 2$ produces x2

$x 21 \ne x 21$ produces x21 6= x21

Fractions are written in two ways: with a diagonal fraction baror a horizontal one. Digaonal fraction bars work best in tightplaces. Horizontal bar is clearer when there is more room.

$a/b$ becomes a/b$$ \fraca/b-c/de/f-g/h $$ becomes

a/b − c/d

e/f − g/h

Amitay Isaacs Introduction to LaTeX

Page 131: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Exponents, Subscripts and Fractions

Use the ^ character, known as caret, to create expoenents.

$x^2$ produces x2

$x^21 \ne x^21$ produces x21 6= x21

Use the (underscore) character, to create subscripts.

$x 2$ produces x2

$x 21 \ne x 21$ produces x21 6= x21

Fractions are written in two ways: with a diagonal fraction baror a horizontal one. Digaonal fraction bars work best in tightplaces. Horizontal bar is clearer when there is more room.

$a/b$ becomes a/b$$ \fraca/b-c/de/f-g/h $$ becomes

a/b − c/d

e/f − g/h

Amitay Isaacs Introduction to LaTeX

Page 132: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Exponents, Subscripts and Fractions

Use the ^ character, known as caret, to create expoenents.

$x^2$ produces x2

$x^21 \ne x^21$ produces x21 6= x21

Use the (underscore) character, to create subscripts.

$x 2$ produces x2

$x 21 \ne x 21$ produces x21 6= x21

Fractions are written in two ways: with a diagonal fraction baror a horizontal one. Digaonal fraction bars work best in tightplaces. Horizontal bar is clearer when there is more room.

$a/b$ becomes a/b$$ \fraca/b-c/de/f-g/h $$ becomes

a/b − c/d

e/f − g/h

Amitay Isaacs Introduction to LaTeX

Page 133: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Exponents, Subscripts and Fractions

Use the ^ character, known as caret, to create expoenents.

$x^2$ produces x2

$x^21 \ne x^21$ produces x21 6= x21

Use the (underscore) character, to create subscripts.

$x 2$ produces x2

$x 21 \ne x 21$ produces x21 6= x21

Fractions are written in two ways: with a diagonal fraction baror a horizontal one. Digaonal fraction bars work best in tightplaces. Horizontal bar is clearer when there is more room.

$a/b$ becomes a/b$$ \fraca/b-c/de/f-g/h $$ becomes

a/b − c/d

e/f − g/h

Amitay Isaacs Introduction to LaTeX

Page 134: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Exponents, Subscripts and Fractions

Use the ^ character, known as caret, to create expoenents.

$x^2$ produces x2

$x^21 \ne x^21$ produces x21 6= x21

Use the (underscore) character, to create subscripts.

$x 2$ produces x2

$x 21 \ne x 21$ produces x21 6= x21

Fractions are written in two ways: with a diagonal fraction baror a horizontal one. Digaonal fraction bars work best in tightplaces. Horizontal bar is clearer when there is more room.

$a/b$ becomes a/b$$ \fraca/b-c/de/f-g/h $$ becomes

a/b − c/d

e/f − g/h

Amitay Isaacs Introduction to LaTeX

Page 135: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Exponents, Subscripts and Fractions

Use the ^ character, known as caret, to create expoenents.

$x^2$ produces x2

$x^21 \ne x^21$ produces x21 6= x21

Use the (underscore) character, to create subscripts.

$x 2$ produces x2

$x 21 \ne x 21$ produces x21 6= x21

Fractions are written in two ways: with a diagonal fraction baror a horizontal one. Digaonal fraction bars work best in tightplaces. Horizontal bar is clearer when there is more room.

$a/b$ becomes a/b$$ \fraca/b-c/de/f-g/h $$ becomes

a/b − c/d

e/f − g/h

Amitay Isaacs Introduction to LaTeX

Page 136: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Exponents, Subscripts and Fractions

Use the ^ character, known as caret, to create expoenents.

$x^2$ produces x2

$x^21 \ne x^21$ produces x21 6= x21

Use the (underscore) character, to create subscripts.

$x 2$ produces x2

$x 21 \ne x 21$ produces x21 6= x21

Fractions are written in two ways: with a diagonal fraction baror a horizontal one. Digaonal fraction bars work best in tightplaces. Horizontal bar is clearer when there is more room.

$a/b$ becomes a/b$$ \fraca/b-c/de/f-g/h $$ becomes

a/b − c/d

e/f − g/h

Amitay Isaacs Introduction to LaTeX

Page 137: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Exponents, Subscripts and Fractions

Use the ^ character, known as caret, to create expoenents.

$x^2$ produces x2

$x^21 \ne x^21$ produces x21 6= x21

Use the (underscore) character, to create subscripts.

$x 2$ produces x2

$x 21 \ne x 21$ produces x21 6= x21

Fractions are written in two ways: with a diagonal fraction baror a horizontal one. Digaonal fraction bars work best in tightplaces. Horizontal bar is clearer when there is more room.

$a/b$ becomes a/b

$$ \fraca/b-c/de/f-g/h $$ becomes

a/b − c/d

e/f − g/h

Amitay Isaacs Introduction to LaTeX

Page 138: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Exponents, Subscripts and Fractions

Use the ^ character, known as caret, to create expoenents.

$x^2$ produces x2

$x^21 \ne x^21$ produces x21 6= x21

Use the (underscore) character, to create subscripts.

$x 2$ produces x2

$x 21 \ne x 21$ produces x21 6= x21

Fractions are written in two ways: with a diagonal fraction baror a horizontal one. Digaonal fraction bars work best in tightplaces. Horizontal bar is clearer when there is more room.

$a/b$ becomes a/b$$ \fraca/b-c/de/f-g/h $$ becomes

a/b − c/d

e/f − g/h

Amitay Isaacs Introduction to LaTeX

Page 139: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Above and Below

Amitay Isaacs Introduction to LaTeX

Page 140: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Above and Below

It’s useful to be able draw horizontal lines and braces aboveand below parts of a formula

\overline, \underline for horizontal lines\overbrace, \underbrace for horizontal braces

$\overlinex+\overliney = \overlinex+y$produces x + y = x + y

Amitay Isaacs Introduction to LaTeX

Page 141: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Above and Below

It’s useful to be able draw horizontal lines and braces aboveand below parts of a formula

\overline, \underline for horizontal lines

\overbrace, \underbrace for horizontal braces

$\overlinex+\overliney = \overlinex+y$produces x + y = x + y

Amitay Isaacs Introduction to LaTeX

Page 142: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Above and Below

It’s useful to be able draw horizontal lines and braces aboveand below parts of a formula

\overline, \underline for horizontal lines\overbrace, \underbrace for horizontal braces

$\overlinex+\overliney = \overlinex+y$produces x + y = x + y

Amitay Isaacs Introduction to LaTeX

Page 143: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Above and Below

It’s useful to be able draw horizontal lines and braces aboveand below parts of a formula

\overline, \underline for horizontal lines\overbrace, \underbrace for horizontal braces

$\overlinex+\overliney = \overlinex+y$produces x + y = x + y

Amitay Isaacs Introduction to LaTeX

Page 144: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Above and Below

It’s useful to be able draw horizontal lines and braces aboveand below parts of a formula

\overline, \underline for horizontal lines\overbrace, \underbrace for horizontal braces

$\overlinex+\overliney = \overlinex+y$produces x + y = x + y

(m + n

m

)=

(m + n)!

m!n!=

m factors︷ ︸︸ ︷(m + n)(m + n − 1) · · · (n + 1)

m(m − 1) · · · 1︸ ︷︷ ︸m factors

Amitay Isaacs Introduction to LaTeX

Page 145: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Above and Below

$$\binomm+nm = \frac(m+n)!m!n! =\frac\overbrace(m+n)(m+n-1)\cdots(n+1)^\text$m$ factors\underbracem(m-1)\cdots 1_\text$m$ factors$$

(m + n

m

)=

(m + n)!

m!n!=

m factors︷ ︸︸ ︷(m + n)(m + n − 1) · · · (n + 1)

m(m − 1) · · · 1︸ ︷︷ ︸m factors

Amitay Isaacs Introduction to LaTeX

Page 146: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Sums, Integrals and Limits

Summations and Integrals, both have lower and upper limits.Limits usually have text with an arrow placed below them.

$$ \sum k=0^\infty\frac(-1)^kk+1= \int 0^1\fracdx1+x $$ produces

∞∑k=0

(−1)k

k + 1=

∫ 1

0

dx

1 + x

$$ \lim x\rightarrow 0 \frac\sin xx = 1 $$

produces

limx→0

sin x

x= 1

Amitay Isaacs Introduction to LaTeX

Page 147: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Sums, Integrals and Limits

Summations and Integrals, both have lower and upper limits.Limits usually have text with an arrow placed below them.

$$ \sum k=0^\infty\frac(-1)^kk+1= \int 0^1\fracdx1+x $$ produces

∞∑k=0

(−1)k

k + 1=

∫ 1

0

dx

1 + x

$$ \lim x\rightarrow 0 \frac\sin xx = 1 $$

produces

limx→0

sin x

x= 1

Amitay Isaacs Introduction to LaTeX

Page 148: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Sums, Integrals and Limits

Summations and Integrals, both have lower and upper limits.Limits usually have text with an arrow placed below them.

$$ \sum k=0^\infty\frac(-1)^kk+1= \int 0^1\fracdx1+x $$ produces

∞∑k=0

(−1)k

k + 1=

∫ 1

0

dx

1 + x

$$ \lim x\rightarrow 0 \frac\sin xx = 1 $$

produces

limx→0

sin x

x= 1

Amitay Isaacs Introduction to LaTeX

Page 149: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Sums, Integrals and Limits

Summations and Integrals, both have lower and upper limits.Limits usually have text with an arrow placed below them.

$$ \sum k=0^\infty\frac(-1)^kk+1= \int 0^1\fracdx1+x $$ produces

∞∑k=0

(−1)k

k + 1=

∫ 1

0

dx

1 + x

$$ \lim x\rightarrow 0 \frac\sin xx = 1 $$

produces

limx→0

sin x

x= 1

Amitay Isaacs Introduction to LaTeX

Page 150: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Equations

\beginequation\labeleq:test1\left\ \, x \biggm| \int_0^x t^2 \, dt \leq 5 \, \right\\endequation

x

∣∣∣∣ ∫ x

0t2 dt ≤ 5

(1)

Amitay Isaacs Introduction to LaTeX

Page 151: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Matrices

\beginequation\left( \beginmatrix1 & 0 & \cdots & 0 \\0 & 1 & \cdots & 0 \\\vdots & \vdots & \ddots & \vdots \\0 & 0 & \cdots & 1 \\\endmatrix \right)\endequation

1 0 · · · 00 1 · · · 0...

.... . .

...0 0 · · · 1

(2)

Amitay Isaacs Introduction to LaTeX

Page 152: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Multiple Equations

\begingatherx_1 x_2 + x_1^2 x_2^2 + x_3, \\x_1 x_3 + x_1^2 x_3^2 + x_2, \\x_1 x_2 x_3.

\endgather

x1x2 + x21 x2

2 + x3, (3)

x1x3 + x21 x2

3 + x2, (4)

x1x2x3. (5)

Amitay Isaacs Introduction to LaTeX

Page 153: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Aligned Equations

\beginalignf(x) &= x + yz & g(x) &= x + y + z \notag \\h(x) &= xy + xz + yz & k(x) &= (x + y)(x + z)(y + z)\endalign

f (x) = x + yz g(x) = x + y + z

h(x) = xy + xz + yz k(x) = (x + y)(x + z)(y + z) (6)

Amitay Isaacs Introduction to LaTeX

Page 154: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Greek Letters

\alpha α\beta β\gamma γ\delta δ\epsilon ε\zeta ζ\eta η\theta θ\iota ι\kappa κ\lambda λ\mu µ

\nu ν\xi ξ\pi π\rho ρ\sigma σ\tau τ\upsilon υ\phi φ\chi χ\psi ψ\omega ω

\Gamma Γ\Delta ∆\Theta Θ\Lambda Λ\Xi Ξ\Pi Π\Sigma Σ\Upsilon Υ\Phi Φ\Psi Ψ\Omega Ω

Amitay Isaacs Introduction to LaTeX

Page 155: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Binary Relations and Operators

< <> >= =\neq 6=: :\leq or \le ≤\geq or \ge ≥\ll \gg \sim ∼\approx ≈

\in ∈\ni or \owns 3\notin /∈\equiv ≡\subset ⊂\subseteq ⊆\supset ⊃\supseteq ⊇\perp ⊥\parallel ‖\in ∈

+ +− −\pm ±\times ×\div ÷\cap ∩\cup ∪\wedge or \land ∧\vee or \lor ∨\ast ∗\cdot ·\bullet •

Amitay Isaacs Introduction to LaTeX

Page 156: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Arrows and Misc Symbols

\leftarrow ←\rightarrow or \to →\leftrightarrow ↔\Leftarrow ⇐\Rightarrow ⇒\Leftrightarrow ⇔\uparrow ↑\downarrow ↓\updownarrow l\iff ⇐⇒\mapsto 7→

\imath ı\jmath \partial ∂\nabla ∇\infty ∞\prime ′\emptyset ∅\forall ∀\exists ∃\P ¶\S §\dag †\ddag ‡

Amitay Isaacs Introduction to LaTeX

Page 157: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

FormulaeEquationsSymbols

Operators

\sin sin\cos cos\tan tan\sinh sinh\cosh cosh\tanh tanh\exp exp\ln ln\log log\lim lim\min min\max max

\int a^b∫ ba

∫ b

a

\oint a^b∮ ba

∮ b

a

\sum a^b∑b

a

b∑a

\prod a^b∏b

a

b∏a

\bigcap a^b⋂b

a

b⋂a

\bigcup a^b⋃b

a

b⋃a

Amitay Isaacs Introduction to LaTeX

Page 158: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

Working with Bibliographies

Bibliography information is stored in a .bib file in BibTexformat.

Each record in bib file is a bibliographic entry

To set a referencing style use \bibliographystylestyle

Styles – plain, alpha, abbrv, ieeetr

To add a bibliography database in your document use\bibliographybibfile without .bib

You can add have multiple Bibtex databases and list themusing \bibliography..

Amitay Isaacs Introduction to LaTeX

Page 159: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

Working with Bibliographies

Bibliography information is stored in a .bib file in BibTexformat.

Each record in bib file is a bibliographic entry

To set a referencing style use \bibliographystylestyle

Styles – plain, alpha, abbrv, ieeetr

To add a bibliography database in your document use\bibliographybibfile without .bib

You can add have multiple Bibtex databases and list themusing \bibliography..

Amitay Isaacs Introduction to LaTeX

Page 160: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

Working with Bibliographies

Bibliography information is stored in a .bib file in BibTexformat.

Each record in bib file is a bibliographic entry

To set a referencing style use \bibliographystylestyle

Styles – plain, alpha, abbrv, ieeetr

To add a bibliography database in your document use\bibliographybibfile without .bib

You can add have multiple Bibtex databases and list themusing \bibliography..

Amitay Isaacs Introduction to LaTeX

Page 161: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

Working with Bibliographies

Bibliography information is stored in a .bib file in BibTexformat.

Each record in bib file is a bibliographic entry

To set a referencing style use \bibliographystylestyle

Styles – plain, alpha, abbrv, ieeetr

To add a bibliography database in your document use\bibliographybibfile without .bib

You can add have multiple Bibtex databases and list themusing \bibliography..

Amitay Isaacs Introduction to LaTeX

Page 162: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

Working with Bibliographies

Bibliography information is stored in a .bib file in BibTexformat.

Each record in bib file is a bibliographic entry

To set a referencing style use \bibliographystylestyle Styles – plain, alpha, abbrv, ieeetr

To add a bibliography database in your document use\bibliographybibfile without .bib

You can add have multiple Bibtex databases and list themusing \bibliography..

Amitay Isaacs Introduction to LaTeX

Page 163: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

Working with Bibliographies

Bibliography information is stored in a .bib file in BibTexformat.

Each record in bib file is a bibliographic entry

To set a referencing style use \bibliographystylestyle Styles – plain, alpha, abbrv, ieeetr

To add a bibliography database in your document use\bibliographybibfile without .bib

You can add have multiple Bibtex databases and list themusing \bibliography..

Amitay Isaacs Introduction to LaTeX

Page 164: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

Working with Bibliographies

Bibliography information is stored in a .bib file in BibTexformat.

Each record in bib file is a bibliographic entry

To set a referencing style use \bibliographystylestyle Styles – plain, alpha, abbrv, ieeetr

To add a bibliography database in your document use\bibliographybibfile without .bib

You can add have multiple Bibtex databases and list themusing \bibliography..

Amitay Isaacs Introduction to LaTeX

Page 165: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

BibTex database

@article isaacs_multiobjective_2009,title = Multiobjective Design Optimization Using Multiple

Adaptive Spatially Distributed Surrogates,author = "A. Isaacs and T. Ray and W. Smith",journal = "International Journal of Product Development",year = "2009",pages = "188--217",

Amitay Isaacs Introduction to LaTeX

Page 166: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

BibTex database

@article isaacs_multiobjective_2009,title = Multiobjective Design Optimization Using Multiple

Adaptive Spatially Distributed Surrogates,author = "A. Isaacs and T. Ray and W. Smith",journal = "International Journal of Product Development",year = "2009",pages = "188--217",

This entry is for a journal paper or article

The label or key for this entry is isaacs multiobjective 2009

Each author is separated with ‘and’

Each field is enclosed in “quotes” or braces Page numbers are separated by -- and not -

Amitay Isaacs Introduction to LaTeX

Page 167: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

BibTex database

@article isaacs_multiobjective_2009,title = Multiobjective Design Optimization Using Multiple

Adaptive Spatially Distributed Surrogates,author = "A. Isaacs and T. Ray and W. Smith",journal = "International Journal of Product Development",year = "2009",pages = "188--217",

This entry is for a journal paper or article

The label or key for this entry is isaacs multiobjective 2009

Each author is separated with ‘and’

Each field is enclosed in “quotes” or braces Page numbers are separated by -- and not -

Amitay Isaacs Introduction to LaTeX

Page 168: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

BibTex database

@article isaacs_multiobjective_2009,title = Multiobjective Design Optimization Using Multiple

Adaptive Spatially Distributed Surrogates,author = "A. Isaacs and T. Ray and W. Smith",journal = "International Journal of Product Development",year = "2009",pages = "188--217",

This entry is for a journal paper or article

The label or key for this entry is isaacs multiobjective 2009

Each author is separated with ‘and’

Each field is enclosed in “quotes” or braces Page numbers are separated by -- and not -

Amitay Isaacs Introduction to LaTeX

Page 169: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

BibTex database

@article isaacs_multiobjective_2009,title = Multiobjective Design Optimization Using Multiple

Adaptive Spatially Distributed Surrogates,author = "A. Isaacs and T. Ray and W. Smith",journal = "International Journal of Product Development",year = "2009",pages = "188--217",

This entry is for a journal paper or article

The label or key for this entry is isaacs multiobjective 2009

Each author is separated with ‘and’

Each field is enclosed in “quotes” or braces

Page numbers are separated by -- and not -

Amitay Isaacs Introduction to LaTeX

Page 170: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

BibTex database

@article isaacs_multiobjective_2009,title = Multiobjective Design Optimization Using Multiple

Adaptive Spatially Distributed Surrogates,author = "A. Isaacs and T. Ray and W. Smith",journal = "International Journal of Product Development",year = "2009",pages = "188--217",

This entry is for a journal paper or article

The label or key for this entry is isaacs multiobjective 2009

Each author is separated with ‘and’

Each field is enclosed in “quotes” or braces Page numbers are separated by -- and not -

Amitay Isaacs Introduction to LaTeX

Page 171: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

BibTex database

@article isaacs_multiobjective_2009,title = Multiobjective Design Optimization Using Multiple

Adaptive Spatially Distributed Surrogates,author = "A. Isaacs and T. Ray and W. Smith",journal = "International Journal of Product Development",year = "2009",pages = "188--217",

To refer to this article, use\citeisaacs multiobjective 2009.

Amitay Isaacs Introduction to LaTeX

Page 172: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

BibTex entry types

article an article in a journal or magazine

book a book with an author (or editor) and a publisher

inbook a part of a book, such as chapter or a page range

incollection a part of a book with its own title

proceedings the proceedings of a conference

inproceedings an article in a conference proceedings with its owntitle and author

masterthesis a master’s thesis

phdthesis a Ph.D. thesis

techreport a report published by a school or institution

Amitay Isaacs Introduction to LaTeX

Page 173: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

BibTex fields

address institution pagesauthor journal publisherbooktitle key schoolchapter language seriescrossref month titleedition note typeeditor number volumehowpublished organization year

Do all entries require all the fields?

Amitay Isaacs Introduction to LaTeX

Page 174: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

BibTex fields

address institution pagesauthor journal publisherbooktitle key schoolchapter language seriescrossref month titleedition note typeeditor number volumehowpublished organization year

Do all entries require all the fields?

Amitay Isaacs Introduction to LaTeX

Page 175: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

BibTex entries and fields

Entry type Required fields Optional fieldsarticle author, title, journal,

year, pagesvolume, number, language, note

book author/editor, title, pub-lisher, year

edition, series, volume, number, ad-dress, month, language, note

inbook author/editor, title,chapter/pages, pub-lisher, year

series, volume, number, type, ad-dress, edition, month, pages, lan-guage, note

incollection author, title, booktitle,publisher, year

editor, series, volume, number, ad-dress, edition, month, note, pages,language

inproceedings author, title, booktitle,year

address, editor, series, volume, num-ber, organization, publisher, month,note, pages, language

phdthesis author, title, school, year type, address, month, note, pagestechreport author, title, institution,

yeartype, number, address, month, note

Amitay Isaacs Introduction to LaTeX

Page 176: Introduction to LaTeX · Latex Document Structure Mathematics with Latex Bibliography Overview Resources Diving in Latex What is Latex Pronounciation: It is lei-tek. Some people read

IntroductionLatex Document Structure

Mathematics with LatexBibliography

BibTex database

Questions?

Amitay Isaacs Introduction to LaTeX