X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tex%2Flily-ps-defs.tex;h=4a05f9d46fba820359d498e7d56eb8a9f41f3cef;hb=107c64cf5e5809fc09dd4823b7c5351a76875005;hp=8a4522a2e72048a8fe547e359ee2afc80d890ccf;hpb=1f0d3e5ed0e3b1f0a21a7d64e5b9c7e27bba4f5a;p=lilypond.git diff --git a/tex/lily-ps-defs.tex b/tex/lily-ps-defs.tex index 8a4522a2e7..4a05f9d46f 100644 --- a/tex/lily-ps-defs.tex +++ b/tex/lily-ps-defs.tex @@ -1,54 +1,43 @@ -% lily-ps-defs.tex -% +%% lily-ps-defs.tex +%% \edef\lilypsdefsELC{\the\endlinechar}% \endlinechar -1\relax -% Header info (macros/defs, etc) should go into a \special{! ... }; -% note the ! sign. See dvips.info for details. -% -% We protect punctuation characters with \string to avoid problems with -% language specific shorthands (e.g. `:' for French, `"' for German, etc.). +%% Header info (macros/defs, etc) should go into a \special{! ... }; +%% note the ! sign. See dvips.info for details. +%% +%% We protect punctuation characters with \string to avoid problems with +%% language specific shorthands (e.g. `:' for French, `"' for German, etc.). \gdef\lilypondsetdimen#1{ \expandafter\gdef\csname #1ps\endcsname{} \special{ \string! - /#1 (\csname #1\endcsname) set_tex_dimen - } -} + /#1 (\csname #1\endcsname) set_tex_dimen}} \gdef\lilypondspace{ } \gdef\lilypondpostscript{ - % A document processed with lilypond-book can contain music fragments in - % different sizes. To reduce overhead, we define `lyscaleXXX' PS macros - % only once. + %% A document processed with lilypond-book can contain music fragments in + %% different sizes. To reduce overhead, we define `lyscaleXXX' PS macros + %% only once. \lilypondifundefined{lyscale\lilypondpaperoutputscale} - { - \expandafter\gdef\csname lyscale\lilypondpaperoutputscale\endcsname{} - % This sets CTM so that you get to the currentpoint - % by executing a 0 0 moveto - \special{ - \string! - /lyscale\lilypondpaperoutputscale - {\lilypondpaperoutputscale\lilypondspace\scaletounit % - dup scale} def - } - } + {\expandafter\gdef\csname lyscale\lilypondpaperoutputscale\endcsname{} + %% This sets CTM so that you get to the currentpoint + %% by executing a 0 0 moveto + \special{ + \string! + /lyscale\lilypondpaperoutputscale + {\lilypondpaperoutputscale\lilypondspace\scaletounit % + dup scale} def}} {} \def\embeddedps##1{ \special{ \string" - lyscale\lilypondpaperoutputscale\lilypondspace ##1} - } - - \lilypondifundefined{lilypondpaperblotdiameterps} - {\lilypondsetdimen{lilypondpaperblotdiameter}} - {} -} - -\gdef\lilypondexperimentalfeatures{} + lyscale\lilypondpaperoutputscale\lilypondspace ##1}}} \endlinechar \lilypsdefsELC \endinput + +%% end lily-ps-defs.tex