NCSU Linguistics Eric Wilbanks & Jeff Mielke. November 21, An open-source typesetting language used for document mark-up

Similar documents
LaTeX A Tutorial. Mohsen Alimomeni, 2010

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

Guide to using L A TEX

An introduction to L A TEX for students

L A TEX for Psychological Researchers

Meeting One. Aaron Ecay. February 2, 2011

LAT E X week 2: Basics for Writing a Document

Introduction to L A T E X

Researcher Development Unit: Introduction to Latex

LATEX TYPESETTING SYSTEM. CAAM 519, CHAPTER 3

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

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

L A TEX for Psychological Researchers

Learning L A TEX. Patrick Lam

LaTeX. Information Literacy II EN(IL2) Course

Introduction to Latex. A workshop by Dr. Ala Eshmawi

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

Math 235: Introduction to LaTeX

Learning LaTeX: The Basics

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

Useful L A TEX Commands

Lecture 1: Short summary of LaTeX basics

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

Basic L A TEX. what is LaTeX?

An Introduction to L A T E X

An Interactive Introduction to L A TEX

L A TEX From The Ground Up

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

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

An Introduction to LATEX

The Name of the Game. An Introduction to LATEX. Why L A TEX? The Name of the Game

Introduction to L A TEX

Workshop on LATEX 2ε. Asst. Prof. Dr. Kemal Bagzibagli Department of Economics. 20 May 2015

Introduction to L A TEX

Document Preparation Word Processors

Latex Tutorial. CIS400 Senior Design 9/5/2013

Introduction to LAT E X

An Introduction to LATEX

An Introduction to L A TEX

Math 291: Lecture 2. Presented by Prof. James for Prof. Fagerstrom

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

Introduction to L A TEX

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

COMS 6100 Class note

Student Learning Service: Introduction to Latex

Introduzione a LaTex. Fabrizio Messina

1 Different Document Classes

Introduction to L A TEX beamer

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

Getting Started in L A TEX

Introduction to LATEX

Effective Programming Practices for Economists

An Introduction to. Andrew G. West, Jian Chang CIS400 Senior Design Tutorial September 15, 2009

LATEX Workshop. Yi Liu Chen SUNY Geneseo PRISM Math Club. February 6, Wordmark Reversed Geneseo Wordmark Style Guide 4

Homework # (Latex Handout) by Laura Parkinson

Mikkel Madsen

LaTeX is essentially a markup language

Formatting with LaTeX

A Brief Introduction to L A TEX

David Helmbold, October 2005, Revised October 2007

PRISM Introduction to L A TEX

The basics of LaTeX. Cédric Buron. April 25, 2016

Introduction to L A TEX

Course A, Part 1 Basic Formatting in L A TEX

Outline. A Sneak Peek

simpletex Documentation

VERY VERY SHORT GUIDE TO LATEX

Introduction to L A TEX for MCS-236

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

Introduction to LAT E X

L A TEX - First Class

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

L A T E X Workshop. Bijulal D & Anu Thomas Industrial Engineering and Operations Research Indian Institute of Technology

An introduction. C.D. Emmery & M.M. van Zaanen. October 22, Tilburg University

Helen Cameron. A Brief Overview of LATEX

L A TEX. COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. LaTeX. Development. Why?

Introduction to L A TEX

OER Publishing with LaTeX and GitHub

L A TEX. The Logo. Introduction to L A TEX. Overview. Primary Benefits. Kinds of Documents. Bill Slough and Andrew Mertz

Research Method and Report Writing Lecture 4: An Introduction to L A TEX

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

A L A TEX-Package for IEEE PES Transactions

Helen Cameron. A Brief Overview of LATEX

L A TEX Is Your Friend OR ENEMY?????????.

Dec. 27 th, 2010 University of Isfahan

Latex Manually Set Font Size For Tables

Typing Mathematics. Darrin Doud

Introduction to L A TEX

CLV Manual. How to Use CLV L A TEX Style. Odié N. Gementera SPI Publisher Services

LYX with Beamer and Sweave

A Short Introduction to L A TEX

Introduction to L A TEX

Workshop: A Simple Introduction to L A TEX

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

L A TEX and Linguistics

Introduction to L A TEX

L A TEX Workshop. Don Brower

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

Wiki markup is a core feature for Topic pages, tightly integrating all the other parts of Trac into a flexible and powerful whole.

LearningLatex. % This file walks you through some basic things with LaTex % Thanks to Patrick Lam and Maya Sen for letting me borrow their materials

Transcription:

L A TEX Workshop NCSU Linguistics Eric Wilbanks & Jeff Mielke November 21, 2014 1 What is L A TEX? An open-source typesetting language used for document mark-up Used in conjunction with various TEXEditors (the lab computers have TeXStudio) L A TEX offers control over all aspects of typesetting, consistency of output, and is extremely well-documented. It can be used for articles, papers, letters, presentations, tables/graphs, and more! Templates allow for convenient start-up of documents with all your desired settings already declared. 2 Anatomy of a.tex file 2.1 Syntax & Conventions Commands: begin with the backslash \ (ex. \maketitle or \centering); Many commands take obligatory arguments between braces (ex. \documentclass{article}), while other also take additional optional arguments in square brackets (ex. \documentclass[11pt]{article}) Special Characters: # $ % ˆ & { } \. The symbol % is used for commenting out (like # in Praat). These characters must be escaped to be used as regular characters. Any white space is treated as a single space; more than one line is treated as one line. Useful for spacing out your code! 1

