Professional Documents
Culture Documents
http://happymutant.com/
Happy Mutant
Just some geeky stuff
Navigation
A Quick and Dirty Guide to Latex Further Resources Making LaTex Beamer Presentations Other LaTeX How-Tos Sample LaTeX Document
1 of 6
03/27/2013 09:21 PM
http://happymutant.com/
You can add a table of contents here if you want LaTeX uses to information from your sectioning commands to automatically generate one. Just use the following command after \maketitle :
\tableofcontents
You can also include an abstract at the beginning of your document (a summary of your article or whatnot). You enclose your abstract within the commands: \begin{abstract}...\end{abstract} . Note that you can also include comments in your LaTeX document: LaTeX ignores anything on a line after the % symbol.
The title of each of these sections goes in curly braces after the command (e.g., \chapter{The
Very Long Journey Home} ). You also have the option of citing an alternate name (perhaps a shorter one) that would appear in the table of contents. Put the alternate name in brackets (e.g., \chapter[Journey Home]{The Very Long Journey Home} . LaTeX automatically numbers your sections there are arguments for different options concerning numbering, but I wont include them here. To learn more about these options, please check out the further resources listed.
font styles
LaTeX automatically sets the font for you, but you can specify these additional font styles within your document (putting your styled text in the curly braces):
\emph{...} : italics \texttt{...} : fixed-width teletype-like font (like the code font on this page) \textsf{...} : sans-serif fontdont know what you would use that for, but here it is \textbf{...} : boldface font
lists
2 of 6
03/27/2013 09:21 PM
http://happymutant.com/
special characters
Since certain characters are used in LaTeX commands (e.g., the backslash and curly braces), if you want to actually print these characters in your document, there are special commands that tell LaTeX to print these characters (not to treat them as part of a command). Here are some of those characters, along with the commands to print them: character \ $ % ^ & _ ~ command $\backslash$ \$ \% \^ \& \_ \~
3 of 6
03/27/2013 09:21 PM
http://happymutant.com/
# { }
Quotation marks: To get double quotes, do not use your key. Rather, use two ` and keys, like this. Accents: You can use the following commands (but I believe you have to use a certain package which you declare in the document header: \usepackage[latin1]{inputenc} ) character é è ê ë ñ command \e \`e \^e \e \~n
Long dashes: To make a long dash, use three hyphens together (). For more information on generating special characters, see the additional resources, or, better yet, download the pdf documents below: Scott Pakins Comprehensive LaTeX Symbol List (Huge: 2 megs) The more modest ASL list of standard LaTeX symbols plus those provided by the package amssymb.sty (part of any standard LaTeX distribution).
quotations
Longer quotations that you would like to be indented from the surrounding text as a separate paragraph can be done by enclosing your quotation within the quotation environment:
\begin{quotation}...\end{quotation}
If you want the quotation in a smaller font, put \small after the quotation environment declaration (i.e. \begin{quotation}\small ).
4 of 6
03/27/2013 09:21 PM
http://happymutant.com/
@book{kane:sfw, title = {The Significance of Free Will}, author = {Robert Kane}, publisher = {Oxford University Press}, year = {1998}, address = {Oxford} }
A couple of BibTeX generators & databases pybliographer: a nice gui bibtex manager for linux bibster: a Java-based system which assists researchers in managing, searching, and sharing bibliographic metadata (e.g. from BibTeX files) in a peer-to-peer network qcite: an online bibliography organizer you can export your database as a bibtex file online bibtex generator To integrate your bib file into the LaTeX document, put the following lines towards the end of your document:
\bibliography{bibfilename} \bibliographystyle{ieeetr}
The argument for the \bibliography command is the name of your BibTeX file, without the .bib extension. The argument for the bibliographystyle is the name of the bibliography style that youre using. If you dont know the different styles available to you, try plain. To incorporate this information properly into your document, Ive found you need to do the following (if anyone knows of a simpler way to do this, please let me know): 1. Compile your tex document you may get errors but thats okay. The compilation process produces an .aux file thats needed by the second step. 2. Run the following command: bibtex texfilename (without the .tex extension). This does something to mesh your bib file with the LaTeX document.
Leave a Reply
Name *
5 of 6
03/27/2013 09:21 PM
http://happymutant.com/
Email *
Website
Comment
Post Comment
6 of 6
03/27/2013 09:21 PM