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

Similar documents
Introduction to Scientific Typesetting Lesson 1: Getting Started

L A TEX for psychological researchers

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

Browsing the World Wide Web with Firefox

TeXnicCenter v1 Beta Frank Van Puyvlde ICT for Research K.U.Leuven

1 Obtaining LyX and L A TEX

sbthesis Documentation

LaTeX installation guide

Word: Print Address Labels Using Mail Merge

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

Burning CDs in Windows XP

Math 395 Homework #1 Due Wednesday, April 12

Introduction to L A TEX

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

USING DRUPAL. Hampshire College Website Editors Guide

Absolute L A TEX Beginner

1 Installation (briefly)

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.

Mikkel Madsen

Getting started with Latex

Introduction to L A TEX

CSCM10 Research Methodology A Taster of L A TEX

DOWNLOAD PDF EXCEL MACRO TO PRINT WORKSHEET TO

Staff Directory & Online Classroom: A Picture Book

Site Owners: Cascade Basics. May 2017

Introduction to typesetting with L A TEX

LATEX. Leslie Lamport. Digital Equipment Corporation. Illustrations by Duane Bibby. v ADDISON-WESLEY

This chapter is intended to take you through the basic steps of using the Visual Basic

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

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

Setting up a ColdFusion Workstation

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

NCMail: Microsoft Outlook User s Guide

Using Microsoft Excel

Organising . page 1 of 8. bbc.co.uk/webwise/accredited-courses/level-one/using- /lessons/your- s/organising-

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

Summer Assignment for AP Computer Science. Room 302

Citation guide. Carleton College L A TEX workshop. You don t have to keep track of what sources you cite in your document.

Finding Articles: Accessing and Using PsycInfo and Web of Science Created by Margaret L. Kern, University of Pennsylvania

GOOGLE APPS. If you have difficulty using this program, please contact IT Personnel by phone at

NCMail: Microsoft Outlook User s Guide

Homework # (Latex Handout) by Laura Parkinson

L A TEX- Advanced Topics

GNU Emacs as a Front End to L A TEX

Data Structures and Algorithms Dr. Naveen Garg Department of Computer Science and Engineering Indian Institute of Technology, Delhi.

Google Drive: Access and organize your files

Automating Digital Downloads

Tlaunch, the T E X Live Launcher

LaTeX A Tutorial. Mohsen Alimomeni, 2010

Module 1: Introduction RStudio

Introduction to L A TEX for MCS-236

Effective Programming Practices for Economists

Chapter 1 is where you get your feet wet. Don t be shy. Walk right to the

CSCU9B2 Practical 1: Introduction to HTML 5

XP: Backup Your Important Files for Safety

Introduction to Git and GitHub for Writers Workbook February 23, 2019 Peter Gruenbaum

Latex Tutorial. CIS400 Senior Design 9/5/2013

CS125 : Introduction to Computer Science. Lecture Notes #4 Type Checking, Input/Output, and Programming Style

Clean & Speed Up Windows with AWO

These are notes for the third lecture; if statements and loops.

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

EDITING AN EXISTING REPORT

Arduino IDE Friday, 26 October 2018

ASCII Art. Introduction: Python

Excel Basics: Working with Spreadsheets

Learning L A TEX. Patrick Lam

Student Success Guide

Homework # You ll want to use some LaTeX editor to edit and compile your.tex files

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

Document Preparation Using L A TEX

You will always have access to the training area if you want to experiment or repeat this tutorial.

Week - 01 Lecture - 04 Downloading and installing Python

Beginners Guide to StereoPhoto Maker - Fujifilm W1 Version by David Starkman

Your . A setup guide. Last updated March 7, Kingsford Avenue, Glasgow G44 3EU

The KBibTeX Handbook. Yuri Chornoivan

Office 365 for Business Basics

Touring the Mac. S e s s i o n 3 : U S E A N APPLICATION

Guide to using L A TEX

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

Animations involving numbers

Math 291: Lecture 2. Justin A James. Minnesota State University Moorhead web.mnstate.edu/jamesju/

In the fourth unit you will learn how to upload and add images and PDF files.

Introduction to the Emacs Editor

One of the fundamental kinds of websites that SharePoint 2010 allows

Navigating and Managing Files and Folders in Windows XP

Creating a new form with check boxes, drop-down list boxes, and text box fill-ins. Customizing each of the three form fields.

How To Use My Alternative High

1. Introduction EE108A. Lab 1: Combinational Logic: Extension of the Tic Tac Toe Game

Using Images in FF&EZ within a Citrix Environment

One of the hardest things you have to do is to keep track of three kinds of commands when writing and running computer programs. Those commands are:

Math Dr. Miller - Constructing in Sketchpad (tm) - Due via by Friday, Mar. 18, 2016

Writing. October 3, 2006

Excellent support for mathematical formatting. Automatically downloads/installs missing components as needed Updates somewhat frequently

How Users can Install L A TEX packages without Help from System Administrators

GLY Geostatistics Fall Lecture 2 Introduction to the Basics of MATLAB. Command Window & Environment

Getting Started with Word

Interface. 2. Interface Adobe InDesign CS2 H O T

Formatting with LaTeX

Getting Started With L A TEX

Transcription:

Getting ready for L A TEX Alexis Dimitriadis Version: March 28, 2013 LaTeX is a great system, but it takes some work to learn. Unfortunately, it also takes some work to set up the necessary software. This is my outline of how to do it. This is unlikely to be a self-sufficient reference. Consider it a checklist: It mostly tells you what you need to google, read up on, or ask for help with at each step. 1 Overview 1. Download and install the necessary software: A TEX distribution, 1 a suitable editor, and if you are on Windows, a more-suitable PDF viewer as well. 2. Configure your new tools to work well together. Set up a place to put your own packages, so that TeX can find them. 3. Follow a simple tutorial to learn the basics of using LaTeX. 4. Find out what packages you need. Include them, and no others for now, in your document header. If you re about to write a dissertation in LaTeX, you should also do the following: 5. Set up a bibliography database (.bib) to use with BibTeX. It allows you to keep all your references in one centralized file. 6. Download and set up the lotdiss.cls style for LOT dissertations. 7. Organize your draft into chapters, add your content and settings, and remove any settings (e.g. document margins) that conflict with the work of lotdiss. Currently, this document only covers the set-up steps: Getting and configuring the necessary software. I plan to gradually extend it with more material. 2 Getting the software There are several distributions of TEX, LATEX and associated programs. When googling for them, take care that you get them from a reputable website (generally the program s own download page). Some are also offered on other websites, which bundle them with their own software/adware which they install along with what you actually want. 1. Get TEX. For Windows, MikTeX is a favorite but TeX Live is also popular. Find one and download the installation. I m familiar with MikTeX, so that would be my first choice. To install MikTeX, you first download an installer (a very small program). When you run it it will download all the necessary files, which takes a while, but it will not install TEX. To really install it, you need to start the installer a second time, and it will detect the necessary files and offer to install them. 1 TEX is an advanced system for formatting text, created by Donald Knuth. L A TEX is the most popular suite of high-level commands for TEX. I try to keep the names straight, but you won t be missing much if you just read LaTeX everywhere. 1

2. Get a PDF viewer (Windows only) Running a.tex file through LaTeX creates a PDF document that you can open with any PDF viewer. 2 Unfortunately, Acrobat is a very poor fit for when you are repeatedly editing and reformatting your document. Sumatra PDF is much better suited to use with LaTeX, so download it and install it. There s no need to make it your default PDF viewer you can continue to use Acrobat everywhere else. On Macs, Preview will work fine with LaTeX PDFs: You don t need to download another viewer. 3. Get an editor. A TEX document is a plain text file containing a description of your formatted document. To create the document you could use any text editor (even Word, though you d be crazy to do that), but really you should use an editor that can automatically run TEX to format your document at the press of a button. For Windows, I recommend TeXnicCenter, which is simple and functional and works reasonably well. Install MikTeX and Sumatra PDF first, so that TeXnicCenter can find them during its configuration step. For Macs, Texshop seems to be the popular editor choice. There are plenty of other choices. You can google around for recommendations, but stay away from emacs, vim and Lyx (unless you are already using one of them, of course). They re all great editors in one way or another, but not worth learning just to use LaTeX. That s it for the software download. Down the line you ll probably need to download some packages (extensions) that are not already present in your TeX distribution, but other wise you re good to go. 3 Setting up TeXCenter and SumatraPDF Congratulations, you ve downloaded the software. If you re on Windows, it s a good idea to make some changes to the default set-up. Mac users only need Part 2 (a place to install packages). 3.1 Linking programs to find each other 1. Run TeXCenter from the Run menu. The first time you ll run it, you ll see a Wizard that will set it up to run LaTeX for you. (You can ignore the Hints window). 2. The Wizard will ask you to find the folder containing the TeX programs. They re probably in the folder C:\Program Files \MikTeX\miktex\bin. (Change the beginning of the path if necessary). Click on the [...] button to browse. 3. Accept the defaults for the rest of the Wizard. We ll modify some in the next step. You don t need to provide a PostScript program. 4. If everything goes well, Sumatra PDF will be detected and set up as the editor s PDF viewer. If not, you ll need to configure TeXCenter to use SumatraPDF instead of Acrobat. (You re not giving up Acrobat: your PDF files will continue to open with Acrobat when you click on them.) Let the Wizard finish. Once TeXCenter is running, go to the menu option Build / Define Output Profiles. Choose LaTeX => PDF, and change the settings as follows. 2 TeX and LaTeX can also produce output in the TeX-specific DVI format, for which there are separate viewers (included in the TeX distribution). Never mind that for now. 2

