L A TEX examples. a b c a b c b b a c b c c b a. This table was typeset with the following commands.

Similar documents
Getting Started with L A TEX

Math 235: Introduction to LaTeX

An Introduction to LATEX

Course A, Part 1 Basic Formatting in L A TEX

Become a L A TEX Guru

Guide to using L A TEX

Math 291: Lecture 5. Dr. Fagerstrom. Minnesota State University Moorhead web.mnstate.edu/fagerstrom

Learning L A TEX. Patrick Lam

Getting started with Latex

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

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

Learning LaTeX: The Basics

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

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

What is T E X? T E X and L A T E X Document preparation tools. Setting and casting type. What Knuth was setting. Setting and casting type

A brief introduction to L A TEX

An Introduction to L A TEX

LaTeX Seminar III: Environments and More Advanced Mathematical Typesetting

COMP496/901: Academic Presentation and Writing Skills Using LaTeX

Introduction to L A TEX

LATEX Primer. 1 Introduction (Read Me)

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

Assessments for CS students:

A Short Introduction to L A TEX

MATLAB for the Sciences

Meeting One. Aaron Ecay. February 2, 2011

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

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

LAT E X week 2: Basics for Writing a Document

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

Square cells: an array cooking lesson

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

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.

L A TEXInstallation and Introduction

PHYS 87. Check that it works by typesetting the tripple ensted list of the pervious exercise.

Intro to LaTeX Workshop

-Using Excel- *The columns are marked by letters, the rows by numbers. For example, A1 designates row A, column 1.

Environments, Equations, and Tables

Part - I : Short Course Typing Text


Introduction to LaTeX. Paul Fodor Stony Brook University

عمادة البحث العلمي جامعة الملك سعود

LaTeX A Tutorial. Mohsen Alimomeni, 2010

Mikkel Madsen

Homework # (Latex Handout) by Laura Parkinson

Mikkel Madsen

Introduction to MCS 220 and L A TEX

The Table and Figure Environments

PHYS-4007/5007: Computational Physics

SOFTWARE ARCHITECTURE 4. TEXT FORMATTING SYSTEM

L A TEX for Psychological Researchers

Learn how to [learn] LATEX

Introduction to L A TEX beamer

A quick guide to L A TEX

Introduction to L A T E X

How To Get Your Word Document. Ready For Your Editor

L A TEX and Basic Text Editing

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013

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

Student Learning Service: Introduction to Latex

My LaTeX Document. July 7, Introduction 2

Latex Tutorial. CIS400 Senior Design 9/5/2013

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

A Grasshopper s Approach to L A TEX

Typesetting in wxmaxima

Began as TeX, in 1982 (Knuth). Purely a typesetting tool. LaTeX added macros, maintaining TeX as it s typesetting engine (Lamport).

The MathType Window. The picture below shows MathType with all parts of its toolbar visible: Small bar. Tabs. Ruler. Selection.

Introduction to Math in LaTeX

Absolute L A TEX Beginner

Introduction to LaTeX. Christoph Pickl

CS 189 L A TEX and Linux: Text in Boxes

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

A very long title with deep neural networks variants applied on five databases and solving many problems occuring there.

The supertabular environment

Creating a Template in WordPerfect

MAKING TABLES WITH WORD BASIC INSTRUCTIONS. Setting the Page Orientation. Inserting the Basic Table. Daily Schedule

3.7. Vertex and tangent

An Interactive Introduction to L A TEX

Tools for Scientific Writing with LAT E X. Johan Carlson

Introduction to Scientific Typesetting Lesson 7: Graphics and Floats

How to get started in L A TEX

Workshop: A Simple Introduction to L A TEX

EGR 53L - Spring 2011

Getting Funky: Headers, Tables, Abstracts etc.

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

Using Microsoft Word. Paragraph Formatting. Displaying Hidden Characters

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

L A TEX for Psychological Researchers

Introduction to L A TEX for MCS-236

COMS 6100 Class note

1 Obtaining LyX and L A TEX

Latex Tutorial 1 L A TEX. 1.1 Text

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

Effective Programming Practices for Economists

Lecture 3-Introduction to Latex (II)

L A TEX: Online module 6

An introduction to L A TEX for students

LATEX TYPESETTING SYSTEM. CAAM 519, CHAPTER 3

Not-So-Frequently Asked Questions for L A TEX

SOLVER TI-83 QUICK REFERENCE. The SOLVER feature is used to solve equations. There may be one variable or more than one variable in the equation.

Transcription:

