Skip to content

Instantly share code, notes, and snippets.

@bbenno
Last active August 20, 2020 12:00
Show Gist options
  • Save bbenno/762be9edea6128fe843ec962779fef5b to your computer and use it in GitHub Desktop.
Save bbenno/762be9edea6128fe843ec962779fef5b to your computer and use it in GitHub Desktop.
Cheatsheet LaTeX

LaTeX Cheatsheet

Abbreviation Definition
pt A point, is the default length unit. About 0.3515mm
mm a millimetre
cm a centimetre
in an inch
ex the height of an x in the current font
em the width of an m in the current font
\columnsep distance between columns
\columnwidth width of the column
\linewidth width of the line in the current environment
\paperwidth width of the page
\paperheight height of the page
\textwidth width of the text
\textheight height of the text
\unitleght units of length in the picture environment.

Float

Parameter Position
h Place here, approximately at the point it occurs in the source text.
t Position at the top of the page.
b Position at the bottom of the page.
p Put on a special page for floats only.
! Override internal parameters LaTeX uses for determining "good" float positions.
H Places the float at precisely the location in the LATEX code.

Label Prefix

Prefix Referencing
ch: chapter
sec: section
subsec: subsection
fig: figure
tab: table
eq: equation
lst: code listing
itm: enumerated list item
alg: algorithm
app: appendix subsection

BibLaTeX Fields

@book{Xbook-123,
    author    = {},
    gender    = {},
    title     = {},
    subtitle  = {},
    publisher = {},
    volume    = {},
    number    = {},
    series    = {},
    %shortseries
    location   = {},
    edition   = {},
    year      = {},
    month     = {},
    note      = {},
    isbn      = {},
    doi       = {},
    language  = {},
    pagetotal = {},
    
    keywords  = {},
}

Tutorials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment