This repository has been archived by the owner on Jul 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathformatmall.sty
70 lines (59 loc) · 1.9 KB
/
formatmall.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
% Utarbetad av Joakim Hemsle för sjungförmännen
%
% Våren 2001
% Början 2006 tillägg av sidlayout, gjort av Joakim Hemsle
% Sommar 2017 Länkar i registret, Johan Winther
% Customizing the Page Layout
%\setlength{\hoffset}{-1.0 in}
%\setlength{\voffset}{-1.0 in}
%\setlength{\textwidth}{17.2 cm}
%\setlength{\textheight}{24.0 cm}
% Margins
%\setlength{\topmargin}{1.1 cm}
%\setlength{\evensidemargin}{1.7 cm}
%\setlength{\oddsidemargin}{2.0 cm}
%\setlength{\marginparsep}{0.05 cm}
%\setlength{\marginparpush}{0.0 cm}
% The minimal vertical
% distance between two margin notes
%\setlength{\marginparwidth}{1.0 cm}
% Header and Footer
%\setlength{\headheight}{1.1 cm}
%\setlength{\headsep}{1.1 cm}
%\setlength{\footheight}{1.1 cm}
%\setlength{\footskip}{1.3 cm}
\setlength{\parindent}{0cm}
% Environment for songs
\newcounter{song}[section]
\renewcommand*{\thesong}{%
\ifnum\value{song}=0 \fi
\ifnum\value{song}>0 \arabic{song}\fi
}
\newenvironment{song}[2]{
\begin{flushleft}
\stepcounter{song}\phantomsection\label{#2}\huge
\Alph{section}.\thesong \ifnum\value{song}>0 . \fi \ifnum\value{song}=0 \vspace{0.5cm} \fi #1\index{#1 @#1, \Alph{section}.\thesong, #2}
\end{flushleft}\vspace{-0.5cm}
}{\vspace{0.5cm}}
% Environment for verses
\newenvironment{vers}[0]{\Large\begin{flushleft}}{\end{flushleft}}
% Commands for comments
\newcommand{\mel}[1]{\begin{flushleft}\Large\emph{Mel: #1}\end{flushleft}}
\newcommand{\av}[1]{\begin{flushleft}\Large\emph{Av #1}\end{flushleft}}%
\newcommand{\kom}[1]{\begin{flushleft}\Large\emph{#1}\end{flushleft}}
% Repriser
\newcommand{\repopen}
{
\raisebox{-.4ex}{\rule{.2ex}{2.5ex}\,\rule{.1ex}{2.5ex}}
\hspace{-0.4ex}\raisebox{.2ex}{:}
}
\newcommand{\repclose}
{
\raisebox{.2ex}{:}\hspace{-0.4ex}
\raisebox{-.4ex}{\rule{.1ex}{2.5ex}\,\rule{.2ex}{2.5ex}}
}
% Kapitel titel
\usepackage{titlesec}
\titleformat*{\section}{\Huge}
% Ta bort nummer i section
\setcounter{secnumdepth}{-2}