Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a test to exercise per-line dimension changes. #250

Merged
merged 1 commit into from
Jul 4, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/tex-output/per-line-spaces/PopulusSion.gabc
Binary file not shown.
61 changes: 61 additions & 0 deletions tests/tex-output/per-line-spaces/per-line-spaces.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
% !TEX TS-program = lualatex
% !TEX encoding = UTF-8

% This is a simple template for a LuaLaTeX document using gregorio scores.

\documentclass[11pt]{article} % use larger type; default would be 10pt

% 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[allowdeprecated=false]{gregoriotex} % for gregorio score inclusion
\usepackage{fullpage} % to reduce the margins
\setmainfont[
Path = ../../../fonts/ ,
Extension = .otf ,
UprightFont = *-Regular ,
UprightFeatures = { SmallCapsFont = *SC-Regular } ,
BoldFont = *-Bold ,
BoldFeatures = { SmallCapsFont = *SC-Bold } ,
ItalicFont = *-Italic ,
ItalicFeatures = { SmallCapsFont = *SC-Italic } ,
BoldItalicFont = *-BoldItalic ,
BoldItalicFeatures = { SmallCapsFont = *SC-BoldItalic } ,
Ligatures = TeX
]{Alegreya}

% here we begin the document
\begin{document}

% 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://home.gna.org/gregorio/gregoriotex/details for more details and options
\grechangedim{afterinitialshift}{2.2mm}{scalable}
\grechangedim{beforeinitialshift}{2.2mm}{scalable}

% Here we set the initial font. Change 43 if you want a bigger initial.
\grechangestyle{initial}{%
\fontsize{43}{43}\selectfont%
}

% We set red lines here, comment it if you want black ones.
\gresetlinecolor{gregoriocolor}

% We set VII above the initial.
\grechangestyle{annotation}{\small\scshape\bfseries}
\greannotation{VII}

% We type a text in the top right corner of the score:
\grechangestyle{commentary}{\small\itshape}
\grecommentary{Cf. Is. 30, 19 . 30 ; Ps. 79}

\grechangenextscorelinedim{2}{spacelinestext}{2cm}{scalable}

% and finally we include the score. The file must be in the same directory as this one.
\gregorioscore[a]{PopulusSion}

\end{document}