0% found this document useful (0 votes)
59 views3 pages

LaTeX Tips

1) The document discusses LaTeX templates and formatting including document classes, packages, commands, math environments, references, figures, and tables. 2) Tips are provided for typing equations, closing environments, and troubleshooting compilation errors. 3) Environments like equations, figures, and tables are demonstrated along with labeling, referencing, and alignment.

Uploaded by

Erica D. Chin
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views3 pages

LaTeX Tips

1) The document discusses LaTeX templates and formatting including document classes, packages, commands, math environments, references, figures, and tables. 2) Tips are provided for typing equations, closing environments, and troubleshooting compilation errors. 3) Environments like equations, figures, and tables are demonstrated along with labeling, referencing, and alignment.

Uploaded by

Erica D. Chin
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

HERE IS THE HEADER

LaTeX Tips
Erica Chin
Abstract

Eres where the abstract could go. Ill just stick the outline of our discussion topics here. First, we wanna know the general template/look of our document; so a lot of that stuffs going to go into the top part of the Latex document: ex. document class, packages, title, headers.... Next, well get into the stuff you want to look out for or practices that Ive found to be useful. Last, well get into the syntax of some helpful stuff ...and attached cheat sheets for everything else.

I. I NTRODUCTION /H EADERS +J UNK As you might have noticed comments are created with a %. The rst line in the document tells us how the document is going to generally be formatted. For our purposes we can use \documentclass[onecolumn]{IEEEtran}. The other option- for two columns, is commented out in this template. After the document class comes the packages, which are denoted by \usepackage{blablabla}. They basically allow you to use more commands. In general commands are indicated with a \. Of course, you can create your own when you have to retype stuff over and over again, by sticking in \newcommand{cmd}[args]{def} or redening a command with \renewcommandcmd}[args]{def}, where cmd is a command name, args is an integer between 1 and 9 dening the number of arguments, def is the denition of the command. So for example, Ive dened a new command called \yderiv after the packages, and so when I type that in, I get: dy . Ive stuck other ways you can redene stuff in comments- Ive never had to dt use any of that stuff just yet. II. T IPS /F IGURES I NFO /R EFERENCING A. Tips 1) Typos: Misspelt words, or rather words suspected to be misspelt are highlighted in red. 2) Math Environment: Often times, youll want to create equations. In general, to use any symbol considered to be part of math, youll need to surround it with $. So for example, if you were to use fractions, superscripts, or subscripts, youd need to write $\frac{numerator}{denominator}$, $\$, or $\ $. To keep everything following the commands of the carat or underscore as a superscript or subscript, youll want to use {}. Thats the difference between y x+1 and y x + 1 3) Closing it up: Off the top of my head, some of the most common errors Ive had were not closing things; i.e. not having two of $ or {. So in order to avoid wasting too much time on compiling errors, try to type both before sticking stuff inside. Or another way to tell whether or not something is wrong, is by moving the cursor over one of the elements. The dollar sign or brace (this also works with parentheses and square brackets) should then be highlighted in yellow, with the corresponding sign highlighted in green. If it shows up highlighted in red, something probably went wrong- either youre missing one of those signs, or youve stuck the wrong one in. Additionally, sometimes you can tell whether or not things are closed by the gray highlighting. If you are having issues compiling, theres always the comment stuff out method to determine where the error is. Usually, if you close the error window, WinEdt will highlight the error region. III. E NVIRONMENTS You can recognize these by the \begin{} followed by an \end{}. Usually the stuff in here will be shaded grey- so you can always double check to see whether or not youve closed your environments by the shading of the text. Usually the asterisk inside the curly braces will indicate that you dont want numbers assigned to equations (i.e. if the environment is eqn or eqnarray). A. bulleting.... (a) blablabla (b) example another item

HERE IS THE HEADER

B. tables Just stuck a random table from online. Name Big Basin Sunol Henry Coe C. equations
N

Driving Time (hours) 1.5 1 1.5

Places to Go Backpacking Notes Very nice overnight to Berry Creek Falls from either Headquarters or ocean side. Technicolor green in the spring. Watch out for the cows. Large wilderness nearby suitable for multi-day treks.

X+a a
i N

xk

lim C

(1)

X+a a
i

xk

lim C

You can reference equations by sticking labels in \ref{Stuff} ...1. Note that when you do referencing or citing, if you type in \ref{} or \cite{} a window should pop up listing all the possible options you have... If you use eqnarray, make sure you do line breaks- you wont have to use $ tho... 1 = b 2 (2) (3) c =

In terms of some random alignment stuff: use & around the character you want to have the equations aligned with. Make sure you use line breaks though. D. gures pictures have to be in the same folder. which can be a real pain. Regular gure: So I can be like, heres gure 1 or

Fig. 1.

Random picture that was pretty XD.

\ref{Pretty pic} You may have to play with the spacing to get the gure to go where you want it to go- thats why latex can be more annoying than word... Subgures: In terms of getting your pics where you want them, sometimes sticking in \\ or \newline or \pagebreakworks.

(a) Cells... and randomness Fig. 2. More pretty pics

(b) omnomnom

...Otherwise, try resizing the pictures.

HERE IS THE HEADER

E. Works cited The template for works cited stuff is below; to referencing them within the page and not have to worry about numbers matching up, you use \cite{latexref} where latexref could be whatever you decide to label the reference as so that you remember it [1]. R EFERENCES
[1] http://pangea.stanford.edu/computerinfo/unix/formatting/latexexample.html

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy