diff options
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/gregoriotex/gregoriotex.sty')
-rw-r--r-- | Master/texmf-dist/tex/lualatex/gregoriotex/gregoriotex.sty | 137 |
1 files changed, 61 insertions, 76 deletions
diff --git a/Master/texmf-dist/tex/lualatex/gregoriotex/gregoriotex.sty b/Master/texmf-dist/tex/lualatex/gregoriotex/gregoriotex.sty index aadc23ec90e..7fcdd0187cb 100644 --- a/Master/texmf-dist/tex/lualatex/gregoriotex/gregoriotex.sty +++ b/Master/texmf-dist/tex/lualatex/gregoriotex/gregoriotex.sty @@ -19,7 +19,7 @@ \NeedsTeXFormat{LaTeX2e}% \ProvidesPackage{gregoriotex}% - [2016/03/10 v4.1.1 GregorioTeX system.]% PARSE_VERSION_DATE_LTX + [2016/04/27 v4.2.0-beta1 GregorioTeX system.]% PARSE_VERSION_DATE_LTX % If gregoriosyms has been loaded then there are going to be some conflicts in the definitions made in that package and this one. In order to provide for a more informative error message, we check for that conflict right away \ifcsname gregoriotex@symbols@loaded\endcsname\gre@error{Loading gregoriotex after\MessageBreak gregoriosyms is not supported. Please remove the\MessageBreak loading of gregoriosyms (its contents are loaded\MessageBreak by gregoriotex)}\fi% @@ -38,11 +38,11 @@ \def\gre@bug#1{\PackageError{GregorioTeX}{#1 !! This is a bug in Gregorio. Please report it at https://github.com/gregorio-project/gregorio/issues}{}}% \def\gre@typeout{\typeout} \long\def\gre@metapost#1{{% - \gre@localleftbox{}% - \gre@localrightbox{}% - \begin{mplibcode} - #1 - \end{mplibcode}% + \gre@localleftbox{}% + \gre@localrightbox{}% + \begin{mplibcode} + #1 + \end{mplibcode}% }}% \SetupKeyvalOptions{prefix=gre@} @@ -74,145 +74,130 @@ \gresetlinesbehindalteration{invisible} \gresetlinesbehindpunctumcavum{invisible} -%% We now redefine some things in a more LaTeX friendly way. +%%%%%%%%% +%% Color definitions +%%%%%%%%% \definecolor{grebackgroundcolor}{RGB}{255,255,255}% -\definecolor{gregoriocolor}{RGB}{229,53,44} +\definecolor{gregoriocolor}{RGB}{229,53,44}% %%%%%%%%% %% LaTeX specific definitions for fonts %%%%%%%%% \def\GreItalic#1{% - \textit{#1}% - \relax % + \textit{#1}% + \relax % } \def\GreSmallCaps#1{% - \textsc{#1}% - \relax % + \textsc{#1}% + \relax % } \def\GreBold#1{% - \textbf{#1}% - \relax % + \textbf{#1}% + \relax % } \def\GreTypewriter#1{% - \texttt{#1}% - \relax % + \texttt{#1}% + \relax % } \def\GreUnderline#1{% - \underline{#1}% - \relax % + \underline{#1}% + \relax % } \def\GreColored#1{% - {% - \color{gregoriocolor}#1% - }% + {% + \color{gregoriocolor}#1% + }% } \def\gresetlinecolor#1{% - \gre@changestyle{normalstafflines}{\color[named]{#1}}[\relax]% -} - -\def\grecoloredlines#1#2#3{%OBSOLETE - \gre@obsolete{\protect\grecoloredlines}{\protect\gresetlinecolor}% -} - -\def\greredlines{%OBSOLETE - \gre@obsolete{\protect\greredlines}{\protect\gresetlinecolor{gregoriocolor}}% - \relax % -} - -\let\redlines\greredlines%OBSOLETE - -\def\grenormallines{%OBSOLETE - \gre@obsolete{\protect\grenormallines}{\protect\gresetlinecolor{black}}% - \relax % + \gre@changestyle{normalstafflines}{\color[named]{#1}}[\relax]% } -\let\normallines\grenormallines%OBSOLETE %%%%%%%%%%%%%%%%%%%% %% Formatting environments %%%%%%%%%%%%%%%%%%%% \newenvironment{gre@style@initial}% - {\begingroup\fontsize{40}{40}\selectfont}% - {\endgroup}% + {\begingroup\fontsize{40}{40}\selectfont}% + {\endgroup}% \newenvironment{gre@style@biginitial}%%% DEPRECATED for removal in 5.0 - {\begingroup\fontsize{80}{80}\selectfont}%%% DEPRECATED for removal in 5.0 - {\endgroup}%%% DEPRECATED for removal in 5.0 + {\begingroup\fontsize{80}{80}\selectfont}%%% DEPRECATED for removal in 5.0 + {\endgroup}%%% DEPRECATED for removal in 5.0 \newenvironment{gre@style@translation}% - {\begingroup\itshape}% - {\endgroup}% + {\begingroup\itshape}% + {\endgroup}% \newenvironment{gre@style@abovelinestext}% - {\begingroup\small\itshape}% - {\endgroup}% + {\begingroup\small\itshape}% + {\endgroup}% \newenvironment{gre@style@normalstafflines}% - {\begingroup}% - {\endgroup}% + {\begingroup}% + {\endgroup}% \newenvironment{gre@style@additionalstafflines}% - {\begingroup\begin{gre@style@normalstafflines}}% - {\end{gre@style@normalstafflines}\endgroup}% + {\begingroup\begin{gre@style@normalstafflines}}% + {\end{gre@style@normalstafflines}\endgroup}% \newenvironment{gre@style@lowchoralsign}% - {\begingroup}% - {\endgroup}% + {\begingroup}% + {\endgroup}% \newenvironment{gre@style@highchoralsign}% - {\begingroup}% - {\endgroup}% + {\begingroup}% + {\endgroup}% \newenvironment{gre@style@firstsyllableinitial}% - {\begingroup}% - {\endgroup}% + {\begingroup}% + {\endgroup}% \newenvironment{gre@style@firstsyllable}% - {\begingroup}% - {\endgroup}% + {\begingroup}% + {\endgroup}% \newenvironment{gre@style@firstword}% - {\begingroup}% - {\endgroup}% + {\begingroup}% + {\endgroup}% \newenvironment{gre@style@modeline}% - {\begingroup\begin{scshape}\begin{bfseries}}% - {\end{bfseries}\end{scshape}\endgroup}% + {\begingroup\begin{scshape}\begin{bfseries}}% + {\end{bfseries}\end{scshape}\endgroup}% \newenvironment{gre@style@modemodifier}% - {\begingroup\begin{bfseries}\itshape\@@italiccorr}% - {\@@italiccorr\end{bfseries}\endgroup}% + {\begingroup\begin{bfseries}\itshape\@@italiccorr}% + {\@@italiccorr\end{bfseries}\endgroup}% \newenvironment{gre@style@modedifferentia}% - {\begingroup\begin{bfseries}}% - {\end{bfseries}\endgroup}% + {\begingroup\begin{bfseries}}% + {\end{bfseries}\endgroup}% \newenvironment{gre@style@annotation}% - {\begingroup}% - {\endgroup}% + {\begingroup}% + {\endgroup}% \newenvironment{gre@style@commentary}% - {\begingroup\footnotesize\itshape}% - {\endgroup}% + {\begingroup\footnotesize\itshape}% + {\endgroup}% \newenvironment{gre@style@elision}% - {\begingroup\small\itshape\@@italiccorr}% - {\@@italiccorr\endgroup}% + {\begingroup\small\itshape\@@italiccorr}% + {\@@italiccorr\endgroup}% \newenvironment{gre@style@nabc}% - {\begingroup\color{red}}% - {\endgroup}% + {\begingroup\color{gregoriocolor}}% + {\endgroup}% \def\gre@changestyle#1#2[#3]{% - \renewenvironment{gre@style@#1}{\begingroup#2}{#3\endgroup}% + \renewenvironment{gre@style@#1}{\begingroup#2}{#3\endgroup}% }% |