Using L A TEX at the College of William & Mary

Similar documents
Preparing Your Thesis with Microsoft Word: How to use the Rensselaer Polytechnic Institute Template Files. Contents

Contents 1. Introduction... 2

A Tutorial on Creating Presentations Using Beamer

Dragan Jukić. Department of Mathematics, University of Osijek, Trg Ljudevita Gaja 6, HR Osijek, Croatia. Received ; accepted??

Fun with Beamer. ...and HAPPY BIRTHDAY SHAWN! Tina Li, Thomas Graul, and Niranjan Balachandar. June 29, 2016

Presentations Using L A TEX

L A TEX in a Nutshell

How To Use L A T Ex On Pc Or Macbook Or Macintosh (Windows) With A L At Ex (Windows 3) On A Pc Or Ipo (Windows 2) With An Ipo Computer (Windows 4)

The rcs Package. Joachim Schrod. August 2, 1995 (Revision 2.10 of rcs.sty)

The beamer Class: a L A TEX Presentation System

L A T E X Thesis Class for University of Colorado

Chapter 19: XML. Working with XML. About XML

Creating tables of contents and figures in Word 2013

Dissertation Template for Princeton. University

Jadu Content Management Systems Web Publishing Guide. Table of Contents (click on chapter titles to navigate to a specific chapter)

Microsoft Word 2010 Prepared by Computing Services at the Eastman School of Music July 2010

Tips on Beamer, TikZ and BibTeX

Beginning L A TEX. Dan Parker and David Schwein. Spring 2015

Managing your Joomla! 3 Content Management System (CMS) Website Websites For Small Business

Section 1.5 Exponents, Square Roots, and the Order of Operations

Integrated Invoicing and Debt Management System for Mac OS X

Notes on L A TEX. Jim Howie. October 14, 2013

paragraph(s). The bottom mark is for all following lines in that paragraph. The rectangle below the marks moves both marks at the same time.

HOW TO WRITE A THESIS IN WORD?

SPIE proceedings manuscript sample (U.S. letter size)

We will learn the Python programming language. Why? Because it is easy to learn and many people write programs in Python so we can share.

Microsoft Access 2010 Overview of Basics

L A TEX Presentations

Quick Guide. Passports in Microsoft PowerPoint. Getting Started with PowerPoint. Locating the PowerPoint Folder (PC) Locating PowerPoint (Mac)

Smart Connection 9 Element Labels

How to Make the Most of Excel Spreadsheets

Determine If An Equation Represents a Function

TLMC WORKSHOP: THESIS FORMATTING IN WORD 2010

Create a survey using Google Forms

Using the ETDR Word Template Masters Theses and Reports

Multifactor Authentication and Session Support in OpenVPN

NLP Programming Tutorial 0 - Programming Basics

How to create and personalize a PDF portfolio

Writing and presenting degree projects in Mathematical statistics

Social Work Portfolio Help Guide. Table of Contents. (click anything from the list below to skip to the correct information)

Working with the Ektron Content Management System

Adobe Dreamweaver CC 14 Tutorial

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

TU e. Advanced Algorithms: experimentation project. The problem: load balancing with bounded look-ahead. Input: integer m 2: number of machines

Drupal Training Guide

Version Control with. Ben Morgan

Code::Blocks Student Manual

Using the Universal Library

If A is divided by B the result is 2/3. If B is divided by C the result is 4/7. What is the result if A is divided by C?

Direct Translation is the process of translating English words and phrases into numbers, mathematical symbols, expressions, and equations.

Manual. OIRE Escuela de Profesiones de la Salud. Power Point 2007

EndNote Cite While You Write FAQs

Master Module SNET2 Seminar & Project Summer Term 2010

How to Use Google Docs

Connect. Engage. Learn. USER MANUAL

MATLAB Functions. function [Out_1,Out_2,,Out_N] = function_name(in_1,in_2,,in_m)

A short manual for TEXworks

Integrated Accounting System for Mac OS X

Section 4.1 Rules of Exponents

2. Basic operations

1 Using CWEB with Microsoft Visual C++ CWEB INTRODUCTION 1

Cloud Backup Express

Department of Mathematics and Computer Science Eastern Illinois University 600 Lincoln Avenue Charleston, IL

STYLE GUIDE FOR TECHNICAL REPORT WRITING

Web Conferencing Version 8.3 Troubleshooting Guide

Beamer Class well nice

