-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspiewnik.tex
94 lines (82 loc) · 1.59 KB
/
spiewnik.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
\documentclass[a5paper,twoside,12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[bookmarks]{hyperref}
\usepackage{authblk}
\usepackage[margin=1.5cm]{geometry}
\usepackage{indentfirst}
\usepackage{framed}
\usepackage{bookmark}
% Change the leftbar width
\renewenvironment{leftbar}[1][\hsize]
{%
\def\FrameCommand
{%
{\vrule width 2pt}
\hspace{2pt}
\fboxsep=\FrameSep
}%
\MakeFramed{\hsize#1\advance\hsize-\width\FrameRestore}%
}
{\endMakeFramed}
% Do not prefix section with a number but still list it in content
\makeatletter
\def\@seccntformat#1{%
\expandafter\ifx\csname c@#1\endcsname\c@section\else
\csname the#1\endcsname\quad
\fi}
\makeatother
\newcommand*\stanza{%
\par
\begingroup
\parindent=0pt
\obeylines
\obeyspaces
\stanzax
}
\newcommand*\chorus{%
\par
\begingroup
\parindent=0pt
\obeylines
\obeyspaces
\begin{leftbar}
\chorusx
}
\newcommand\stanzax[1]{%
\filbreak
#1%
\vspace*{0.5cm}
\par
\endgroup
}
\newcommand\chorusx[1]{%
\filbreak
#1%
\end{leftbar}
\vspace*{0.5cm}
\par
\endgroup
}
\let\stdsection\section
\renewcommand\section{\newpage\stdsection}
\renewcommand{\contentsname}{Spis treści}
\begin{document}
\title{Kolędy i pastorałki}
\author{Rodziny Sielskich}
\date{Grudzień 2020}
\pagestyle{empty}
\maketitle
\vfill
\begin{flushright}
\stanza{
Dla naszych rodziców i dziadków
Mirosławy i Romana Sielskich
}
\end{flushright}
\leavevmode\thispagestyle{empty}\newpage
\tableofcontents
\newpage
\pagestyle{plain}
\input{koledy}
\end{document}