From ad547a6b5986815fda458221149728d9d9ab1d87 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 25 Feb 2021 19:22:25 +0000 Subject: restore Build,TODO from r57911 git-svn-id: svn://tug.org/texlive/trunk@57915 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipsk/tex/blackdvi.tex | 109 +++++++++++++++++++ Build/source/texk/dvipsk/tex/colordvi.tex | 162 +++++++++++++++++++++++++++++ Build/source/texk/dvipsk/tex/rotate.tex | 43 ++++++++ Build/source/texk/dvipsk/tex/rotsample.tex | 32 ++++++ 4 files changed, 346 insertions(+) create mode 100644 Build/source/texk/dvipsk/tex/blackdvi.tex create mode 100644 Build/source/texk/dvipsk/tex/colordvi.tex create mode 100644 Build/source/texk/dvipsk/tex/rotate.tex create mode 100644 Build/source/texk/dvipsk/tex/rotsample.tex (limited to 'Build/source/texk/dvipsk/tex') diff --git a/Build/source/texk/dvipsk/tex/blackdvi.tex b/Build/source/texk/dvipsk/tex/blackdvi.tex new file mode 100644 index 00000000000..d4e4e60b2f8 --- /dev/null +++ b/Build/source/texk/dvipsk/tex/blackdvi.tex @@ -0,0 +1,109 @@ +% This is BLACKDVI.STY and BLACKDVI.TEX in text format, as of March 5, +% 1992, written by Jim Hafner, HAFNER@ALMADEN, or hafner@almaden.ibm.com. +% This file turns all color commands defined by COLORDVI.STY or COLORDVI.TEX +% into no-ops and so can be used to get B/W printing without having to +% ferret out all the color macros. Modified by Tomas Rokicki to be a +% bit smaller. Same license as dvips. +% +% 20 Aug. 1992: Revised by J. Hafner, by adding \globalColor as a no-op. +% +% For example, with FoilTeX, just use +% \documentstyle[blackdvi]{foils} +% in place of +% \documentstyle[colordvi]{foils} +% +% This file can be used anywhere COLORDVI.STY or COLORDVI.TEX is used. In +% particular, It can be used in any flavor of LaTeX (e.g. LaTeX, +% FoilTeX, AMS-LaTeX) by adding the keyword "blackdvi" to the options in +% the \documentstyle command (e.g., "\documentstyle[blackdvi]{foils}") or +% \input in any flavor of TeX (e.g. Plain TeX, eplain, AMS-TeX or any of +% the above LaTeX flavors) with the command "\input blackdvi". +% +% Here is the background command +\def\background#1{}% +% +% This is used to define all the \newColor macros defined by \newColor +% as no-ops. +\def\newColor #1 {\expandafter\def\csname text#1\endcsname{}% + \expandafter\def\csname #1\endcsname##1{##1}}% +% +% Here are the two macros used for user-definable colors +\def\textColor#1{} +\def\Color#1#2{#2} +% +% This is the macro that is used to protect certain regions of the +% text from corruption by local color commands. See COLORDVI.STY for +% more information. We make it a no-op in this style. +\def\globalColor#1{#1} +% +% Here are the preset color names. This list should match the list +% in . +% +\newColor GreenYellow +\newColor Yellow +\newColor Goldenrod +\newColor Dandelion +\newColor Apricot +\newColor Peach +\newColor Melon +\newColor YellowOrange +\newColor Orange +\newColor BurntOrange +\newColor Bittersweet +\newColor RedOrange +\newColor Mahogany +\newColor Maroon +\newColor BrickRed +\newColor Red +\newColor OrangeRed +\newColor RubineRed +\newColor WildStrawberry +\newColor Salmon +\newColor CarnationPink +\newColor Magenta +\newColor VioletRed +\newColor Rhodamine +\newColor Mulberry +\newColor RedViolet +\newColor Fuchsia +\newColor Lavender +\newColor Thistle +\newColor Orchid +\newColor DarkOrchid +\newColor Purple +\newColor Plum +\newColor Violet +\newColor RoyalPurple +\newColor BlueViolet +\newColor Periwinkle +\newColor CadetBlue +\newColor CornflowerBlue +\newColor MidnightBlue +\newColor NavyBlue +\newColor RoyalBlue +\newColor Blue +\newColor Cerulean +\newColor Cyan +\newColor ProcessBlue +\newColor SkyBlue +\newColor Turquoise +\newColor TealBlue +\newColor Aquamarine +\newColor BlueGreen +\newColor Emerald +\newColor JungleGreen +\newColor SeaGreen +\newColor Green +\newColor ForestGreen +\newColor PineGreen +\newColor LimeGreen +\newColor YellowGreen +\newColor SpringGreen +\newColor OliveGreen +\newColor RawSienna +\newColor Sepia +\newColor Brown +\newColor Tan +\newColor Gray +\newColor Black +\newColor White diff --git a/Build/source/texk/dvipsk/tex/colordvi.tex b/Build/source/texk/dvipsk/tex/colordvi.tex new file mode 100644 index 00000000000..541a9ab8a55 --- /dev/null +++ b/Build/source/texk/dvipsk/tex/colordvi.tex @@ -0,0 +1,162 @@ +% This is COLORDVI.TEX and COLORDVI.STY in text format, as of +% March 5, 1992, written by Jim Hafner, HAFNER@ALMADEN, or +% hafner@almaden.ibm.com. Modified by Tomas Rokicki to be a +% bit smaller and easier to add to. Same license as dvips. +% +% 20 Aug. 1992: Revised by J. Hafner, by adding \globalColor. +% +% This style file can be used to get color in TeX, LaTeX or more +% importantly, FoilTeX as an optional style file. It is generic in +% that the color parameters are determined by the driver's header files. +% +% It can be used with any driver which knows how to process the keywords +% in the \special commands. Currently, only versions of dvips greater +% than 5.478 (dvips is the DVI->PostScript driver by Tom Rokicki) and +% TeXview on the NeXT interpret these specials. +% +% This file can be used in any flavor of LaTeX (e.g. LaTeX, FoilTeX, +% AMS-LaTeX) by adding the keyword "colordvi" to the options in the +% \documentstyle command (e.g., "\documentstyle[colordvi]{foils}") or \input +% in any flavor of TeX (e.g. Plain TeX, eplain, AMS-TeX or any of the +% above LaTeX flavors) with the command "\input colordvi". +% +% The actual parameters for each color are determined by the device +% driver. +% For "dvips", that is the header file color.pro prepended to the +% output file by dvips. They can be overrriden by a user-supplied +% header, called by either the -h option or the "h" flag in a printer +% configuration file, or in the .dvipsrc (or its analogue on other +% systems). +% +% Most of the color names and their matches were based on the +% most recent (at time of writing) Crayola Crayon box of 64 colors. +% +% There are 68 predefined colors. At the end of this file is a +% listing of the color names and their approximate PANTONE color +% match. This is for reference purposes only. +% +% The first macro lets the user specify the background color for the +% document. It sets the background color for the current page and all +% succeeding pages, unless changed by another command of this type. To +% change the background color back to the default, issue +% \background{White} +% +\def\background#1{\special{background #1}} +% +% There are two types of text color commands. The first is in the form +% \ColorName (note the uppercase for the color name). +% +% It is called a local color command since it takes one argument +% enclosed in brackets. It writes the contents of its argument in the +% selected color. This should be used for local or nested color +% changes, since it restores the original color state when it completes. +% The second type of color command is in the form +% \textColorName +% This uses the same naming convention as before. It is called a global +% color command since it takes no arguments and simply sets the color at +% this point. No previous color information is saved. IF YOU USE THIS +% INTERNAL TO ANY LOCAL COLOR COMMAND, THE NESTING HISTORY IS LOST. +% +% This next definition is used in an invocation of a \textColorName +% macro to save the global color value in local form via the \globalColor +% macro. This new macro can then be used to protect certain regions of +% the text, like item tags and headers and footers which can be +% corrupted by local colors. In particular, item tags in lists can +% incorrectly inherit the color from a local color command immediately +% following it. The \subdef macro is invoked within the invocation of a +% global color change. +% +\def\subdef#1{\gdef\globalColor##1{\special + {color push #1}##1\special{color pop}}} +% +% Here are the global color changers, with color codes defined; +% these are used to define the small region colors. +% +% This first is for user defined color. The argument #1 is for a "CMYK" +% quadruple of intensity values between 0 and 1. (CMYK stands for Cyan, +% Magenta, Yellow and Black.) E.g., \textColor{.2 .3 .4 .1} +% +\def\textColor#1{\subdef{cmyk #1}\special{color cmyk #1}} +% +% and a userdefinable local color command. +\def\Color#1#2{\special{color push cmyk #1}#2\special{color pop}} +% +% +\def\newColor #1 {\expandafter\def\csname #1\endcsname##1{\special + {color push #1}##1\special{color pop}}% + \expandafter\def\csname text#1\endcsname{\subdef{#1}% + \special{color #1}}}% +% +% Here are the color names and their PANTONE match (approximately) +% +\newColor GreenYellow % GreenYellow Approximate PANTONE 388 +\newColor Yellow % Yellow Approximate PANTONE YELLOW +\newColor Goldenrod % Goldenrod Approximate PANTONE 109 +\newColor Dandelion % Dandelion Approximate PANTONE 123 +\newColor Apricot % Apricot Approximate PANTONE 1565 +\newColor Peach % Peach Approximate PANTONE 164 +\newColor Melon % Melon Approximate PANTONE 177 +\newColor YellowOrange % YellowOrange Approximate PANTONE 130 +\newColor Orange % Orange Approximate PANTONE ORANGE-021 +\newColor BurntOrange % BurntOrange Approximate PANTONE 388 +\newColor Bittersweet % Bittersweet Approximate PANTONE 167 +\newColor RedOrange % RedOrange Approximate PANTONE 179 +\newColor Mahogany % Mahogany Approximate PANTONE 484 +\newColor Maroon % Maroon Approximate PANTONE 201 +\newColor BrickRed % BrickRed Approximate PANTONE 1805 +\newColor Red % Red VERY-Approx PANTONE RED +\newColor OrangeRed % OrangeRed No PANTONE match +\newColor RubineRed % RubineRed Approximate PANTONE RUBINE-RED +\newColor WildStrawberry % WildStrawberry Approximate PANTONE 206 +\newColor Salmon % Salmon Approximate PANTONE 183 +\newColor CarnationPink % CarnationPink Approximate PANTONE 218 +\newColor Magenta % Magenta Approximate PANTONE PROCESS-MAGENTA +\newColor VioletRed % VioletRed Approximate PANTONE 219 +\newColor Rhodamine % Rhodamine Approximate PANTONE RHODAMINE-RED +\newColor Mulberry % Mulberry Approximate PANTONE 241 +\newColor RedViolet % RedViolet Approximate PANTONE 234 +\newColor Fuchsia % Fuchsia Approximate PANTONE 248 +\newColor Lavender % Lavender Approximate PANTONE 223 +\newColor Thistle % Thistle Approximate PANTONE 245 +\newColor Orchid % Orchid Approximate PANTONE 252 +\newColor DarkOrchid % DarkOrchid No PANTONE match +\newColor Purple % Purple Approximate PANTONE PURPLE +\newColor Plum % Plum VERY-Approx PANTONE 518 +\newColor Violet % Violet Approximate PANTONE VIOLET +\newColor RoyalPurple % RoyalPurple Approximate PANTONE 267 +\newColor BlueViolet % BlueViolet Approximate PANTONE 2755 +\newColor Periwinkle % Periwinkle Approximate PANTONE 2715 +\newColor CadetBlue % CadetBlue Approximate PANTONE (534+535)/2 +\newColor CornflowerBlue % CornflowerBlue Approximate PANTONE 292 +\newColor MidnightBlue % MidnightBlue Approximate PANTONE 302 +\newColor NavyBlue % NavyBlue Approximate PANTONE 293 +\newColor RoyalBlue % RoyalBlue No PANTONE match +\newColor Blue % Blue Approximate PANTONE BLUE-072 +\newColor Cerulean % Cerulean Approximate PANTONE 3005 +\newColor Cyan % Cyan Approximate PANTONE PROCESS-CYAN +\newColor ProcessBlue % ProcessBlue Approximate PANTONE PROCESS-BLUE +\newColor SkyBlue % SkyBlue Approximate PANTONE 2985 +\newColor Turquoise % Turquoise Approximate PANTONE (312+313)/2 +\newColor TealBlue % TealBlue Approximate PANTONE 3145 +\newColor Aquamarine % Aquamarine Approximate PANTONE 3135 +\newColor BlueGreen % BlueGreen Approximate PANTONE 320 +\newColor Emerald % Emerald No PANTONE match +\newColor JungleGreen % JungleGreen Approximate PANTONE 328 +\newColor SeaGreen % SeaGreen Approximate PANTONE 3268 +\newColor Green % Green VERY-Approx PANTONE GREEN +\newColor ForestGreen % ForestGreen Approximate PANTONE 349 +\newColor PineGreen % PineGreen Approximate PANTONE 323 +\newColor LimeGreen % LimeGreen No PANTONE match +\newColor YellowGreen % YellowGreen Approximate PANTONE 375 +\newColor SpringGreen % SpringGreen Approximate PANTONE 381 +\newColor OliveGreen % OliveGreen Approximate PANTONE 582 +\newColor RawSienna % RawSienna Approximate PANTONE 154 +\newColor Sepia % Sepia Approximate PANTONE 161 +\newColor Brown % Brown Approximate PANTONE 1615 +\newColor Tan % Tan No PANTONE match +\newColor Gray % Gray Approximate PANTONE COOL-GRAY-8 +\newColor Black % Black Approximate PANTONE PROCESS-BLACK +\newColor White % White No PANTONE match + +% Now we make sure that we initialize the global color to Black +\subdef{Black} diff --git a/Build/source/texk/dvipsk/tex/rotate.tex b/Build/source/texk/dvipsk/tex/rotate.tex new file mode 100644 index 00000000000..27891ee95ee --- /dev/null +++ b/Build/source/texk/dvipsk/tex/rotate.tex @@ -0,0 +1,43 @@ +% +% These macros allow you to rotate or flip a \TeX\ box. Very useful for +% sideways tables or upsidedown answers. +% +% To use, create a box containing the information you want to rotate. +% (An hbox or vbox will do.) Now call \rotr\boxnum to rotate the +% material and create a new box with the appropriate (flipped) dimensions. +% \rotr rotates right, \rotl rotates left, \rotu turns upside down, and +% \rotf flips. These boxes may contain other rotated boxes. +% +\newdimen\rotdimen +\def\vspec#1{\special{ps:#1}}% passes #1 verbatim to the output +\def\rotstart#1{\vspec{gsave currentpoint currentpoint translate + #1 neg exch neg exch translate}}% #1 can be any origin-fixing transformation +\def\rotfinish{\vspec{currentpoint grestore moveto}}% gets back in synch +% +% First, the rotation right. The reference point of the rotated box +% is the lower right corner of the original box. +% +\def\rotr#1{\rotdimen=\ht#1\advance\rotdimen by\dp#1% + \hbox to\rotdimen{\hskip\ht#1\vbox to\wd#1{\rotstart{90 rotate}% + \box#1\vss}\hss}\rotfinish} +% +% Next, the rotation left. The reference point of the rotated box +% is the upper left corner of the original box. +% +\def\rotl#1{\rotdimen=\ht#1\advance\rotdimen by\dp#1% + \hbox to\rotdimen{\vbox to\wd#1{\vskip\wd#1\rotstart{270 rotate}% + \box#1\vss}\hss}\rotfinish}% +% +% Upside down is simple. The reference point of the rotated box +% is the upper right corner of the original box. (The box's height +% should be the current font's xheight, \fontdimen5\font, +% if you want that xheight to be at the baseline after rotation.) +% +\def\rotu#1{\rotdimen=\ht#1\advance\rotdimen by\dp#1% + \hbox to\wd#1{\hskip\wd#1\vbox to\rotdimen{\vskip\rotdimen + \rotstart{-1 dup scale}\box#1\vss}\hss}\rotfinish}% +% +% And flipped end for end is pretty ysae too. We retain the baseline. +% +\def\rotf#1{\hbox to\wd#1{\hskip\wd#1\rotstart{-1 1 scale}% + \box#1\hss}\rotfinish}% diff --git a/Build/source/texk/dvipsk/tex/rotsample.tex b/Build/source/texk/dvipsk/tex/rotsample.tex new file mode 100644 index 00000000000..4a14658e9ce --- /dev/null +++ b/Build/source/texk/dvipsk/tex/rotsample.tex @@ -0,0 +1,32 @@ +\input rotate +\newbox\rotbox +\newbox\rottwo +% +\font\big=cmr17 scaled\magstep4 +This is a \setbox\rotbox=\hbox{simple}\rotl\rotbox\ test of +\setbox\rotbox=\hbox{some}\rotu\rotbox\ rotation primitives that +\setbox\rotbox=\hbox{\big work}\rotr\rotbox. +Or maybe \setbox\rotbox=\hbox{\vrule height .2in width .2in}\rotl\rotbox\ +not. +\bigskip +\centerline{\vbox{\offinterlineskip +\def\tablerule{\noalign{\hrule}} +\def\breather{height 2pt&&&&&&&&&&\cr} +\def\allfive#1{\breather +&\global\setbox\rottwo=\hbox{#1}\copy\rottwo&&% +\setbox\rotbox=\copy\rottwo\rotl\rotbox&&% +\setbox\rotbox=\copy\rottwo\rotu\rotbox&&% +\setbox\rotbox=\copy\rottwo\rotr\rotbox&&% +\rotf\rottwo&\cr +\breather\tablerule} +\offinterlineskip +\halign{\vrule#&\hfil\ #\ \hfil&\vrule#&\hfil\ #\ \hfil&\vrule#&% + \hfil\ #\ \hfil&\vrule#&\hfil\ #\ \hfil&\vrule#&\hfil\ #\ \hfil&\vrule#\cr +\tablerule +\breather +&\strut Upside&&Leftside&&Downside&&Rightside&&Flipside&\cr +\breather\tablerule +\allfive{gnus} +\allfive{$-b\pm\sqrt{b^2-4ac}\over2a$} +\allfive{{\big A}}}}}% +\bye -- cgit v1.2.3