diff options
author | Norbert Preining <norbert@preining.info> | 2021-03-02 03:04:42 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-03-02 03:04:42 +0000 |
commit | 4763ec8ceefaf2b038d591b8c15d88d081aec6c9 (patch) | |
tree | 113e7c21358dd01318b8e7a1e3f3228ec33bc563 /support/gregoriotex/doc/examples/main-lualatex.tex | |
parent | 3a1a102e980610859d9f1b197733d6ce6a541c62 (diff) |
CTAN sync 202103020304
Diffstat (limited to 'support/gregoriotex/doc/examples/main-lualatex.tex')
-rw-r--r-- | support/gregoriotex/doc/examples/main-lualatex.tex | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/support/gregoriotex/doc/examples/main-lualatex.tex b/support/gregoriotex/doc/examples/main-lualatex.tex index 018a0a06b3..9bbcb8552a 100644 --- a/support/gregoriotex/doc/examples/main-lualatex.tex +++ b/support/gregoriotex/doc/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} |