Repository navigation
Expand file tree
/
Copy pathsetup.tex
More file actions
126 lines (110 loc) · 3.26 KB
/
Copy pathsetup.tex
File metadata and controls
126 lines (110 loc) · 3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
\usepackage[a4paper, margin=1cm, bmargin=.7cm, landscape, includefoot]{geometry}
\usepackage{multicol}
\usepackage{tikz}%% load tikz BEFORE rubikcube
\usepackage{rubikcube}
\usepackage{tikz,rubikcube,rubikrotation,rubikpatterns}
\usepackage{ifthen}
\usepackage{tabularx}
\usepackage{titlesec}
\usepackage[T1]{fontenc}
\DeclareRobustCommand{\augiefamily}{%
\fontfamily{augie}\fontseries{m}\fontshape{n}\selectfont}
\DeclareTextFontCommand{\textaugie}{\augiefamily}
\usepackage{xcolor}
% 3d for rotating cube
%
% \usepackage[active,tightpage]{preview}
% \usepackage{tikz-3dplot}
% \usetikzlibrary{3d}
% compact itemize
\usepackage{enumitem}
\setitemize{noitemsep,leftmargin=*,topsep=0pt,parsep=0pt,partopsep=0pt,label={--}}
% set pdf attributes
\usepackage[pdftex,
pdftitle={Beginner CFOP Cheatsheet},
pdfauthor={Pascal Huber},
pdfkeywords={Rubik's Cube, Speedcube, Magic Cube, Puzzle Cube, Beginner, CFOP}
]{hyperref}
% Add footer with git version
\usepackage[grumpy,mark]{gitinfo2}
\renewcommand{\gitMark}{\centering%
\ifthenelse{\equal{\gitTags}{\string (None)}}
{\gitAbbrevHash}
{\StrGobbleRight{\gitTags}{1}}%
}
% No page numbers
\thispagestyle{empty}
% Git info watermark
% TODO: is there a nicer solution to add the git tag and commimt hash?
% - The package gitinfo2 seems badly maintained and has some issues.
% \renewcommand{\gitMark}{\centering%
% \ifthenelse{\equal{\gitTags}{\string (None)}}
% {\gitAbbrevHash}
% {\StrGobbleRight{\gitTags}{1}}%
% }
% Double Arrows
\tikzset{
double arrow/.style args={#1 colored by #2 and #3}{
-stealth,line width=#1,#2, % first arrow
postaction={draw,-stealth,#3,line width=(#1)/3,
shorten <=(#1)/3,shorten >=2*(#1)/3}, % second arrow
},
double double arrow/.style args={#1 colored by #2 and #3}{
stealth-stealth,line width=#1,#2, % first arrow
postaction={draw,stealth-stealth,#3,line width=(#1)/3,
shorten <=(#1)/1.5,shorten >=2*(#1)/3}, % second arrow
}
}
% Cube colors
\colorlet{X}{black!50}
% Cube lines
\tikzset{ultra thick/.style={line width=0.6pt}}%
% section fontenc
\titleformat*{\section}
{\LARGE\bfseries\sffamily\centering\color{OliveGreen}}
\titleformat{\subsection}
{\Large\bfseries\sffamily\color{BrickRed}}
{\thesection}{1em}{}[{\titlerule[0.8pt]}]
\titleformat*{\subsubsection}
{\large\bfseries\sffamily\color{BrickRed}}
% section spacing
% \titlespacing*{<command>}{<left>}{<before-sep>}{<after-sep>}
\titlespacing*{\section}
{0pt}{0pt}{0pt}
\titlespacing*{\subsection}
{0pt}{0pt}{0pt}
\titlespacing*{\subsubsection}
{0pt}{2pt}{0pt}
% spacing and indentation
\setlength{\parindent}{0pt}
\setlength{\parskip}{4pt}
\renewcommand{\baselinestretch}{1}
% custom sizes
\newcommand{\cubesize}{1.6cm}
\newcommand{\cubescale}{0.35}
\newcommand{\sequencebreak}{\\[.12cm]}
% Side by side picture and sequence
\newcommand*{\sbscube}[2]{%
\begin{minipage}[t]{0.29\linewidth}
\vspace{0pt}
{#1}
\end{minipage}\hfill%
\begin{minipage}[t]{0.69\linewidth}
\vspace{0pt}
{#2}\sequencebreak%
\end{minipage}
}
\newcommand*{\sbsface}[2]{%
\begin{minipage}[t]{0.22\linewidth}
\vspace{0pt}
{#1}
\end{minipage}\hfill%
\begin{minipage}[t]{0.76\linewidth}
\vspace{0pt}
{#2}
\end{minipage}
}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "beginner-cfop"
%%% End: