diff options
Diffstat (limited to 'Master/texmf-dist/doc/luatex/gregoriotex/examples/main-lualatex.tex')
-rw-r--r-- | Master/texmf-dist/doc/luatex/gregoriotex/examples/main-lualatex.tex | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/Master/texmf-dist/doc/luatex/gregoriotex/examples/main-lualatex.tex b/Master/texmf-dist/doc/luatex/gregoriotex/examples/main-lualatex.tex index 018a0a06b37..9bbcb8552ad 100644 --- a/Master/texmf-dist/doc/luatex/gregoriotex/examples/main-lualatex.tex +++ b/Master/texmf-dist/doc/luatex/gregoriotex/examples/main-lualatex.tex @@ -1,47 +1,47 @@ % !TEX program = LuaLaTeX+se -% This is a simple template for a LuaLaTeX document using gregorio scores. +% Simple template for using Gregorio scores in a LuaLaTeX document. -\documentclass[11pt]{article} % use larger type; default would be 10pt +\documentclass{scrartcl} % set document class: manual at https://ctan.org/pkg/koma-script -% usual packages loading: -\usepackage{fontspec} -\usepackage{graphicx} % support the \includegraphics command and options -\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots. -\geometry{a4paper} % or letterpaper (US) or a5paper or.... -\usepackage{gregoriotex} % for gregorio score inclusion -\usepackage{fullpage} % to reduce the margins -\usepackage{libertine} % Decent (free) font for Gregorian, but should be changed if you have high standards +% Load packages: +\usepackage[osf,p]{libertine} % set font +\usepackage{gregoriotex} % enable Gregorio score inclusion +\usepackage[latin]{babel} % set language -\begin{document} +\setkomafont{section}{\normalfont\centering\huge\scshape} % section heading style +\setcounter{secnumdepth}{-\maxdimen} % remove section numbering -% The title: -\begin{center}\begin{huge}\textsc{Populus Sion}\end{huge}\end{center} -% Here we set the space around the initial. -% Please report to http://gregorio-project.github.io/gregoriotex/details.html for more details and options +% Set the space around the initial: +% See http://gregorio-project.github.io/gregoriotex/details.html for more details and options \grechangedim{beforeinitialshift}{2.2mm}{scalable} \grechangedim{afterinitialshift}{2.2mm}{scalable} -% Here we set the initial font. Change 43 if you want a bigger initial. +% Set the initial font (change 43 for a larger size): \grechangestyle{initial}{\fontsize{43}{43}\selectfont}% -% We set red lines here, comment it if you want black ones. +% Make staff lines red; remove for black: \gresetlinecolor{gregoriocolor} -% We set VII above the initial manually +% Use the "commentary" field of the score in the top right corner: +\gresetheadercapture{commentary}{grecommentary}{string} + +% Format annotation above initial \grechangestyle{annotation}{\small\bfseries} -\greannotation{Intr.} -\greannotation{\textsc{vii}} -% We use the "commentary" field of the score in the top right corner: -\gresetheadercapture{commentary}{grecommentary}{string} +\begin{document} + +\section{Populus Sion} + +% Add VII above the initial manually: +\greannotation{Intr.} % first line +\greannotation{\textsc{vii}} % second line -% and finally we include the scores. The file must be in the same directory as this one. +% Include the score; the file must be in the same directory: \gregorioscore[a]{PopulusSion} -\bigskip -\begin{center}\begin{huge}\textsc{Factus Est}\end{huge}\end{center} +\section{Factus est} \gregorioscore[a]{FactusEst} |