Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132930 views
License: OTHER
1
\usepackage{multicol}
2
\usepackage{calc}
3
\usepackage{ifthen}
4
\usepackage[landscape]{geometry}
5
6
% This sets page margins to .5 inch if using letter paper, and to 1cm
7
% if using A4 paper. (This probably isn't strictly necessary.)
8
% If using another size paper, use default 1cm margins.
9
\ifthenelse{\lengthtest { \paperwidth = 11in}}
10
{ \geometry{top=.5in,left=.5in,right=.5in,bottom=.5in} }
11
{\ifthenelse{ \lengthtest{ \paperwidth = 297mm}}
12
{\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} }
13
{\geometry{top=1cm,left=1cm,right=1cm,bottom=1cm} }
14
}
15
16
% Turn off header and footer
17
\pagestyle{empty}
18
19
20
% Redefine section commands to use less space
21
\makeatletter
22
\renewcommand{\section}{\@startsection{section}{1}{0mm}%
23
{-1ex plus -.5ex minus -.2ex}%
24
{0.5ex plus .2ex}%x
25
{\normalfont\large\bfseries}}
26
\renewcommand{\subsection}{\@startsection{subsection}{2}{0mm}%
27
{-1explus -.5ex minus -.2ex}%
28
{0.5ex plus .2ex}%
29
{\normalfont\normalsize\bfseries}}
30
\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0mm}%
31
{-1ex plus -.5ex minus -.2ex}%
32
{1ex plus .2ex}%
33
{\normalfont\small\bfseries}}
34
\makeatother
35
36
% Define BibTeX command
37
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
38
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
39
40
% Don't print section numbers
41
\setcounter{secnumdepth}{0}
42
43
44
\setlength{\parindent}{0pt}
45
\setlength{\parskip}{0pt plus 0.5ex}
46
47
\usepackage{menukeys}
48
49
\pdfinfo{
50
/Author (Martin Thoma)
51
/Title (Vim Cheat Sheet)
52
/CreationDate (D:20130415072400)
53
/Subject (Vim)
54
/Keywords (Vim;Cheat Sheet)
55
}
56
57