-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tex
162 lines (130 loc) · 3.42 KB
/
main.tex
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
\documentclass{article}
\usepackage[
a6paper,
total={105mm, 148mm},
margin=30pt
]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[swedish]{babel}
\usepackage{graphicx}
\usepackage{parselines}
\usepackage[none]{hyphenat}
\usepackage{gensymb} % För att kunna använda symboler som grader
\usepackage{multicol} % För att få dubbla kolumner hos EBBE
\usepackage{ragged2e} % För att justifya text (dvs högercentrering och liknande)
\usepackage{pdfpages} % för att inkludera pdf-bilder
\usepackage[export]{adjustbox} % Ram på bilder
\usepackage{imakeidx} % Registret
\usepackage[titles]{tocloft} % För att ändra storlek på innehållsförteckningen
\usepackage{textcomp} % ~
\usepackage{pgffor, ifthen} % Bortsupen
\usepackage{fancyhdr}
\fancypagestyle{main}{
\fancyhf{} % clear all header fields
\fancyhead[RO]{\hfill \footnotesize\scshape\leftmark \hfill}
\fancyfoot[LE,RO]{\hfill \thepage \hfill}
\renewcommand{\headrulewidth}{0 pt}
\renewcommand{\footrulewidth}{0 pt}
}
\pagestyle{main}
\newcommand{\bortsupen}[3][\empty]{%
\noindent \vspace{0pt}\\
\foreach \n in {1,...,#2}{%
\ifthenelse{\equal{#1}{\empty}}
{\rule{#3}{0.5pt}\\}
{\rule{#3}{0.5pt}\vspace{#1}\\}
}
}
\newcommand{\fillInPages}[1]{
\newcount\ipp
\ipp=0
\newcount\numberOfPages
\numberOfPages=#1
\loop
\newpage
\mbox{}
\advance\ipp by1
\ifnum\ipp<\numberOfPages\repeat
}
\makeindex[ % Alfabetiskt register
name=alfa,
columns=1,
title=Alfabetiskt Register,
intoc,
options = {-s styleAlfa.ist}
]
\makeindex[ % Analfabetiskt register -- början av sången
name=anfa,
columns=1,
title=Analfabetiskt Register,
intoc,
options = {-s styleAlfa.ist}
]
\title{\fontsize{20}{20} \selectfont D-sektionens sångbok \vspace{-40pt}}
\author{}
\date{}
\topmargin=-65pt
\headsep=10pt
\textheight=360pt
\footskip=15pt
\renewcommand*\contentsname{INNEHÅLL}
\setcounter{tocdepth}{1}
\setcounter{secnumdepth}{0}
\renewcommand\cftsecfont{\normalsize} % Font på table of content
\renewcommand\cftsecpagefont{\normalsize} % Font på table of content
\setlength{\cftbeforesecskip}{3pt} % vspace på table of content
\tolerance=700
\begin{document}
\thispagestyle{empty}
\maketitle
\thispagestyle{empty} % tar bort sidnumrering
\begin{center}
Trettionio råsa år -- och ett brunt...
\end{center}
\vspace{1mm} % Den flyttar upp väldigt mycket mer om jag inte har med detta
\begin{center}
\includegraphics[width=0.6\textwidth]{res/D-symbol.pdf}
\end{center}
\newpage
Tillhör:
\newpage
\thispagestyle{plain}
\tableofcontents
\newpage
\input{kapitel/00-gasquologi.tex}
\input{kapitel/01-bordsvisor.tex}
\input{kapitel/02-snapsvisor.tex}
\null
\newpage
\input{kapitel/03-vinvisor.tex}
\input{kapitel/04-ölvisor.tex}
\null
\newpage
\input{kapitel/05-punschvisor.tex}
\null
\newpage
\input{kapitel/06-hyllningsvisor.tex}
\input{kapitel/07-sektionsvisor.tex}
\input{kapitel/08-nördiga-visor.tex}
\input{kapitel/09-sällskapsvisor.tex}
\input{kapitel/10-dryga-visor.tex}
\input{kapitel/11-klassiska-visor.tex}
\thispagestyle{empty}
\null
\vfill
\begin{center}
\includegraphics[width=0.8\textwidth, frame]{res/friavisor.jpg}
\section{Fria visor}
\end{center}
\vfill
\newpage
\noindent
\textit{Följande sidor kan användas för att lägga till visor du saknar i denna bok}
\newpage
\fillInPages{11}
\printindex[alfa]
\printindex[anfa]
\newpage
\section{Bortsupen}
\bortsupen[10.5pt]{14}{\textwidth}
\end{document}