Introduction to L A TEX

Similar documents
Math 235: Introduction to LaTeX

1 Obtaining LyX and L A TEX

Getting started with Latex

VERY VERY SHORT GUIDE TO LATEX

Pimp your thesis: a minimal introduction to L A T E X.

1. Welcome. (1) Hello. My name is Dr. Christopher Raridan (Dr. R). (3) In this tutorial I will introduce you to the amsart documentclass.

L A T E X Week 11, Other Document Classes

An Introduction to LATEX

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

Become a L A TEX Guru

Typing Mathematics. Darrin Doud

Mikkel Madsen

LaTeX A Tutorial. Mohsen Alimomeni, 2010

An Interactive Introduction to L A TEX

Introduction to L A TEX

An Interactive Introduction to L A TEX. Part 1: The Basics. John Lees-Miller. writel A TEX

Getting Started in L A TEX

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

Introduction to MCS 220 and L A TEX

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

NAVIGATING UNIX. Other useful commands, with more extensive documentation, are

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

Introduction to LATEX

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

Absolute L A TEX Beginner

Formatting with LaTeX

Learn how to [learn] LATEX

LaTeX Workshop. While you re waiting, please make an account at

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

L A TEX for psychological researchers

Getting ready for L A TEX. Alexis Dimitriadis. Version: March 28, 2013

L A TEX Primer. Randall R. Holmes. August 17, 2018

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

An introduction to L A TEX for students

WYSIWYG Systems. CSCM10 Research Methodology Lecture 4 (11/2/16): A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems

Introduction to LaTeX. Paul Fodor Stony Brook University

(Yet Another) Introduction to L A TEX 2ε (V3)

Getting Funky: Headers, Tables, Abstracts etc.

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

Introduction to L A TEX

CSCM10 Research Methodology A Taster of L A TEX

TUTORIAL 10: ARRAYS AND MATRICES. 1. Welcome. Hello. My name is Dr. Christopher Raridan (Dr. R). I want to welcome you to the L A TEX Tutorial Series.

Introduction to L A TEX

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

CSCM10 Research Methodology A Taster of L A TEX

WYSIWYG Systems. CSCM10 Research Methodology A Taster of L A TEX WYSIWYM. Advantages/Disadvantages of WYSIWYG Systems.

Outline. A Sneak Peek

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

Introduction to L A TEX

CSCE 222 Discrete Structures for Computing. LaTeX. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

Learning LaTeX: The Basics

Intro to LaTeX Workshop

Introduction to LATEX

What is L A T E X? Dan Yasaki. June 4, 2018 REU at Elon University. UNC Greensboro. Dan Yasaki What is LAT E X? 1 / 22

Very Short Introduction to LaTeX

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

An Introduction to L A TEX

Introduction to L A T E X

L A TEX and Basic Text Editing

A Very Brief Introduction to L A T E X MAT 3535


Learn LaTeX in 30 Minutes. A. LOTFI School of Science and Technology Nottingham Trent University

L A TEX. A computer system for typesetting documents

LaTeX. Information Literacy II EN(IL2) Course

Lecture 1. MA2730: Analysis I. Lecture slides for MA2730 Analysis I. Study and Assessment Components. MA L A TEX: topics for Lecture 1

Tools Course: Part 2

LaTeX installation guide

Introduction to L A TEX for MCS-236

Guide to L A TEX. Daniel M. Kane

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

Dec. 27 th, 2010 University of Isfahan

Helen Cameron. A Brief Overview of LATEX

Typesafe cross-referencing with typedref

Introduction to L A TEX

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

Document Preparation Using L A TEX

An Introduction to L A T E X

INSTALLING AND USING L A TEX

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

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

Helen Cameron. A Brief Overview of LATEX

Learning L A TEX. Patrick Lam

Introduction to Scientific Typesetting Lesson 5: The Structure of a Document

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

Guide to using L A TEX

Assessments for CS students:

LATEX Primer. 1 Introduction (Read Me)

Tools for Scientific Writing with LAT E X. Johan Carlson

Introduction to Scientific Typesetting Lesson 1: Getting Started

L A TEX for Psychological Researchers

Latex Tutorial. CIS400 Senior Design 9/5/2013

An Introduction to. Rado Ivanov CIS400 Senior Design Tutorial September 18, 2014

Introduction to L A TEX

Basics. Options. Commands

Square cells: an array cooking lesson

David Helmbold, October 2005, Revised October 2007

LaTeX is essentially a markup language

Introduction to Latex. A workshop by Dr. Ala Eshmawi

Basic L A TEX. what is LaTeX?

Not-So-Frequently Asked Questions for L A TEX

Transcription:

Introduction to L A TEX Helen Scharber 1 Introduction In this workshop, we ll be looking at how to create a basic document in L A TEXthat includes some math. There are a few important things to mention before we get underway: L A TEXis not WYSIWYG, or What You See Is What You Get, like Microsoft Word. You must write and compile code to create a document, usually multiple times as you are writing to see how it looks. This can be challenging at first, but it makes formatting and changing the appearance of your document a breeze. It s especially helpful for adding math symbols and equations to your documents. The fastest and easiest way to start using L A TEXis to use an online editor. In this workshop, we ll be using ShareLaTeX. Please navigate to https://www.sharelatex.com/ and either log in or register. Either one should take less than a minute. If you should wish to install L A TEXdirectly on your computer, instructions along with excellent L A TEXhelp in general can be found at https://www.reed.edu/cis/help/latex/ Google is your friend when it comes to L A TEX. I still look up commands constantly when writing a document and encourage you to do the same. Don t wait until you know everything to try writing a document. It s better to get started and look things up as you go along! 1

2 Document Structure 2.1 A Basic Document Now that you re logged in to ShareLaTeX, open a Blank Project and give it a name. ShareLaTeX should automatically populate your text editor with something like this: \documentclass{article} \usepackage[utf8]{inputenc} \title{my first project} \author{scharberh } \date{august 2017} \begin{document} \maketitle \section{introduction} \end{document} Update your title and author name, if you like. Try changing the date to \today. Everything above \begin{document} is called the Preamble it provides information to L A TEX, but only commands you give after \begin{document} will actually appear in your document. Now type something into your document under the section heading. Click the button that says Recompile. Tada! You have made your first document. 2.2 Changing the Document Heading If this style of document does not suit your needs, don t worry - L A TEXis very flexible. For instance, you may want to begin the solutions to your problem sets with no title, and instead use a line like this one: MATH 111 Problem Set 1 Helen Scharber, August 25, 2017 2

You can do this by simply omitting the commands to create the title and the section heading and adding code to create a specially-formatted line in your document: \begin{document} \noindent { {\bf{math 111 Problem Set 1}} \hfill Helen Scharber, \today } \bigskip Hello world! \end{document} Try copying these commands into your document and click Recompile again to see how your document looks now. 2.3 Sections and Subsections A nice feature of L A TEXis its ability to automatically number sections and subsections. Try adding some section and subsection headings back in to your document and see how it looks: \begin{document} \noindent { {\bf{math 111 Problem Set 1}} \hfill Helen Scharber, \today } \bigskip \section{a section} \subsection{a subsection} Hello world! \section{another section} \section*{no-number Section} 3

\end{document} The asterisk tells us not to number a section. The same rule applies for equations and other numbered environments. 3 Including Math There are several ways to include math in L A TEX. 3.1 Inline Math One method of including math is in-line, by using $ symbols around your math. For example, to create the line: Consider the equation x 2 + y = 1 I would type the following: Consider the equation $x^{2}+y=1$. This allows me to include small math objects in a paragraph of text. Try adding an inline expression or equation to your document. 3.2 Equation Environment You may also use the equation environment. To create the following: I would use these commands: \begin{equation} x + 1 = y \end{equation} x + 1 = y (1) Notice that L A TEXautomatically centers your equation and adds a reference number. We can add a label so that we can refer to that equation later: 4

\begin{equation} \label{eu_eqn} e^{\pi i} + 1 = 0 \end{equation} Equation \ref{eu_eqn} is known as Euler s equation. The code above should produce the following output: Equation 2 is known as Euler s equation. e πi + 1 = 0 (2) 3.3 Align Environment Perhaps you want to line up equations on one element, like an equals sign. To create the following, I would use these commands: \begin{align*} y&=3.1415 \\ x+y&=21.10 \\ x+(x+1)&=5791.1\\ x&=0.05 \end{align*} y = 3.1415 x + y = 21.10 x + (x + 1) = 5791.1 x = 0.05 If you try this now, you might get an error message. The align environment is part of a package called amsmath. If it s not already there, scroll up to the top of your document and add \usepackage{amsmath} to the preamble. Can you figure out how to align on the decimal point instead? 5

y = 3.1415 x + y = 21.10 x + (x + 1) = 5791.1 x = 0.05 4 Final Notes When you are satisfied with the preview of your document in ShareLaTeX, you can download the PDF to your computer using the icon next to the Recompile button. This is only the very beginning of what you can do with L A TEX. The Reed LaTeX help page has great tutorials on making lists and tables, adding graphics, managing paper references using BibTeX, and LaTeXing your thesis. Another great way to learn more is to play with the templates available in ShareLaTeX. Practice Try creating the following math expression in a document, covering up the code below: (x + 1 y )m (x 1 y )n (y + 1 x )m (y 1 = ( xy+1 ) m ( xy 1 ) n y y x )n ( xy+1 x )m ( xy 1 x )n Here s the code: \[ \frac{(x+\frac{1}{y})^{m}\cdot (x-\frac{1}{y})^{n}}{(y+\frac{1}{x})^{m}\cdot (y-\frac{1}{x})^{n}} = \frac{(\frac{xy+1}{y})^{m}\cdot (\frac{xy-1}{y})^{n}} {(\frac{xy+1}{x})^{m}\cdot (\frac{xy-1}{x})^{n}} \] 6