| 1 |
% !TEX program = LuaLaTeX+se |
| 2 |
|
| 3 |
% Simple template for using Gregorio scores in a LuaLaTeX document. |
| 4 |
|
| 5 |
\documentclass{scrartcl} % set document class: manual at https://ctan.org/pkg/koma-script |
| 6 |
|
| 7 |
% Load packages: |
| 8 |
\usepackage[osf,p]{libertine} % set font |
| 9 |
\usepackage{gregoriotex} % enable Gregorio score inclusion |
| 10 |
\usepackage[latin]{babel} % set language |
| 11 |
|
| 12 |
\setkomafont{section}{\normalfont\centering\huge\scshape} % section heading style |
| 13 |
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering |
| 14 |
|
| 15 |
|
| 16 |
% Set the space around the initial: |
| 17 |
% See http://gregorio-project.github.io/gregoriotex/details.html for more details and options |
| 18 |
\grechangedim{beforeinitialshift}{2.2mm}{scalable} |
| 19 |
\grechangedim{afterinitialshift}{2.2mm}{scalable} |
| 20 |
|
| 21 |
% Set the initial font (change 43 for a larger size): |
| 22 |
\grechangestyle{initial}{\fontsize{43}{43}\selectfont}% |
| 23 |
|
| 24 |
% Make staff lines red; remove for black: |
| 25 |
\gresetlinecolor{gregoriocolor} |
| 26 |
|
| 27 |
% Use the "commentary" field of the score in the top right corner: |
| 28 |
\gresetheadercapture{commentary}{grecommentary}{string} |
| 29 |
|
| 30 |
% Format annotation above initial |
| 31 |
\grechangestyle{annotation}{\small\bfseries} |
| 32 |
|
| 33 |
\begin{document} |
| 34 |
|
| 35 |
\section{Populus Sion} |
| 36 |
|
| 37 |
% Add VII above the initial manually: |
| 38 |
\greannotation{Intr.} % first line |
| 39 |
\greannotation{\textsc{vii}} % second line |
| 40 |
|
| 41 |
% Include the score; the file must be in the same directory: |
| 42 |
\gregorioscore[a]{PopulusSion} |
| 43 |
|
| 44 |
\section{Factus est} |
| 45 |
|
| 46 |
\gregorioscore[a]{FactusEst} |
| 47 |
|
| 48 |
\end{document} |