-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlshift.sty
195 lines (165 loc) · 6.15 KB
/
lshift.sty
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
% This is a common style sheet
\ProvidesPackage{lshift}
%---------------------------------------------------------------------------
% Define some corporate branding colors, probably should patent them as well
\usepackage[usenames]{color}
\usepackage{colortbl}
\definecolor{FrontPageGrey}{rgb}{0.7,0.7,0.7}
\definecolor{LShiftBlue}{rgb}{0,0.6784,0.9373}
\definecolor{SubtitleGrey}{rgb}{0.3,0.3,0.3}
%---------------------------------------------------------------------------
% Include some standard stuff
\usepackage{typesetr}
\usepackage{graphicx}
%\usepackage{minitoc}
\usepackage{fancyhdr}
%\usepackage{hyperref}
%\hypersetup{colorlinks=true,linkcolor=black}
%\usepackage[all]{hypcap}
\usepackage{multirow}
\usepackage[absolute]{textpos}
\usepackage{longtable}
\usepackage{multicol}
\usepackage{pdflscape}
\usepackage{amsmath,amsthm}
\usepackage{tikz}
\usetikzlibrary{positioning}
%\usepackage[figureright]{rotating}
\usepackage{arydshln}
\usepackage{enumitem}
\usepackage{lastpage}
\usepackage{marginnote}
%---------------------------------------------------------------------------
% Define some layout conventions
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\fancyheadoffset[LE,RO]{0pt}
\renewenvironment{tystrtabular}{\longtable}{\endlongtable}
%---------------------------------------------------------------------------
% Set up the page layout
\newcommand{\subsubparagraph}[1]{\textsc{#1}}
\setlength{\hoffset}{-0.8cm}
\setlength{\voffset}{-0.5cm}
%sc: these two don't seem to do anything
\setlength{\topmargin}{0cm}
\setlength{\headsep}{55pt}
\setlength{\headheight}{5pt}
\setlength{\headsep}{45pt}
\setlength{\parskip}{0.7em}
\setlength{\parindent}{0em}
\setlength{\marginparwidth}{3.9cm}
\setlength{\marginparsep}{0.7cm}
%get rid of headheight warning
%\setlength{\headheight}{47pt}
% \setlength{\oddsidemargin}{2.5cm}
% \setlength{\evensidemargin}{2.5cm}
% \setlength{\columnsep}{30pt}
\newcommand{\bottommarginsize}{1.5cm}
\newcommand{\termcondleft}{2cm}
\newcommand{\leftmarginsize}{6cm}
\newcommand{\rightmarginsize}{0.2cm}
% Defining the left margin with logo for all pages including the title page
\usepackage[left=\leftmarginsize,
right=\rightmarginsize,
bottom=\bottommarginsize]{geometry}
\lhead{
\begin{textblock}{1}(18,15)
\includegraphics[height=0.9cm,keepaspectratio]{lshift-logo-and-text-rgb}
\end{textblock}
}
%gets rid of default page no.
\cfoot{}
%creates and set up confidential value
\newif\ifconfidential
\confidentialtrue
%command that prints confidential mark
\newcommand{\confidentialmark}{
\ifconfidential
\textcolor{FrontPageGrey}{{[}CONFIDENTIAL{]}}\\
\fi
}
%should we include T&C?
\newif\iftnc
\tnctrue
%command that includes the terms and conditions
\newcommand{\includetnc}{
\whendefined{\tystrtnc}{
\IfStrEq{\tystrtnc}{no}
{\tncfalse}{}
}
\iftnc
\include {LShift-terms-and-conds}
\fi
}
%---------------------------------------------------------------------------
% Less agressive hyphens
\hyphenpenalty=800
%---------------------------------------------------------------------------
% Put more floats on each page
%two column float page must be 90% full
\renewcommand\dblfloatpagefraction{.90}
%two column top float can cover up to 80% of page
\renewcommand\dbltopfraction{.80}
%float page must be 90% full
\renewcommand\floatpagefraction{.90}
%top float can cover up to 80% of page
\renewcommand\topfraction{.80}
%bottom float can cover up to 80% of page
\renewcommand\bottomfraction{.80}
%at least 10% of a normal page must contain text
\renewcommand\textfraction{.1}
%separation between floats and text
\setlength\dbltextfloatsep{9pt plus 5pt minus 3pt }
%separation between two column floats and text
\setlength\textfloatsep{10pt plus 4pt minus 3pt}
%---------------------------------------------------------------------------
% list styling
%---------------------------------------------------------------------------
% allow list-nesting up to 9 levels (which is what google docs and openoffice allow)
\setlistdepth{9}
% tweaked word-style enumerate; latex default in comments at EOL
\newlist{ol}{enumerate}{9}
\setlist[ol,1]{label={\color{LShiftBlue}{\arabic*}}} %\arabic*.
\setlist[ol,3]{label=\alph*)} % (\alph*)
\setlist[ol,2]{label=\roman*.} % \roman*.
\setlist[ol,4]{label=\arabic*.} %\Alph*.
\setlist[ol,5]{label=\alph*)}
\setlist[ol,6]{label=\roman*.}
\setlist[ol,7]{label=\arabic*.}
\setlist[ol,8]{label=\alph*)}
\setlist[ol,9]{label=\roman*)}
\let\tystrol\ol
% tweaked word-style itemize; latex default in comments at EOL
\newlist{ul}{itemize}{9}
\setlist[ul,1]{label={\color{LShiftBlue}{\textbullet}}} % \textbullet
\setlist[ul,2]{label={$\circ$}} % \normalfont\bfseries \textendash
% another alternative:{{\tiny\raisebox{0.15em}{$\blacksquare$}}}
\setlist[ul,3]{label=\tiny\raisebox{0.2em}{\rule{.5em}{.5em}}} %\textasteriskcentered
\setlist[ul,4]{label={$\bullet$}} %\textperiodcentered
\setlist[ul,5]{label={$\circ$}}
\setlist[ul,6]{label={\tiny\raisebox{0.2em}{\rule{.5em}{.5em}}}}
\setlist[ul,7]{label={\color{LShiftBlue}{\textbullet}}}
\setlist[ul,8]{label={$\circ$}}
\setlist[ul,9]{label={\tiny\raisebox{0.2em}{\rule{.5em}{.5em}}}}
\let\tystrul\ul
% Sets the list style
\setlist[1]{leftmargin=0pt}
\setlist{itemindent=0pt,partopsep=0pt,itemsep=1pt,parsep=0pt}
\setlist[itemize]{label={\color{LShiftBlue}{$\bullet$}}}
%---------------------------------------------------------------------------
% Use a particular font
\usepackage{fontspec}
\setsansfont{Agfa Rotis Sans Serif Light}
\setromanfont{Agfa Rotis Sans Serif}
% \setromanfont{Cambria}
%\setromanfont{Gentium Plus}
\newfontfamily\rotis[Scale=1.2,Color=00A5D9]{Agfa Rotis Sans Serif}
%\addtokomafont{disposition}{\rotis}
\setcounter{secnumdepth}{0}
%fix position of margins
\reversemarginpar
%---------------------------------------------------------------------------
%table of content editing
%make fancyheader in table of contents
\addtocontents{toc}{\protect\thispagestyle{fancy}}
%---------------------------------------------------------------------------