Introduction to Latex & Overleaf
Total Page:16
File Type:pdf, Size:1020Kb
Introduction Features A Basic LATEX Document Some LATEX Examples Installing and Using LATEX References Introduction to LATEX & Overleaf Ricky Patterson UVa Library 27 Sep 2018 (View source: https://www.overleaf.com/read/vshrryxvbhjw) Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 1 / 18 Introduction Features A Basic LATEX Document Some LATEX Examples Installing and Using LATEX References Outline Introduction Features A Basic LATEX Document Example Document Preamble ndocumentclass Packages Body Typing Text Caveats Formatting Some LATEX Examples Tables and Figures Mathematics AIntro to LATEX & Overleaf 27 Sep 2018, (View source: InstallingRicky and Patterson Using Lhttps://www.overleaf.com/read/vshrryxvbhjw)TEX 2 / 18 References Introduction Features A Basic LATEX Document Some LATEX Examples Installing and Using LATEX References Introduction I LATEX is a document preparation system for high quality typesetting I Not a Word Processor - Allows authors to focus on content rather than appearance. I Frequently used in the preparation of scientific or technical documents, but can be used to create letters, dissertations, music scores, calendars, presentations, etc., etc., etc. Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 3 / 18 However... I Steep learning curve I Not WYSIWYG I Can’t easily convert to and from Word, etc. Introduction Features A Basic LATEX Document Some LATEX Examples Installing and Using LATEX References LATEX Features I Typesetting articles, reports, books, presentations I Typesetting complex formulas I Control sectioning, cross-references, tables and figures I Automatic generation of bibliographies, indexes, and TOCs I Free, and Multi-platform (Win/Mac/Linux) I Support: CTAN, TUG Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 4 / 18 Introduction Features A Basic LATEX Document Some LATEX Examples Installing and Using LATEX References LATEX Features I Typesetting articles, reports, books, presentations I Typesetting complex formulas I Control sectioning, cross-references, tables and figures I Automatic generation of bibliographies, indexes, and TOCs I Free, and Multi-platform (Win/Mac/Linux) I Support: CTAN, TUG However... I Steep learning curve I Not WYSIWYG I Can’t easily convert to and from Word, etc. Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 4 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Basic Document \documentclass{article} \title{My First \LaTeX{}Document} \author{Ricky Patterson} \institute{UVa Library} \date{September 2018} \begin{document} \maketitle Hello world! \end{document} Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 5 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References My First LATEX Document Ricky Patterson UVa Library September 2016 Hello world! Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 6 / 18 I Commands placed here will apply to the entire document I Can customize line width, margins, paragraph spacing, fonts, page height and width I Load additional packages here I At minimum, it must contain a ndocumentclass[options]fdocument typeg statement... Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References LATEX Document Preamble I Everything before the nbeginfdocumentg Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 7 / 18 I Can customize line width, margins, paragraph spacing, fonts, page height and width I Load additional packages here I At minimum, it must contain a ndocumentclass[options]fdocument typeg statement... Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References LATEX Document Preamble I Everything before the nbeginfdocumentg I Commands placed here will apply to the entire document Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 7 / 18 I Load additional packages here I At minimum, it must contain a ndocumentclass[options]fdocument typeg statement... Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References LATEX Document Preamble I Everything before the nbeginfdocumentg I Commands placed here will apply to the entire document I Can customize line width, margins, paragraph spacing, fonts, page height and width Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 7 / 18 I At minimum, it must contain a ndocumentclass[options]fdocument typeg statement... Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References LATEX Document Preamble I Everything before the nbeginfdocumentg I Commands placed here will apply to the entire document I Can customize line width, margins, paragraph spacing, fonts, page height and width I Load additional packages here Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 7 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References LATEX Document Preamble I Everything before the nbeginfdocumentg I Commands placed here will apply to the entire document I Can customize line width, margins, paragraph spacing, fonts, page height and width I Load additional packages here I At minimum, it must contain a ndocumentclass[options]fdocument typeg statement... Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 7 / 18 I ndocumentclass[options]fdocument typeg I document types: I article: Default. contains: parts, sections, subsections... I report: also contains chapters I book: like report, but treats even/odd pages differently I letter: for writing letters I Options I Font Size (10pt,11pt,12pt) I Paper Size (letterpaper), and Orientation (landscape) I Page Format (twocolumn, oneside) I and others... Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References ndocumentclass I The only required line in a preamble Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 8 / 18 I document types: I article: Default. contains: parts, sections, subsections... I report: also contains chapters I book: like report, but treats even/odd pages differently I letter: for writing letters I Options I Font Size (10pt,11pt,12pt) I Paper Size (letterpaper), and Orientation (landscape) I Page Format (twocolumn, oneside) I and others... Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References ndocumentclass I The only required line in a preamble I ndocumentclass[options]fdocument typeg Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 8 / 18 I Options I Font Size (10pt,11pt,12pt) I Paper Size (letterpaper), and Orientation (landscape) I Page Format (twocolumn, oneside) I and others... Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References ndocumentclass I The only required line in a preamble I ndocumentclass[options]fdocument typeg I document types: I article: Default. contains: parts, sections, subsections... I report: also contains chapters I book: like report, but treats even/odd pages differently I letter: for writing letters Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 8 / 18 Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References ndocumentclass I The only required line in a preamble I ndocumentclass[options]fdocument typeg I document types: I article: Default. contains: parts, sections, subsections... I report: also contains chapters I book: like report, but treats even/odd pages differently I letter: for writing letters I Options I Font Size (10pt,11pt,12pt) I Paper Size (letterpaper), and Orientation (landscape) I Page Format (twocolumn, oneside) I and others... Intro to LATEX & Overleaf 27 Sep 2018, (View source: Ricky Patterson https://www.overleaf.com/read/vshrryxvbhjw) 8 / 18 I CTAN (The Comprehensive TEX Archive Network) currently hosts over 5000 packages at http://www.ctan.org I You can write your own packages (or more likely edit/tweak an existing package to alter the behavior in order to meet your needs). They are simply lines of LATEX commands. Introduction Features Example Document A Basic LATEX Document Preamble Some LATEX Examples Body Installing and Using LATEX Typing Text References Packages I