Skip to content

Instantly share code, notes, and snippets.

@htr3n
Last active January 19, 2018 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save htr3n/1965f09a6093ae4f69179f2f1dedcede to your computer and use it in GitHub Desktop.
Save htr3n/1965f09a6093ae4f69179f2f1dedcede to your computer and use it in GitHub Desktop.

(La)TeX Dev Notes

Converting PDF file to a certain compatibility level

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.10 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=new_file.pdf old_file.pdf
@htr3n
Copy link
Author

htr3n commented Jan 19, 2018

Useful Commands

Spaces

Page

  • \columnsep -- the gap between columns
  • \topmargin -- the gap above header
  • \topskip -- the gap between header and text
  • \textheight -- the height of the main text
  • \textwidth -- the width of the text
  • \oddsidemargin -- odd page left margin
  • \evensidemargin

Paragraphs

  • \parindent -- the indentation of paragraphs
  • \parskip -- the gap between paragraphs

Floats

  • \floatsep -- the space left between floats. (multi column layout => \dblfloatsepinsted)
  • \textfloatsep -- the space between last top float or first bottom float and the text ( use \dbltextfloatsep if it is a multi column layout).
  • \intextsep -- space left on top and bottom of an in-text float.
  • \abovecaptionskip -- master the space above caption
  • \belowcaptionskip

Math

  • \abovedisplayskip -- the space before maths
  • \belowdisplayskip -- the space after maths
  • \arraycolsep -- gap between columns of an array

Lists

  • \topsep -- space between first item and preceding paragraph
  • \partopsep -- extra space added to \topsep when environment starts a new paragraph
  • \itemsep -- control the space between successive items – I use this one offen

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