diff options
Diffstat (limited to 'tex/context/base/spec-yy.tex')
-rw-r--r-- | tex/context/base/spec-yy.tex | 146 |
1 files changed, 73 insertions, 73 deletions
diff --git a/tex/context/base/spec-yy.tex b/tex/context/base/spec-yy.tex index 885c6be01..324ec1db9 100644 --- a/tex/context/base/spec-yy.tex +++ b/tex/context/base/spec-yy.tex @@ -1,73 +1,73 @@ -%D \module
-%D [ file=spec-yy,
-%D version=1996.01.25,
-%D title=\CONTEXT\ Special Macros,
-%D subtitle=\YandY's \DVIPSONE\ and \DVIWINDO,
-%D author=Hans Hagen,
-%D date=\currentdate,
-%D copyright={PRAGMA / Hans Hagen \& Ton Otten}]
-%C
-%C This module is part of the \CONTEXT\ macro||package and is
-%C therefore copyrighted by \PRAGMA. Non||commercial use is
-%C granted.
-
-%D \macros
-%D {dostartgraymode,dostopgraymode,
-%D dostartrgbcolormode,dostartcmykcolormode,dostartgraycolormode,dostopcolormode,
-%D doinsertfile}
-%D {}
-%D
-%D We implement a nice and simple figure||insertion special
-%D and make use of \YandY's color specials. Otherwise \DVIWINDO\
-%D would not show colors.
-
-\startspecials[yandy] % [postscript]
-
-\def\@@insertpostscriptliteral {ps: }
-\def\@@insertpostscriptretain {" } % this was: {postscript}
-
-\definespecial\dostartgraymode#1%
- {\special{color gray #1}}
-
-\definespecial\dostopgraymode%
- {\special{color gray 0}}
-
-\definespecial\dostartrgbcolormode#1#2#3%
- {\special{color rgb #1 #2 #3}}
-
-\definespecial\dostartcmykcolormode#1#2#3#4%
- {\special{color cmyk #1 #2 #3 #4}}
-
-\definespecial\dostartgraycolormode#1%
- {\special{color gray #1}}
-
-\definespecial\dostopcolormode%
- {\special{color gray 0}}
-
-\def\doyyinserteps#1#2#3#4#5#6#7#8% equals rockiky
- {\ScaledPointsToBigPoints{#4}\width
- \ScaledPointsToBigPoints{#5}\height
- \special
- {psfile=#1
- hscale=#2\space
- vscale=#3\space
- hoffset=\width \space
- voffset=\height}}
-
-\def\doyyinsertmps#1#2#3#4#5#6#7#8%
- {\hbox
- {\UseMetaPostGraphic{#1}%
- \doyyinserteps{#1}{#2}{#3}{#4}{#5}{#6}{#7}{#8}}}
-
-\def\doyyinserttif#1#2#3#4#5#6#7#8%
- {\special{insertimage: #1 #6 #7}}
-
-\definespecial\doinsertfile#1#2#3#4#5#6#7#8#9%
- {\bgroup
- \dodoinsertfile{yy}{#1}{#2}{#3}{#4}{#5}{#6}{#7}{#8}{#9}%
- \egroup}
-
-\stopspecials
-
-\endinput
-
\ No newline at end of file +%D \module +%D [ file=spec-yy, +%D version=1996.01.25, +%D title=\CONTEXT\ Special Macros, +%D subtitle=\YandY's \DVIPSONE\ and \DVIWINDO, +%D author=Hans Hagen, +%D date=\currentdate, +%D copyright={PRAGMA / Hans Hagen \& Ton Otten}] +%C +%C This module is part of the \CONTEXT\ macro||package and is +%C therefore copyrighted by \PRAGMA. Non||commercial use is +%C granted. + +%D \macros +%D {dostartgraymode,dostopgraymode, +%D dostartrgbcolormode,dostartcmykcolormode,dostartgraycolormode,dostopcolormode, +%D doinsertfile} +%D {} +%D +%D We implement a nice and simple figure||insertion special +%D and make use of \YandY's color specials. Otherwise \DVIWINDO\ +%D would not show colors. + +\startspecials[yandy] + +\def\@@insertpostscriptliteral {ps: } +\def\@@insertpostscriptretain {" } % this was: {postscript} + +\definespecial\dostartgraymode#1% + {\special{color gray #1}} + +\definespecial\dostopgraymode% + {\special{color gray 0}} + +\definespecial\dostartrgbcolormode#1#2#3% + {\special{color rgb #1 #2 #3}} + +\definespecial\dostartcmykcolormode#1#2#3#4% + {\special{color cmyk #1 #2 #3 #4}} + +\definespecial\dostartgraycolormode#1% + {\special{color gray #1}} + +\definespecial\dostopcolormode% + {\special{color gray 0}} + +\definefileinsertion{yy}{eps}#1#2#3#4#5#6#7#8#9% + {\ScaledPointsToBigPoints{#5}\width + \ScaledPointsToBigPoints{#6}\height + \special + {psfile=#1 + hscale=#3\space + vscale=#4\space + hoffset=\width \space + voffset=\height}} + +\definefileinsertion{yy}{mps}#1#2#3#4#5#6#7#8#9% + {\hbox + {\includeMPfonts{#1}% + \convertMPcolors{#1}% + \dofileinsertion{yy}{eps}{#1}{#2}{#3}{#4}{#5}{#6}{#7}{#8}{#9}}} + +\definefileinsertion{yy}{tif}#1#2#3#4#5#6#7#8#9% + {\special{insertimage: #1 #7 #8}} + +\definespecial\doinsertfile#1#2#3#4#5#6#7#8#9% + {\bgroup + \dodoinsertfile{yy}{#1}{#2}{#3}{#4}{#5}{#6}{#7}{#8}{#9}% + \egroup} + +\stopspecials + +\endinput |