L A TEX examples This document is designed to help you see how to produce some mathematical typesetting. The best way to learn how to use L A TEX is to experiment with particular commands. After you have read through this you might just try making some small changes to the.tex file and see what happens to the resulting pdf file you get. Here is how to make the table (.15 Table) near the middle of page 4 of the textbook. I chose to make the top horizontal line and the left-most vertical line as double lines instead of thicker lines since this latter type is a bit more difficult. a b c a b c b b a c b c c b a This table was typeset with the following commands. \begin{center} \begin{tabular} {c c c c} $*$ & $a$ & $b$ & $c$ \\ \hline\hline $a$ & $b$ & $c$ & $b$ \\ \hline $b$ & $a$ & $c$ & $b$ \\ \hline $c$ & $c$ & $b$ & $a$ \\ \end{tabular} \end{center} I wanted the table to be centered horizontally so the table is inside what is called the center environment. To do this I started with the \begin{center} command and ended with \end{center}. Everything between these two commands is centered. If you look closely at the table and the commands that make it, you will notice that it begins with the command \begin{tabular} {c c c c} 1

and ends with the command \end{tabular} Everything between these commands is part of what is called the tabular environment. There are lots of other environments such as itemize, center, enumerate, equation, align, eqnalign, and many others. Each of these environments is set up to do one special thing. For example, the tabular environment is to make a table, the center environment is to center some text horizontally on a line, the enumerate environment helps you to enumerate items, and so on. You get the idea, right? You guessed it. That last line was typeset with \begin{center} You get the idea, right? \end{center} Now notice the rest of the command that started the tabular environment. It has a combination of vertical lines, like, and four copies of the letter c. The fact that there are four tells L A TEX that the table will have four columns, and the vertical lines tell it where to draw vertical lines up and down the table. By the way, the letter c does not stand for column but for center. The way I made the table each entry was centered in its column. You can also use r for right and l for left. The r prints the column contents right justified; the l prints the column contents left justified. Since each entry in this example was a single character, replacing c by r or l has no visible effect. However, in the following example you can see what happens. a b c a b a c b + 5c b a 3 c + d b c c b a + b c Consecutive entries in a given row of a table are separated by an & and each row ends with a double backslash. Here are some typical symbols that you might use in a modern algebra class. The first of these is from Exercise 9 on page 91; the second is from near the bottom of page 41.

Q( 3, 3 6, 3 4) over Q σ p (a + b) = (a + b) p = a p + b p = σ p (a) + σ p (b). These two lines were typeset with the following commands \noindent $\mathbb{q}(\sqrt[3]{},\sqrt[3]{6},\sqrt[3]{4})$ over $\mathbb{q}$\\ $\sigma_p(a+b)=(a+b)^p=a^p+b^p=\sigma_p(a)+\sigma_p(b)$. Notice the \noindent at the beginning of the first line and the double backslash (\\) at the end of the first line. It s sort of obvious what \noindent means. The double backslash is a command to end a line of text and begin a new line. Here are three algebraic equations illustrating some of the common algebraic operations like fractions, powers and square roots. α 3 = 1 + i, α 5 = 1 i, α 7 = 1 i. That last line was typeset with this command. \[\alpha^3=\frac{-1+i}{\sqrt{}}, \hskip 1cm \alpha^5=\frac{-1-i}{\sqrt{}}, \hskip 1cm \alpha^7=\frac{1-i}{\sqrt{}}\,.\] This line is set in mathematical font and is on a line centered horizontally with a space above it and a space below the line (before the text begins again). To set off mathematics like this you start the line with the command \[ and end it with \]. You can instead use $$ to begin and $$ to end the line. In general, putting things between a pair of dollar signs tells the program that what is between them are mathematical symbols. There are several ways to put vertical and horizontal space in what you write. You can tell the program exactly how much space to put by putting in a command like \vskip cm which asks for a vertical skip of centimeters. A horizontal skip is similar and the command would be \hskip cm. You can ask the program to insert just a small horizontal space by using \,. You will find such a command in the last line of mathematics above. If you simply press the Enter key twice then you get a new paragraph, but pressing it more than twice doesn t give you any more vertical space. Try it. Sometimes it is helpful (to us and to those who read what we write) to display the simplification or expansion of an expression as an array of 3

