-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsautier_nocturne_fr.tex
168 lines (150 loc) · 5.11 KB
/
psautier_nocturne_fr.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
163
164
165
166
167
% !TEX TS-program = lualatex
% !TEX encoding = UTF-8
\documentclass[11pt, twoside, french]{book}
\input{nocturnale-romanum/common_headers}
\usepackage{paracol}
\usepackage{alltt}
%% Specific geometry for KDP printing
\geometry{
paperwidth=8in,
paperheight=10in,
inner=25mm,
outer=10mm,
top=14mm,
bottom=13mm,
headsep=3mm,
}
% this updates the length used by fancyhead, otherwise the header is screwed up by the geometry change
\fancyhfoffset[E,O]{0pt}
%% outputs a score with label, indexing, and annotations. no initials if [n] is passed
\makeatletter
\renewcommand{\gscore}[6][y]{
%% #1 (passed as option) : y = initial, n = no initial
%% #2 : name of the score file, should be a code, e.g. Q4F4A3 or 1225N1R1
%% #3 : office-part among the values: T, H, A, P, R, I (toni communes, hy., ant., psalmus, resp., invit.)
%% #4 : if applicable, a number between 1 and 9 (rank of the ant./resp.) - else: empty
%% #5 : the indexed name of the piece
%% #6 (specific to scores with translations) translation.
%% this prevents page breaks between the phantom section and its label, and the actual score.
\needspace{4\baselineskip}
\protected@edef\@currentlabelname{#5}
\phantomsection
\label{#2}
%% we add the office part, and number of that ant. or resp. in the current office, if applicable
%% todo : the negative hspace is here because somehow the initial and annotation (first line only) are misaligned by 1mm _with this initial font size_.
%% this should probably be fixed in a more elegant way.
\greannotation[c]{\hspace{-1.4mm}\hspace{\defaultannotationshift}\officepartannotation{#3}#4}
%% if #5 (indexed name) is blank, nothing is indexed.
%% this is for pieces that are repetitions of another piece (antiphons after psalms)
\ifblank{#5}{}{\index[#3]{#5}}
%% if optional arg #1 has been passed as 'n', set no initial
\ifx n#1\gresetinitiallines{0}\fi
%% the use of a directory called "gabc" is linked
%% to the management of gabc files by the website: do not change
%% without also changing the website static files structure
\columnratio{0.75}
\ifblank{#6}{\gregorioscore{\subfix{nocturnale-romanum/gabc/#2}}}{%
\begin{paracol}{2}
\gregorioscore{\subfix{nocturnale-romanum/gabc/#2}}
\switchcolumn
\emph{\footnotesize #6}
\end{paracol}
}
\columnratio{0.5}
%% if optional arg #1 has been passed as 'n', unset no initial
\ifx n#1\gresetinitiallines{1}\fi
\vspace{1mm}
}
\makeatother
\newcommand{\psaume}[2]{
\vspace{0.5\baselineskip}
\needspace{5\baselineskip}
\phantomsection
\label{Psalm#1_#2}
\index[P]{#1 (mode #2)}
\smalltitle{Psaume #1}
\vspace{2mm}
\begin{paracol}{2}
\begin{itemize}[
label=\null,
leftmargin=0pt,
itemindent=10pt,
labelsep=0pt,
labelwidth=0pt,
rightmargin=0pt,
parsep=0pt,
itemsep=0pt,
topsep=-2mm]
\input{nocturnale-romanum/psalmi/#1_#2.tex}
\end{itemize}
\switchcolumn
\begin{itemize}[
label=\null,
leftmargin=0pt,
itemindent=10pt,
labelsep=0pt,
labelwidth=0pt,
rightmargin=0pt,
parsep=0pt,
itemsep=0pt,
topsep=-2mm]
\input{psaumes_fr/#1.tex}
\end{itemize}
\end{paracol}
}
\renewcommand{\nocturn}[1]{
\ifx 1#1\intermediatetitle{Premier nocturne}\fi
\ifx 2#1\intermediatetitle{Deuxième nocturne}\fi
\ifx 3#1\intermediatetitle{Troisième nocturne}\fi
}
% We do not display NABC in this instance. This can be deactivated for NABC to show up.
\gresetnabc{1}{invisible}
\begin{document}
\twosided[pc]
\customsubfile{pnfr01_prolegomena}
\customsubfile{pnfr10_ordinaire_psautier}
%\customsubfile{nr10_tempus_adventus}
%\customsubfile{nr11_tempus_nativitatis}
%\customsubfile{nr12_tempus_post_epiphaniam}
%\customsubfile{nr13_tempus_quadragesimae}
%\customsubfile{nr14_tempus_passionis}
%\customsubfile{nr15_tempus_paschale}
%\customsubfile{nr16_tempus_post_pentecosten}
%\customsubfile{nr17_tempus_augusti_septembri}
%\customsubfile{nr18_tempus_octobri_novembri}
%\customsubfile{nr20_psalterium_ordinarium}
%\customsubfile{nr21_psalterium_hebdomada}
%\customsubfile{nr30_commune_apostolorum}
%\customsubfile{nr31_commune_martyrum}
%\customsubfile{nr32_commune_confessoris}
%\customsubfile{nr33_commune_mulierum}
%\customsubfile{nr34_commune_dedicationis}
%\customsubfile{nr35_commune_bmv}
%\customsubfile{nr36_officium_defunctorum}
%\customsubfile{nr40_sanctorale_januarii}
%\customsubfile{nr41_sanctorale_februarii}
%\customsubfile{nr42_sanctorale_martii}
%\customsubfile{nr43_sanctorale_aprilis}
%\customsubfile{nr44_sanctorale_maii}
%\customsubfile{nr45_sanctorale_junii}
%\customsubfile{nr46_sanctorale_julii}
%\customsubfile{nr47_sanctorale_augusti}
%\customsubfile{nr48_sanctorale_septembris}
%\customsubfile{nr49_sanctorale_octobris}
%\customsubfile{nr50_sanctorale_novembris}
%\customsubfile{nr51_sanctorale_decembris}
%\newpage
%\addcontentsline{toc}{chapter}{Index}
%\cprintindex{I}{Index des Invitatoires}
%\cprintindex{H}{Index des Hymnes}
%\cprintindex{A}{Index des Antiennes}
%\cprintindex{T}{Index des Tons communs}
\renewcommand\contentsname{Table des matières}
%% This allows printing the TOC starting on a left page
\makeatletter
\@openrightfalse
\tableofcontents
\@openrighttrue
\makeatother
\thispagestyle{empty}
\end{document}