Check out my first novel, midnight's simulacra!

LaTeX: Difference between revisions

From dankwiki
No edit summary
Line 1: Line 1:
==Checkers==
==Spacing==
* [http://www.ctan.org/tex-archive/help/Catalogue/entries/lacheck.html lacheck]
* The default margins are generally 1.5" or more, more suitable for books than other documents. For 1" margins, add <tt>\usepackage{fullpage}</tt>.
 
* Double-spacing can be achieved (in the main body) via <tt>\usepackage{doublespace}</tt>
** Return to single-spacing via <tt>\begin{singlespace}</tt> and <tt>\end{singlespace}</tt> blocks.
==Punctuation==
==Punctuation==
===Quotation Marks===
===Quotation Marks===
Use <tt>``</tt> for the left mark, and two apostrophes for the right.
Use <tt>``</tt> for the left mark, and two apostrophes for the right.
===Hyphens/Dashes===
===Hyphens/Dashes===
*Hyphens separate the parts of a compound word. Use a single '-', without spaces.
*Hyphens separate the parts of a compound word. Use a single '-', without spaces.
Line 24: Line 24:
===Backslashes===
===Backslashes===
Use <tt>\textbackslash{}</tt> to render a backslash in text.
Use <tt>\textbackslash{}</tt> to render a backslash in text.
==[[Unicode]]==
==[[Unicode]]==
Basic LaTeX doesn't support UTF-8 beyond expanding macros based on lexical sequences. If this is intended, use the <tt>utf8</tt> parameter to the <tt>inputenc</tt> package. [http://scripts.sil.org/xetex XeTeX] aims to be a fully Unicode-aware TeX engine.
Basic LaTeX doesn't support UTF-8 beyond expanding macros based on lexical sequences. If this is intended, use the <tt>utf8</tt> parameter to the <tt>inputenc</tt> package. [http://scripts.sil.org/xetex XeTeX] aims to be a fully Unicode-aware TeX engine.
 
==Checkers==
* [http://www.ctan.org/tex-archive/help/Catalogue/entries/lacheck.html lacheck]
==See Also==
==See Also==
* StackOverflow post, "[http://stackoverflow.com/questions/219853/entering-unicode-characters-in-latex Entering Unicode characters in LaTeX]"
* StackOverflow post, "[http://stackoverflow.com/questions/219853/entering-unicode-characters-in-latex Entering Unicode characters in LaTeX]"
* Martin J. Osborne's "[http://www.economics.utoronto.ca/osborne/latex/LTXERR.HTM Common (La)TeX errors]"
* Martin J. Osborne's "[http://www.economics.utoronto.ca/osborne/latex/LTXERR.HTM Common (La)TeX errors]"
* MIT's "[http://web.mit.edu/olh/Latex/ess-toc.html Essential LaTeX on Athena (AC-50)]"

Revision as of 23:22, 10 December 2009

Spacing

  • The default margins are generally 1.5" or more, more suitable for books than other documents. For 1" margins, add \usepackage{fullpage}.
  • Double-spacing can be achieved (in the main body) via \usepackage{doublespace}
    • Return to single-spacing via \begin{singlespace} and \end{singlespace} blocks.

Punctuation

Quotation Marks

Use `` for the left mark, and two apostrophes for the right.

Hyphens/Dashes

  • Hyphens separate the parts of a compound word. Use a single '-', without spaces.
  • Endashes separate the bounds of a range, usually numerics. Use two '-' characters, without spaces.
  • Emdashes separate distinct thoughts. Use three '-' characters, without spaces.
  • Minus signs are a mathematical entity. Use a single '-' in math mode.

Periods

To get correct spacing:

  • Use ".\ " if the period does not end the sentence.
  • Use "\@. " if the period ends the sentence, and follows a capital letter.

Ellipses

Use \ldots (or \cdots for line-centered dots).

  • Don't use three periods (bad spacing) or the Unicode character '…' (HORIZONTAL ELLIPSIS, U+2026).
  • What about \dots? fixme

Tildes

Generally, \textasciitilde{} is the way to go. In math mode, use \sim.

  • When typesetting a url, the url and hyperref packages handle tildes properly.

Backslashes

Use \textbackslash{} to render a backslash in text.

Unicode

Basic LaTeX doesn't support UTF-8 beyond expanding macros based on lexical sequences. If this is intended, use the utf8 parameter to the inputenc package. XeTeX aims to be a fully Unicode-aware TeX engine.

Checkers

See Also