equations, congruences, inequalities, etc. Here is an example of doing this to show an evaluation of a number modulo 13. (This is from 0.3 Example on page 185 of the text. You will see that I have given this array a number so that I can easily refer to it elsewhere in my writing. Actually I didn t give it a number, but L A TEX automatically gave it a number when I decided to give it a label. Look below to the commands that generated this aligned set of congruences modulo 13. to see where I gave it a label. 8 103 (8 1 ) 8 (8 7 ) (1 8 )(8 7 ) 8 7 ( 5) 7 (1) (5) 3 ( 5) ( 1) 3 ( 5) 5 (mod 13). I can now refer to this array of congruences (1). The above was typeset using the following commands. I hope you can see that L A TEX automatically generates the numbers associated with things like arrays of equations. You can use whatever name you want as the label; L A TEX takes care of the rest. If you have other equations that you want to refer to elsewhere in the same document, then again, L A TEX handles all of the bookkeeping for you. \begin{align}\label{mycongs} 8^{103} & \equiv (8^{1})^8(8^7) \equiv (1^8)(8^7) \equiv 8^7 \equiv (-5)^7\\ &\equiv (5)^3(-5) \equiv (-1)^3(-5) \equiv 5 \pmod{13}. \notag \end{align} \noindent I can now refer to this array of congruences \eqref{mycongs}. Here is part of the solution to Example 11.13 on page 109 1. Z Z Z Z 3 Z 3 Z 5. Z Z 4 Z 3 Z 3 Z 5 3. Z Z Z Z 9 Z 5 4. Z Z 4 Z 9 Z 5 5. Z 8 Z 3 Z 3 Z 5 4

6. Z 8 Z 9 Z 5 is typeset using \begin{itemize} \item [1.] $\mathbb{z}_\times \mathbb{z}_ \times \mathbb{z}_ \times \mathbb{z}_3 \times \mathbb{z}_3 \times \mathbb{z}_5$ \item [.] $\mathbb{z}_\times \mathbb{z}_4 \times \mathbb{z}_3 \times \mathbb{z}_3 \times \mathbb{z}_5$ \item [3.] $\mathbb{z}_\times \mathbb{z}_ \times \mathbb{z}_ \times \mathbb{z}_9 \times \mathbb{z}_5$ \item [4.] $\mathbb{z}_\times \mathbb{z}_4 \times \mathbb{z}_9 \times \mathbb{z}_5$ \item [5.] $\mathbb{z}_8\times \mathbb{z}_3 \times \mathbb{z}_3 \times \mathbb{z}_5$ \item [6.] $\mathbb{z}_8\times \mathbb{z}_9 \times \mathbb{z}_5$ \end{itemize} How about some fancy underbraces? Here is a single line from page 49. (1 + 1 + + 1) (1 + 1 + + 1) = (1 + 1 + + 1) }{{}}{{}}{{} n summands m summands nm summands typeset with \[ \underbrace{(1+1+\cdots+1)}_{n \,\,\mbox{{\scriptsize summands} }} \underbrace{(1+1+\cdots+1)}_{m \,\,\mbox{{\scriptsize summands} }}= \underbrace{(1+1+\cdots+1)}_{nm \,\,\mbox{{\scriptsize summands} }}\] In the above example the command \, adds a little space and the command {\scriptsize summands} prints the word summands in a font size about the same as the n or the m. The command \mbox allows you to insert regular text fonts inside a mathematical expression. The text you wish to put there is enclosed inside the set brackets { and }. Here the mathematical expression is put into display mode by the use of the delimiter \[ at the beginning and \] at the end. To get started producing your own typesetting with L A TEX there are a couple more important things for you to know. You have to tell L A TEX what kind of a document you are creating. You do that in the first lines of the.tex file with some commands such as 5

\documentclass[1pt]{report} \usepackage{amsmath,amssymb,latexsym} These particular commands tell the program that your document will be a report written in 1 point font. There are other document classes such as letters, articles, etc. The command \usepackage{amsmath,amssymb,latexsym} instructs the program to use certain packages or style files that tell it what symbols and so on to expect. There are lots of style files; it is best to consult a L A TEX manual or ask someone about these. There are lots of other commands that allow you to set the size of the margins of your document, the width of the text, the height of text, etc. Here are several of those that I used at the top of this document. You might try experimenting with these, but you should keep in mind that some of this is quite subtle. 1 Consulting a L A TEX book or asking an expert is advisable. \setlength{\textwidth}{7.5in} \setlength{\leftmargin}{-.5in} You also have to tell L A TEX where the actual document begins and where it ends. You have probably figured out that is done with \begin{document} and end{document} respectively. Check out the.tex file that produced this pdf file and you can see where these commands belong. 1 See the negative left margin setting if you don t understand what I mean by subtle. By the way, please see the document Some Helpful Examples to see how easy it is to make footnotes in L A TEX. 6