On the (La)TeX tab: In the beginning of the field Commandline arguments to pass to the compiler, add the option -synctex=-1 (that s a number, -1). There should be no spaces inside this option, but use a space to separate it from the other options. On the Viewer tab, apply the following settings: Path of executable: C:\Program Files\SumatraPDF\SumatraPDF.exe -reuse-instance View project output: Select DDE Command Command: [Open("%Bm.pdf",0,1,0)] Server: SUMATRA Topic control Forward Search: Command: Server: Topic Close document before running (La)TeX Select DDE Command [ForwardSearch("%bm.pdf","%Wc",%l,0,0,1)] (That s a letter ell in %l, not a digit) SUMATRA control Select do not close 3.2 A place to install packages LaTeX comes with a huge number of extensions, called packages. Many of these came with your distribution, others will be downloaded automatically, but some you ll need to install yourself. Create a place to keep them, as follows: 1. On a Mac, the location should be the folder Library/texmf in your home directory. LaTeX will look there automatically and you don t need to do anything else. 2. On Windows, choose a reasonable place, somewhere not in the folder where you put your day to day documents. If you can t think of one, make a folder Library/tex-styles. 3. In your new extensions folder, create the following subfolders: tex, bibtex, bibtex/bst, and bibtex/bib. Packages you install yourself will need to go in one of these, as appropriate. 4. If you re on Windows, you need to tell MikTeX where your extensions folder is. Open the MikTeX Options program (Windows Start menu : MikTeX : Maintenance : Settings), go to the Roots tab, and use Add to add the path to your extensions folder. Before closing MikTeX Options, go back to the General tab. Because there are so many files, LaTeX keeps an index of what is where. Whenever you add some manually, you will need to tell it to refresh the index. You do that with the button Refresh FNDB (File Name Data Base). 3.3 Automatic package downloading One of the nicest features of MikTeX is that it can download packages for you on the fly. Enable it from the General tab of the MikTeX Options program. (The option Ask me first might not work on some systems. If that happens, change it to Yes ). 3

3.4 Making some links This step is optional, but I highly recommend it: TeXCenter allows you to add some custom links under the Tools menu option. Doing so now can save you a lot of trouble later. 1. In the Tools menu, go to Customize and choose the Tools tab. Find the New button. 2. Make an entry called MikTeX Options. Set it to run the command mo.exe 3. Make an entry called My LaTeX styles. Set it to run explorer.exe. In the Arguments field, enter the path to the extensions folder you created earlier. If you re on a Mac, make an alias to your extensions folder and put it on your desktop (or in any other place you will not forget). 4 Ready to go 1. Figure out where you ll save your first LaTeX documents. They re your writings, so they belong together with Word documents and the like. Create a new folder to experiment in. 2. Make a minimal LaTeX document and save it in your new folder. The file name must end in.tex (do this even if you use a Mac). \documentclass{article} \begin{document} Hello, world!!!!!! \end{document} 3. TeXCenter has a drop-down box showing the selected build profile. Switch it to the profile called LaTeX => PDF. Find and press the Build button and then the View button, or the Buildand-View button. 4. If everything went well, you ll soon see your document in the PDF viewer. LaTeX will need to do a bunch of set-up the first time you do this, so expect it to take a few minutes; it ll be very fast the second time. 5. Double-clicking on some text in the PDF viewer should switch you to your editor and bring up the same text. (Mac users: hold down the Control key as you click). Finally done! You can now start learning what you can put in your document. 5 Learning LaTeX Find a good online tutorial and study the parts that are relevant. I recommend The Not So Short Introduction to LaTeX 2e, by Tobias Oetiker. Google it. Looking at LaTeX documents from friends and colleagues is an easy way to see how to do certain linguistic things in LaTeX. But do read through a tutorial as well, and don t use the sample document as the starting point for your text (see the warning in the next section). This section will probably be extended in the future. 4

6 Selecting packages If you re just starting with LaTeX, you probably have a well-meaning friend who s eager to share his or her LaTeX preamble (document header), full of packages and definitions that you might possibly use some day. I recommend that you save such samples for future reference, but keep them out of your documents: Extensive customizations you don t understand are far more likely to cause you problems than to help you, in the short and long term. Keep your preamble as simple as possible, and don t add anything unless you know what it s there for. Keep in mind that there are extension packages for a huge variety of uses. If you need to do something, google it. Take a look at my LaTeX webpages (the really old one and the new one) for a selection of useful packages. You re most likely to need: 1. A numbered example environment; gb4e.sty or linguex.sty are popular and easy to use. Both come with support for word-aligned sentence glosses. 2. bibliography managment (BibTeX), with the Author (Year) citation style (natbib.sty); 3. including images (graphics.sty); 4. syntax trees (qtree.sty). All of the above are available as standard extension packages. MikTeX will download and install them automatically if they re not there already, while TeX Live should include them already. 5. If you re using LaTeX for your dissertation, get set up with lotdiss.cls. You ll need to download it from my latex page, and install it in the package folder you created in section 3.2. (And don t forget to rebuild FNDB afterwards.) 6. If you ve got a lot of phonetic symbols or text from more than one non- Latin alphabet, read up on XeTeX. It is included in your TeX distribution nothing to download. Here are some other things that there are special LaTeX facilities for (mostly in the form of packages): table of contents, list of figures, index, etc.; slides for presentations; OT tableaux; Discourse Representation Structures; Attribute-Value Matrices; IPA symbols; mathematical and logical notation; movement arrows and similar mark-up; colored text or backgrounds; custom-made commands. 5