LaTeX Snippets
latex_screenshot.png

Pseudo-Random Notes Generator

This is a disorganized collection of a few of my notes about $\LaTeX$. I put them here for easy reference in case I need them. If they help someone Googling their way out of a $\LaTeX$ problem so much the better.

Better LaTeX Sites

For comprehensive or specialized information on $\LaTeX$ you might try:

LaTeX – A document preparation system (latex-project.org)
The TeX Users Group (TUG) (tug.org)
Text Processing using LaTeX (by the Cambridge University Engineering Dept.)
LaTeX ("From Wikibooks, the open-content textbooks collection").

LaTeX and Wikidot

The Wikidot service is particularly suited to housing these notes since a lot of $\LaTeX$ code:

...since a lot of [[$\LaTeX$]] code...

may be used simply by surrounding it by [[$ and $]] for inline math, and [[math label1]] and [[/math]]:

[[math label1]]
E=mc^2.
[[/math]]

for display math:

(1)
\begin{equation} E=mc^2. \end{equation}

You might want to consult the official Wikidot syntax page.

Article Snippets

Article Style

by EntropicEntropic 06 Oct 2009 12:31

The memoir class has an article option:

Bibliography

by EntropicEntropic 19 Mar 2009 02:18

A useful link is LaTeX tips: Bibliographies by A.J. Hildebrand.

Command

by EntropicEntropic 12 Aug 2008 04:44

An example by Nicola L.C. Talbot:

Comment

by EntropicEntropic 01 Sep 2008 18:43

One line of LaTeX may be cancelled out by putting a % in front.

Contact

by EntropicEntropic 03 Aug 2008 02:39

Feel free to send me a private message to my Wikidot account or add a comment to any of the articles (use the discuss link at the bottom of its page).

Derivative

by EntropicEntropic 09 Nov 2008 00:50

One could try writing a derivative using \frac{df}{dx} but then all the characters would be in italics. One also could write a partial derivative as \frac{\partial f}{\partial x}.

Dictionary Style

by EntropicEntropic 25 Oct 2008 05:55

adelaide_to_athens.png

Environment

by EntropicEntropic 12 Aug 2008 04:26

See a good explanation by Nicola L.C. Talbot, who gives as an example:

Equation

by EntropicEntropic 10 Feb 2009 05:39

Instead of using eqnarray consider using align:

Fonts

by EntropicEntropic 25 Aug 2009 13:44

texlive_fonts.png

Footnote on Wrong Page

by EntropicEntropic 07 Oct 2009 21:36

Sometimes LaTeX positions footnotes on the wrong page.

Fraction

by EntropicEntropic 08 Nov 2008 22:41

Normally you'd use \frac{1}{2} to produce the symbol for one half in math mode. You can produce it in text mode (if the textcomp package is activated) with \textonehalf. In math mode you can produce inline-sized fractions through \tfrac{1}{2} or display-sized fractions with \dfrac{1}{2}. The amsmath package must be activated. (See examples at LaTeX tips and tricks.)

Garamond

by EntropicEntropic 25 Aug 2009 13:05

Here are some pages about adding and using the Garamond font.

General Notes

by EntropicEntropic 25 Oct 2008 04:11

This is a collection of some pretty unrelated notes all packed into one document, transferred to this article until I separate out the topics.

Hanging Numbers

by EntropicEntropic 06 Oct 2009 14:47

hanging_numbers_2.png

Interline Spacing

by EntropicEntropic 12 Aug 2008 00:21

Without loading any additional packages you can add this line in the preamble to increase interline spacing or “leading”:

Interword spacing

by EntropicEntropic 09 Nov 2008 07:14

If a line is too short or too long one can loosen LaTeX's interword standards:

iPhone test

by EntropicEntropic 31 Aug 2008 19:40

This is some test text.

LaTeX Snippets

by EntropicEntropic 03 Aug 2008 02:39

latex_screenshot.png

List

by EntropicEntropic 10 Feb 2009 05:24

See Lists in LaTeX (ufl.edu) for an overview.

Logic

by EntropicEntropic 28 Jan 2009 05:59

From Cambridge University Professor Peter Smith's LaTeX for Logicians:

Macintosh

by EntropicEntropic 23 Aug 2008 23:20

Macintosh font encoding:

Margins

by EntropicEntropic 15 Aug 2008 00:27

In the memoir class at least, and perhaps other classes, this command is vital to properly setting margins:

Math Fonts

by EntropicEntropic 10 Nov 2008 00:03

I want to typeset some math questions in one font and the answers in another. Although this is quite easy with regular text, there is no easy way to do this with the math fonts.

Memo

by EntropicEntropic 24 Aug 2008 23:01

Here's some code for creating the headers of a memorandum:

Modulo and Congruence

by EntropicEntropic 25 Jan 2009 02:28

This code (the math environment is for Wikidot use):

Multiple Columns

by EntropicEntropic 15 Aug 2008 01:26

[[code]]
\usepackage{multicol}
\setlength{\columnsep}{0.25in}

Page Number

by EntropicEntropic 24 Aug 2008 23:11

To omit page numbers:

Page Styles

by EntropicEntropic 07 Oct 2009 12:39

If using the memoir class one can refer to this guide:

Plus or minus

by EntropicEntropic 20 Sep 2009 21:50

To create the “plus or minus” symbol type:

Preamble

by EntropicEntropic 25 Jan 2009 01:25

For my own reference I've collected some of the preambles I've used in various LaTeX documents.

Section Heading

by EntropicEntropic 01 Sep 2008 19:14

Adapted from TeXShop's preamble options for the memoir class:

Section Numbering

by EntropicEntropic 12 Aug 2008 02:04

In the memoir class:

Superscript

by EntropicEntropic 02 Sep 2008 04:21

One solution to the problem is to write

Welcome to the 21$^{st}$ century.

in order to bring Latex into math mode in order to write the superscript. But there's some problems with simply having text in math mode. For one, it is written in a different script (usually italic), and words are collated when they are offered to math mode with spaces. To solve this, we can ask math mode to go back to text mode and than write our text, i.e. with

Welcome to the 21$^{\textrm{st}}$ century.

It seems a bit weird, but we're in fact asking math mode to bring us in superscript mode, and then go back to text mode to write our text.

Table of Contents Depth

by EntropicEntropic 12 Aug 2008 04:14

You can choose how “deep” the table of contents goes. In other words, by selecting tocdepth you can have the table of contents show no units smaller than a subsection, for instance, or a subsubsubsection.

Tabular

by EntropicEntropic 28 Aug 2008 17:55

A tabular environment can be used to create a kind of table.

TeX Live

by EntropicEntropic 28 Aug 2009 22:25

TeX Live is a collection of LaTeX software available on CD or to download.

page 1 of 212next »
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License