Use \\ to start a new line or \\~\\ to add an extra line between paragraphs. Curly braces delimit groups. \textbf{this is bold text!} gives us This is bold text! as output. Environments function like groups, but are defined by the \begin{environment} and \end{environment} commands. Left quotes are not corrected automatically. "hello!" gives hello!. hello!" gives us the correct hello!. 2.2 The Preamble The Preamble is the first part of your.tex file where you set your global settings, define the type of document, and use packages (more on this later!) \documentclass{style} defines your document as a specific style which has its default settings. The most general is the article class, which you define by using the command \documentclass{article} somewhere in the preamble. Use the \author{name} and \title{titlehere!} commands to define these elements. Somewhere after using the \documentclass{article} command, declare the document environment which will delimit the body of your document and end the preamble. Your Turn! Open TexStudio, declare an article documentclass with 13pt font, set the title and author, define the document environment, and add some text within that environment! Note!: Click the double arrow Build & View in TexStudio to compile. 2.3 Document Body Main content of document is contained within the document environment. Use the command \maketitle to automatically add the title from information in the preamble. Can be delimited into sections and subsections by using the \section{title} and \subsection{title} commands. Pro-Tip! Use \section*{title} to remove the numbers. 2

Enumerated, bulleted, and regular lists are defined by the enumerate, itemize, and description environments, respectively. Use the \item command to add items to the list. For example, \begin{enumerate} \item This is a wug. \item Here are two... \end{enumerate} would give us the list below. 1. This is a wug. 2. Here are two... L A TEX reference numbers are dynamic; if you remove an element the rest will change accordingly. Your Turn! Add a title, sections, and some lists (Pro-Tip! you can nest lists!). 3 Packages Packages offer a wide variety of additional functions which are built on top of existing L A TEXarchitecture. Packages are called in the preamble using the command \usepackage[options]{name} 3.1 geometry Improves options for customizing page layout \usepackage[margins = 1in]{geometry} \usepackage[top=.5in,bottom=.5in,left=1in,right=1in]{geometry} Your Turn! 3.2 graphicx Allows you to embed high-quality graphics in your document. Use the command \includegraphics{filename} It s easiest to store the image in the same directory as the.tex file. Don t use spaces in the name! Also, use higher quality PDF images when you can. Utilize the optional arguments! [width = \textwidth], [height = 6in], etc. 3

Usually you ll want to have your image in a figure environment \begin{figure}\centering \includegraphics[width=\textwidth]{filename} \caption{caption here} \label{fig:my_image} % use \ref{my_image} later to refer to this spot. \end{figure} Your Turn! Find an image online and include it in your document! 3.3 hyperref Used for embedding hyperlinks in pdfs Command is \href{link}{description} Your Turn! Include a link to your favorite website. 3.4 tipa IPA Support! a.k.a. A linguist s best friend. Refer to the OSU tipa cheat sheet http://www.ling.ohio-state.edu/events/lcc/tutorials/tipachart/tipachart.pdf Add these custom commands to the preamble 1 \newcommand{\ipa}[1]{\textipa{#1}} \newcommand{\ips}[1]{$/$\textipa{#1}$/$} \newcommand{\ip}[1]{\textipa{[#1]}} Using these custom commands and the codes from the cheat sheet, you can create output like this: /trænskrips@n/ træn.skrip.s@n [tsô æn.skô Ip.Sn] " From input like this: 1 Thanks to Jeff Mielke for sharing these commands from the U Ottawa L A TEXworkshop. 4

\noindent \ips{tr\ae{}nskrips@n} \\ \ipa{tr\ae{}n.skrip.s@n} \\ \ip{ts\r*{\*r}\ {\~{\ae{}}}n.sk\*r\ {I}p.S\s{n}} Your turn! Transcribe your name or an interesting word using tipa. 4 Miscellaneous Notes Math Mode allows for definitions of formulas and mathematical symbols. Addtionally, it allows for sub- & superscripts. 9$^{th}$ gives 9 th ; H$_2$O gives H 2 O. Some special characters are supported outside of tipa: fa\c{c}ade gives façade, reacci\ on gives reacción, cari\~no gives cariño. The \verb text command allows for verbatim typesetting, including special characters. You can also use \begin{verbatim}...\end{verbatim} Templates are a handy tool for saving your most used packages, commands, and set-ups for future use. File Make Template & File New from Template. Find helpful L A TEX resources on the Phonology Lab website: http://phon.wordpress.ncsu.edu/resources/ 5 Advanced Topics Bibliographies L A TEX has a flexible reference management system that allows you to store information about a certain source and easily cite it in-text. From the in-text citations L A TEX will then automatically build the bibliography based on your formatting style. Tables http://en.wikibooks.org/wiki/latex/tables Presentation slides with Beamer http://en.wikibooks.org/wiki/latex/presentations. 5