Software Tools 7 ( ; / $ 7 ( ; :<6,:<*RPJHYLQJHQ 9HUZHUNLQJYDQ/D7H; :<6,:<*YRRUEHHOG. College 9 & 10 - LaTeX 1

JOOMLA 2.5 MANUAL WEBSITEDESIGN.CO.ZA

Intellect Platform - Tables and Templates Basic Document Management System - A101

moresize: More font sizes with L A TEX

What Do You Think? for Instructors

Including Graphics in L A TEX

Generating lesson plans with. Adobe Acrobat

No Solution Equations Let s look at the following equation: 2 +3=2 +7

Mastering the JangoMail EditLive HTML Editor

Writing Thesis Defense Papers

Digital System Design Prof. D Roychoudhry Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Getting Started with WebSite Tonight

Intermediate PowerPoint

Once you have obtained a username and password you must open one of the compatible web browsers and go to the following address to begin:

Why have we chosen to build our main websites in this fashion?

Search help. More on Office.com: images templates

Formatting with FrameMaker + SGML s EDD

Using the Thesis and Dissertation Templates

ebooks: From Adobe InDesign to the Kindle Store

Web Ambassador Training on the CMS

L A TEX Tips and Tricks

Pre-Algebra Lecture 6

If you know exactly how you want your business forms to look and don t mind

Create a GAME PERFORMANCE Portfolio with Microsoft Word

Working with Tables: How to use tables in OpenOffice.org Writer

chemscheme Support for chemical schemes

Shopping Cart Manual. Written by Shawn Xavier Mendoza

Chapter 14: Links. Types of Links. 1 Chapter 14: Links

In-Depth Guide Advanced Spreadsheet Techniques

Basic Website Creation. General Information about Websites

State of Illinois Web Content Management (WCM) Guide For SharePoint 2010 Content Editors. 11/6/2014 State of Illinois Bill Seagle

UNIVERSITY OF CALGARY Information Technologies WEBFORMS DRUPAL 7 WEB CONTENT MANAGEMENT

Google Drive: Access and organize your files

PEDAGOGIC TECHNIQUES: USING COLLABORATIVE WRITING TECHNOLOGY TO TEACH CONTRACT DRAFTING INTRODUCTION

Transcription:

Using L A TEX at the College of William & Mary Because Word or Google Docs just doesn t cut it anymore W. Deconinck 1 V. Gray 2 1 Assistant Professor Department of Physics College of William & Mary 2 Graduate Student Department of Physics College of William & Mary L A TEX Tutorial, July 10, 2015

Outline What is L A TEX? An Overview L A TEX Editors Introduction Your First L A TEX Documents An Article in L A TEX Your CV in L A TEX A Template for a CV Publications in Physics Journals RevTeX L A TEX Beamer for Presentations Your First Beamer Presentation Blocks to Structure Frames

What is L A TEX An Overview World s best text editor! Easy layout Templates already available for Abstracts Reports Letters... Easy integration of: Math Tables Pictures... A way to make your life easier.

What is L A TEX L A TEX Editors Programs to edit L A TEX documents OS Linux Mac Windows Internet Program Kile TexShop MiKTeX www.sharelatex.com

ShareLaTeX Getting started with ShareLaTeX Go to http://sharelatex.com. Register for a new account, or log in if you have an account already. Create new blank project. ShareLaTeX will still prepopulate the files with a basic LaTeX structure. For the purpose of this tutorial we will assume that the file is completely empty, so delete whatever is there.

1: Your First L A TEX Document File alice.tex \documentclass{article} % preamble where packages are loaded \usepackage{color} % actual document starts here \begin{document} Well, in OUR country, said Alice, still panting a little, you d generally get to somewhere else -- if you ran very fast for a long time, as we ve been doing. A slow sort of country! said the Queen. Now, HERE, you see, it takes all the running YOU can do, to keep in the same place. If you want to get somewhere else, you must run at least twice as fast as that! \end{document}

1: Your First L A TEX Document File alice.pdf (approximately) Well, in OUR country, said Alice, still panting a little, you d generally get to somewhere else if you ran very fast for a long time, as we ve been doing. A slow sort of country! said the Queen. Now, HERE, you see, it takes all the running YOU can do, to keep in the same place. If you want to get somewhere else, you must run at least twice as fast as that! Copy the previous code into a tex file, compile it with your favorite L A TEX distribution, and inspect the resulting pdf file. You may need to remove all spaces between the backslash characters and the commands.

2: Errors, Warnings, and Bad Boxes Errors L A TEX can be quite fussy about the syntax (as all programming languages tend to be). It will return a line that says, for example, l.248 LaTeX Error: Environment itemize undefined. Usually these errors will give you a clear indication of where to look. You may also get errors like File ended while scanning for end{itemize}. It is not always immediately clear where you forgot the end{itemize} but the output pdf file will often help Warnings Common warnings are font substitutions, changes in the symbols used in the pdf metadata fields, etc. Overfull and Underfull Boxes The remaining category of messages are complaints about overfull and underfull hboxes and vboxes... This happens when the text cannot be split at the end of a line and crosses into the margin or falls off the bottom of the page (such as this paragraph). In that case it is easiest to rewrite the sentence slightly.

2: Errors, Warnings, and Bad Boxes Error messages are not something to be afraid of. Instead they are supposed to be helpful (at least, as helpful as the computer can be, while figuring out what you might have meant). Experiment with introducing errors in the file alice.tex: Change the document class to something non-existent. Change the package that is include to something non-existent. Remove the \end{document} line. It is not easy to introduce overfull or underfull hboxes intentionally, but using words like supercalifragilisticexpialidocious may get you there... Pay attention to what the error says is happening and look at the output pdf file (if any is generated).

3: Title, Author, Date Maketitle \documentclass{article} \title{the Three Laws of Robotics} \author{isaac Asimov} \date{\today} \begin{document} \maketitle \end{document} Create a new file (that could be the start of your final report) with the document class article. Create a title page with the title of your research project, your name, and today s date.

4: Title, Author, Date, Affiliation Packages Not everything is implemented in the default L A TEX compilation; some functionality needs to be explicitly included through packages. There are literally thousands of these packages online. You include them by using: \usepackage[packageoptions]{packagename} Affiliation in the title One useful package (but hardly necessary, or even the only one that implements this) is authblk which allows you to specify your institution in the title: \usepackage{authblk} \author{euclid} \affil{philosophers School of Ancient Greece} \begin{document} \maketitle \end{document}

4: Title, Author, Date, Affiliation Add your affiliation to your document. Experiment with the packages fullpage (to make better use of the page real estate) and lineno (to add line numbers to your document). You may need to add a bit more text before you notice any differences. You will need to find the user manual of lineno on the Comprehensive TeX Archive Network (CTAN) that will tell you how to use it.

5: Abstract Abstract The abstract of an article summarizes the main findings. It is self-consistent, and in level of details falls between the title (very little detail) and the article itself (a lot of detail). It comes after the title in your L A TEX file. You can include an abstract with the environment abstract : \begin{document} \maketitle \begin{abstract} I did this and that, and I found that it is zero. \end{abstract} \end{document} Add the abstract you submitted for the short talks. If you use any underscores or other special characters, you may need to replace them with L A TEX-friendly code.

6: Document Structure Now it s time to start writing the actual article! Sections, subsections, subsubsections,... In nearly all L A TEX documents the structure will be defined by the \section command and its sub cousins: \subsection, \subsubsection,... Add the following sections to your article: Introduction, Motivation, Methodology, Measurements, and Conclusion. Although you can change the names later, these are the logical sections in any article. Add subsections that are relevant to your research project. Aim for two to five subsections per section. What does \tableofcontents do?

7: Math Mode Inline math L A TEX is most useful for documents with many mathematical symbols, such as physics articles. Mathematical expressions should be placed between dollar signs: Pythagoras found that $a^2 = b^2 + c^2$, or that $a = \sqrt{b^2 + c^2}$. would translate in Pythagoras found that a 2 = b 2 + c 2, or that a = b 2 + c 2. Any variable or physical quantity will be set in math mode. For example, the length L (typeset as $L$). Units are in normal font. Change any physical quantities in your abstract to math mode. Typeset: p p = q i 1

7: Math Mode Equations Another way of typesetting mathematics is the equation environment. This will give each equations its own line and number: Pythagoras found that \begin{equation} a^2 = b^2 + c^2. \end{equation} translates in Pythagoras found that a 2 = b 2 + c 2. (1) If we do not want equation numbers, we can just use the variant equation* instead.

8: Images includegraphics In L A TEX the images are always floating, i.e. they are not part of the text itself but will be placed where they fit best in the layout of the document. In articles and reports you should always give your figures a descriptive caption. \begin{figure}[htbp] \begin{center} \includegraphics[width=10cm]{image} \end{center} \caption[image]{this is an interesting image.} \end{figure} You can include jpg and png images this way. Include an image into your document (you will need to upload it to ShareLaTeX first). Experiment with the order of the placement option htbp, which stands for here/top/bottom/page.

9: Labels and References Labels In your summary and conclusion section you write the following sentence: As explained in section 3 on Methodology we used... Later you decide to add another introductory section Motivation and section 3 becomes section 4. We can add a label section:methodology to the section and just refer to that label instead: \section{methodology} \label{section:methodology} As discussed in section \ref{section:methodology} we used...

9: Labels and References Create a label and reference to the image you included in your document earlier. Experiment with \listoffigures and the optional argument (in square brackets) of \caption.

10: Your CV in L A TEX Because L A TEX takes care of the layout, you can focus on the content only! Open the project with the sample CV. https://www.sharelatex.com/project/ 51c0894b347886432b09babd?r=38c1479e&rs=ps&rm=d Clone into a new project (under the Settings menu). Modify the name, and remove all education and experience entries that do not apply to you. Add the correct education sections (you can add the rest later).

11: Publications in Physics Journals Nearly all important physics journals will require submissions in the revtex4 document class. Create a new project based on the journal template American Institute of Physics AIP. Modify the title, name, and affiliation. The only thing left now is to write the paper...

12: Your First Beamer Presentation Preamble \documentclass{beamer} \usetheme{pittsburgh} \title{there is no largest prime number.} \author{euclid} Document \begin{document} % title slide with title and author \maketitle % first actual slide \begin{frame}{this is the frame title} There is no largest prime number. If there were a largest prime number, then we can construct an even larger one. \end{frame} \end{document}

12: Your First Beamer Presentation Create a blank L A TEX beamer presentation from scratch with a title slide, and a slide that summarizes your own research project.

13: Blocks to Structure Frames Block Title You can also highlight sections of your presentation in a block, with it s own title. \begin{block}{block Title} You can also highlight sections of your presentation \end{block} Create a slide with two blocks. Include an image in a slide.