summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiep Kroonenberg <siepo@cybercomm.nl>2008-09-22 13:14:40 +0000
committerSiep Kroonenberg <siepo@cybercomm.nl>2008-09-22 13:14:40 +0000
commitac8452266e5f940f88f1e39f742c7c557c9cd960 (patch)
tree2f8078c6aa97a85cdab643dfff0ef2805ec99640
parent5f0d9b3637110e17ca3eda1bd3409c3982bebf28 (diff)
Dviout integration
git-svn-id: svn://tug.org/texlive/trunk@10686 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/bin/win32/dviout.vbs125
-rw-r--r--Master/dviout/FONT/ReadMe.txt25
-rw-r--r--Master/dviout/FONT/exjfonts.zipbin0 -> 103557 bytes
-rw-r--r--Master/dviout/FONT/winttf.zipbin0 -> 440053 bytes
-rw-r--r--Master/dviout/GRAPHIC/COLOR/color.tex189
-rw-r--r--Master/dviout/GRAPHIC/LATEX2E/color.cfg14
-rw-r--r--Master/dviout/GRAPHIC/LATEX2E/dviout.dtx333
-rw-r--r--Master/dviout/GRAPHIC/LATEX2E/dviout.ins15
-rw-r--r--Master/dviout/GRAPHIC/LATEX2E/readme98
-rw-r--r--Master/dviout/GRAPHIC/LATEX2E/readme.eng73
-rw-r--r--Master/dviout/GRAPHIC/PS/epsfdoc.tex355
-rwxr-xr-xMaster/dviout/GRAPHIC/PS/gssub.exebin0 -> 33724 bytes
-rw-r--r--Master/dviout/GRAPHIC/PS/pssample.tex69
-rw-r--r--Master/dviout/GRAPHIC/PS/sample0.ps9
-rw-r--r--Master/dviout/GRAPHIC/PS/sample1.ps52
-rw-r--r--Master/dviout/GRAPHIC/PS/sample2.ps9
-rw-r--r--Master/dviout/GRAPHIC/PS/sample3.ps22
-rw-r--r--Master/dviout/GRAPHIC/PS/starbrst.ps30
-rw-r--r--Master/dviout/GRAPHIC/TPIC/linetest.tex280
-rw-r--r--Master/dviout/GRAPHIC/TPIC/rtexampl.tex125
-rw-r--r--Master/dviout/GRAPHIC/TPIC/tpic_ext.doc64
-rw-r--r--Master/dviout/GRAPHIC/TPIC/tpicdoc.tex378
-rw-r--r--Master/dviout/GRAPHIC/bmc/bmc.txt141
-rw-r--r--Master/dviout/GRAPHIC/bmc/createbb.pdfbin0 -> 16620 bytes
-rw-r--r--Master/dviout/GRAPHIC/bmc/exbmc.xpibin0 -> 53248 bytes
-rw-r--r--Master/dviout/GRAPHIC/bmc/ifbmc.spibin0 -> 49152 bytes
-rw-r--r--Master/dviout/GRAPHIC/bmc/ifbmc.txt26
-rw-r--r--Master/dviout/SAMPLE/sample.tex1734
-rw-r--r--Master/dviout/SAMPLE/sample.txt38
-rw-r--r--Master/dviout/SAMPLE/slisamp2.tex73
-rw-r--r--Master/dviout/SAMPLE/slisamp3.tex78
-rw-r--r--Master/dviout/SAMPLE/slisamp4.tex83
-rw-r--r--Master/dviout/SAMPLE/slisampl.tex76
-rwxr-xr-xMaster/dviout/UTILITY/dvi$pdf.bat1
-rw-r--r--Master/dviout/UTILITY/dviout0.par22
-rw-r--r--Master/dviout/UTILITY/dviout0.vfn140
-rw-r--r--Master/dviout/UTILITY/dviout1.vfn153
-rw-r--r--Master/dviout/UTILITY/dvioute.vfn137
-rw-r--r--Master/dviout/UTILITY/null.vfn1
-rw-r--r--Master/dviout/UTILITY/template88
-rw-r--r--Master/dviout/UTILITY/template.pk013
-rw-r--r--Master/dviout/UTILITY/template.pks83
-rw-r--r--Master/dviout/UTILITY/test_a4.tex118
-rw-r--r--Master/dviout/UTILITY/test_b5.tex125
-rw-r--r--Master/dviout/UTILITY/test_b5e.tex121
-rw-r--r--Master/dviout/UTILITY/test_org.tex36
-rwxr-xr-xMaster/dviout/chkfont.exebin0 -> 49152 bytes
-rwxr-xr-xMaster/dviout/convedit.exebin0 -> 16384 bytes
-rw-r--r--Master/dviout/dviout.hlpbin0 -> 276838 bytes
-rw-r--r--Master/dviout/dvioute.cnt473
-rw-r--r--Master/dviout/dvioute.hlpbin0 -> 285986 bytes
-rwxr-xr-xMaster/dviout/install.par2
-rwxr-xr-xMaster/dviout/optcfg.exebin0 -> 57344 bytes
-rwxr-xr-xMaster/dviout/rawprt.exebin0 -> 36864 bytes
-rw-r--r--Master/dviout/readme.txt634
55 files changed, 6661 insertions, 0 deletions
diff --git a/Master/bin/win32/dviout.vbs b/Master/bin/win32/dviout.vbs
new file mode 100644
index 00000000000..79c411edfe2
--- /dev/null
+++ b/Master/bin/win32/dviout.vbs
@@ -0,0 +1,125 @@
+' Call dviout with an optional dvi-file parameter
+' and font search configuration parameters.
+
+option explicit
+On Error Resume Next
+
+dim oWsh, oEnv, oFS, oArgs, oExec, sTmp, bFirst
+Dim sTL, oTL, sGS, sCmd, oTmp, i, s
+
+set oWsh = wscript.createobject( "wscript.Shell" )
+Set oArgs = wscript.Arguments
+Set oEnv = oWsh.Environment( "PROCESS" )
+Set oFS = CreateObject("Scripting.FileSystemObject")
+
+If wscript.version < 5.6 Then
+ MsgBox "Need VBScript 5.6 or later. Aborting...", vbOKOnly+vbCritical, "Error"
+ Wscript.Quit
+Else
+ sTmp = ""
+ ' ask kpathsea
+ Set oExec = oWsh.Exec("kpsewhich -var-value=SELFAUTOPARENT")
+ sTmp = oExec.StdOut.ReadLine
+ Err.clear()
+ If sTmp <> "" then
+ sTL = replace(sTmp, "/", "\")
+ End If
+End If
+If sTL = "" Then
+ MsgBox "TeX Live not found; aborting...", vbOKOnly+vbCritical, "Error"
+ wscript.quit
+End If
+If InStr(sTL, " ") <> 0 Then
+ Set oTL = oFS.GetFolder(sTL)
+ sTL = oTL.ShortPath
+End If
+
+' Ghostscript environment settings
+sGS = sTL & "\tlpkg\tlgs"
+oEnv("PATH") = sGS & "\bin;" & oEnv("PATH")
+oEnv("GS_LIB") = sGS & "\fonts;" & sGS & "\lib;" & sGS & "\Resource"
+
+sCmd = sTL & "\dviout\dviout.exe -TEXROOT="
+
+'add font trees to command-Line
+
+'first make sure %TEXMFVAR%\fonts exists
+sTmp = ""
+' ask kpathsea
+Set oExec = oWsh.Exec("kpsewhich -var-value=TEXMFVAR")
+sTmp = oExec.StdOut.ReadLine
+If Not oFS.FolderExists(sTmp) Then
+ s = oFS.GetParentFolderName(sTmp)
+ If Not oFS.FolderExists(s) Then
+ Err.clear()
+ oFS.CreateFolder(s)
+ If Not oFS.FolderExists(s) Then
+ MsgBox "No place to put bitmaps; aborting...", _
+ vbOKOnly+vbCritical, "Error"
+ wscript.quit
+ End If
+ End If
+ oFS.CreateFolder(sTmp)
+ If Not oFS.FolderExists(sTmp) Then
+ MsgBox "No place to put bitmaps; aborting...", _
+ vbOKOnly+vbCritical, "Error"
+ wscript.quit
+ End If
+End If
+If Not oFS.FolderExists(sTmp & "\fonts") Then
+ Err.clear()
+ oFS.CreateFolder(sTmp & "\fonts")
+ If Not oFS.FolderExists(sTmp & "\fonts") Then
+ MsgBox "No place to put bitmaps; aborting...", _
+ vbOKOnly+vbCritical, "Error"
+ wscript.quit
+ End If
+End If
+
+
+Set oExec = oWsh.Exec("kpsewhich -show-path=tfm")
+sTmp = oExec.StdOut.ReadLine
+bFirst = True
+For Each s in Split(sTmp, ";", -1, 1)
+ s = Trim(s)
+ If s<>"." Then
+ If InStr(s, "!!")=1 Then
+ s = Mid(s, 3)
+ End If
+ i = InStr(s, "/fonts/tfm")
+ If i<>0 then
+ s = Mid(s, 1, i+5)
+ Else
+ s=""
+ End If
+ s = Trim(s)
+ If s<>"" then
+ s = replace(s, "/", "\")
+ If oFS.FolderExists(s) Then
+ If InStr(s," ")<>0 Then
+ Set oTmp = oFS.GetFolder(s)
+ s = oTmp.ShortPath
+ End If
+ If Not bFirst Then
+ sCmd=sCmd & ";"
+ Else
+ bfirst=False
+ End If
+ sCmd = sCmd & s
+ End If
+ End If
+ End If
+Next
+sCmd = sCmd & " -TEXPK=""^r\pk\\^s.^dpk;^r\tfm\\^s^tfm;" & _
+ "^r\vf\\^s.vf;^r\ovf\\^s.ovf;^r\tfm\\^s.tfm"""
+
+' assume argument either short or already quoted
+If (oArgs.length > 0) Then
+ For i = 0 To (oArgs.length - 1) Step 1
+ sCmd = sCmd & " " & oArgs(i)
+ Next
+End If
+
+' 2nd arg 1: normal window
+oWsh.run sCmd, 1
+'wscript.echo sCmd \ No newline at end of file
diff --git a/Master/dviout/FONT/ReadMe.txt b/Master/dviout/FONT/ReadMe.txt
new file mode 100644
index 00000000000..6461caedfa5
--- /dev/null
+++ b/Master/dviout/FONT/ReadMe.txt
@@ -0,0 +1,25 @@
+About FONTS directory
+
+This directory contains two archives
+1. winttf.zip
+2. exjfonts.zip
+
+1. winttf.zip
+This is a package to use Windows' standard TrueType Fonts
+including Japanese MS-P-Mincho/Gothic.
+(called TSUMEGUMI)
+
+2. exjfonts.zip
+This contains Japanese extended packages.
+For example,
+ BURASAGE: hanging punctuation.
+ LENS: Chotai/Heitai.
+ newmin: a bug fixed and extended version of min10/goth10
+ beta: BETAGUMI Japanese fonts.
+
+Both packages should be expanded at the root directory of TeX such as
+c:\usr\local\share where the subdirectory texmf exists.
+
+Toshio OSHIMA/Yoshiki OTOBE
+Department of Mathematical Sciences
+The University of Tokyo.
diff --git a/Master/dviout/FONT/exjfonts.zip b/Master/dviout/FONT/exjfonts.zip
new file mode 100644
index 00000000000..d27f2d52724
--- /dev/null
+++ b/Master/dviout/FONT/exjfonts.zip
Binary files differ
diff --git a/Master/dviout/FONT/winttf.zip b/Master/dviout/FONT/winttf.zip
new file mode 100644
index 00000000000..9327a887b50
--- /dev/null
+++ b/Master/dviout/FONT/winttf.zip
Binary files differ
diff --git a/Master/dviout/GRAPHIC/COLOR/color.tex b/Master/dviout/GRAPHIC/COLOR/color.tex
new file mode 100644
index 00000000000..ac402120a8c
--- /dev/null
+++ b/Master/dviout/GRAPHIC/COLOR/color.tex
@@ -0,0 +1,189 @@
+\documentclass[a4j]{jarticle}
+\usepackage{graphicx, color}
+\ExecuteOptions{usenames}
+\begin{document}
+%\parskip 2pt
+\pagecolor[rgb]{1,1,0.94}
+
+\centerline{\Huge 68 Colors}
+\centerline{\Large Pre-defined in graphic packages of \LaTeXe}
+\medskip
+
+\begin{tabular}{lllll}
+\colorbox[named]{GreenYellow}{GreenYellow}&
+\colorbox[named]{Yellow}{Yellow}&
+\colorbox[named]{Goldenrod}{Goldenrod}&
+\colorbox[named]{Dandelion}{Dandelion}&
+\colorbox[named]{Apricot}{Apricot}\\
+
+\colorbox[named]{Peach}{Peach}&
+\colorbox[named]{Melon}{Melon}&
+\colorbox[named]{YellowOrange}{YellowOrange}&
+\colorbox[named]{Orange}{Orange}&
+\colorbox[named]{BurntOrange}{BurntOrange}\\
+
+\colorbox[named]{Bittersweet}{Bittersweet}&
+\colorbox[named]{RedOrange}{RedOrange}&
+\colorbox[named]{Mahogany}{Mahogany}&
+\colorbox[named]{Maroon}{Maroon}&
+\colorbox[named]{BrickRed}{BrickRed}\\
+
+\colorbox[named]{Red}{Red}&
+\colorbox[named]{OrangeRed}{OrangeRed}&
+\colorbox[named]{RubineRed}{RubineRed}&
+\colorbox[named]{WildStrawberry}{WildStrawberry}&
+\colorbox[named]{Salmon}{Salmon}\\
+
+\colorbox[named]{CarnationPink}{CarnationPink}&
+\colorbox[named]{Magenta}{Magenta}&
+\colorbox[named]{VioletRed}{VioletRed}&
+\colorbox[named]{Rhodamine}{Rhodamine}&
+\colorbox[named]{Mulberry}{Mulberry}\\
+
+\colorbox[named]{RedViolet}{RedViolet}&
+\colorbox[named]{Fuchsia}{Fuchsia}&
+\colorbox[named]{Lavender}{Lavender}&
+\colorbox[named]{Thistle}{Thistle}&
+\colorbox[named]{Orchid}{Orchid}\\
+
+\colorbox[named]{DarkOrchid}{DarkOrchid}&
+\colorbox[named]{Purple}{Purple}&
+\colorbox[named]{Plum}{Plum}&
+\colorbox[named]{Violet}{Violet}&
+\colorbox[named]{RoyalPurple}{RoyalPurple}\\
+
+\colorbox[named]{BlueViolet}{BlueViolet}&
+\colorbox[named]{Periwinkle}{Periwinkle}&
+\colorbox[named]{CadetBlue}{CadetBlue}&
+\colorbox[named]{CornflowerBlue}{CornflowerBlue}&
+\colorbox[named]{MidnightBlue}{MidnightBlue}\\
+
+\colorbox[named]{NavyBlue}{NavyBlue}&
+\colorbox[named]{RoyalBlue}{RoyalBlue}&
+\colorbox[named]{Blue}{Blue}&
+\colorbox[named]{Cerulean}{Cerulean}&
+\colorbox[named]{Cyan}{Cyan}\\
+
+\colorbox[named]{ProcessBlue}{ProcessBlue}&
+\colorbox[named]{SkyBlue}{SkyBlue}&
+\colorbox[named]{Turquoise}{Turquoise}&
+\colorbox[named]{TealBlue}{TealBlue}&
+\colorbox[named]{Aquamarine}{Aquamarine}\\
+
+\colorbox[named]{BlueGreen}{BlueGreen}&
+\colorbox[named]{Emerald}{Emerald}&
+\colorbox[named]{JungleGreen}{JungleGreen}&
+\colorbox[named]{SeaGreen}{SeaGreen}&
+\colorbox[named]{Green}{Green}\\
+
+\colorbox[named]{ForestGreen}{ForestGreen}&
+\colorbox[named]{PineGreen}{PineGreen}&
+\colorbox[named]{LimeGreen}{LimeGreen}&
+\colorbox[named]{YellowGreen}{YellowGreen}&
+\colorbox[named]{SpringGreen}{SpringGreen}\\
+
+\colorbox[named]{OliveGreen}{OliveGreen}&
+\colorbox[named]{RawSienna}{RawSienna}&
+\colorbox[named]{Sepia}{Sepia}&
+\colorbox[named]{Brown}{Brown}&
+\colorbox[named]{Tan}{Tan}\\
+
+\colorbox[named]{Gray}{Gray}&
+\colorbox[named]{Black}{\color[named]{White}Black}&
+\fcolorbox[named]{Black}{White}
+{\special{color push Black}White\special{color pop}}\\
+\\
+
+{\color[named]{GreenYellow}GreenYellow}&
+{\color[named]{Yellow}Yellow}&
+{\color[named]{Goldenrod}Goldenrod}&
+{\color[named]{Dandelion}Dandelion}&
+{\color[named]{Apricot}Apricot}\\
+
+{\color[named]{Peach}Peach}&
+{\color[named]{Melon}Melon}&
+{\color[named]{YellowOrange}YellowOrange}&
+{\color[named]{Orange}Orange}&
+{\color[named]{BurntOrange}BurntOrange}\\
+
+{\color[named]{Bittersweet}Bittersweet}&
+{\color[named]{RedOrange}RedOrange}&
+{\color[named]{Mahogany}Mahogany}&
+{\color[named]{Maroon}Maroon}&
+{\color[named]{BrickRed}BrickRed}\\
+
+{\color[named]{Red}Red}&
+{\color[named]{OrangeRed}OrangeRed}&
+{\color[named]{RubineRed}RubineRed}&
+{\color[named]{WildStrawberry}WildStrawberry}&
+{\color[named]{Salmon}Salmon}\\
+
+{\color[named]{CarnationPink}CarnationPink}&
+{\color[named]{Magenta}Magenta}&
+{\color[named]{VioletRed}VioletRed}&
+{\color[named]{Rhodamine}Rhodamine}&
+{\color[named]{Mulberry}Mulberry}\\
+
+{\color[named]{RedViolet}RedViolet}&
+{\color[named]{Fuchsia}Fuchsia}&
+{\color[named]{Lavender}Lavender}&
+{\color[named]{Thistle}Thistle}&
+{\color[named]{Orchid}Orchid}\\
+
+{\color[named]{DarkOrchid}DarkOrchid}&
+{\color[named]{Purple}Purple}&
+{\color[named]{Plum}Plum}&
+{\color[named]{Violet}Violet}&
+{\color[named]{RoyalPurple}RoyalPurple}\\
+
+{\color[named]{BlueViolet}BlueViolet}&
+{\color[named]{Periwinkle}Periwinkle}&
+{\color[named]{CadetBlue}CadetBlue}&
+{\color[named]{CornflowerBlue}CornflowerBlue}&
+{\color[named]{MidnightBlue}MidnightBlue}\\
+
+{\color[named]{NavyBlue}NavyBlue}&
+{\color[named]{RoyalBlue}RoyalBlue}&
+{\color[named]{Blue}Blue}&
+{\color[named]{Cerulean}Cerulean}&
+{\color[named]{Cyan}Cyan}\\
+
+{\color[named]{ProcessBlue}ProcessBlue}&
+{\color[named]{SkyBlue}SkyBlue}&
+{\color[named]{Turquoise}Turquoise}&
+{\color[named]{TealBlue}TealBlue}&
+{\color[named]{Aquamarine}Aquamarine}\\
+
+{\color[named]{BlueGreen}BlueGreen}&
+{\color[named]{Emerald}Emerald}&
+{\color[named]{JungleGreen}JungleGreen}&
+{\color[named]{SeaGreen}SeaGreen}&
+{\color[named]{Green}Green}\\
+
+{\color[named]{ForestGreen}ForestGreen}&
+{\color[named]{PineGreen}PineGreen}&
+{\color[named]{LimeGreen}LimeGreen}&
+{\color[named]{YellowGreen}YellowGreen}&
+{\color[named]{SpringGreen}SpringGreen}\\
+
+{\color[named]{OliveGreen}OliveGreen}&
+{\color[named]{RawSienna}RawSienna}&
+{\color[named]{Sepia}Sepia}&
+{\color[named]{Brown}Brown}&
+{\color[named]{Tan}Tan}\\
+
+{\color[named]{Gray}Gray}&
+{\color[named]{Black}Black}&
+{\colorbox[named]{Gray}{\color[named]{White}White}}\\
+\\
+
+{\fcolorbox[named]{Red}{Yellow}
+{\special{color push Black}Black\special{color pop}}}&
+{\fcolorbox[named]{Black}{Red}
+{\special{color push White}White\special{color pop White}}}&
+{\fcolorbox[named]{Blue}{Cyan}{\special{color push Cyan}%
+\special{color push Blue}Blue\special{color pop}\special{color pop}}}&
+{\fcolorbox[named]{Red}{Black}
+{\special{color push Yellow}Yellow\special{color pop}}}\\
+\end{tabular}
+\end{document}
diff --git a/Master/dviout/GRAPHIC/LATEX2E/color.cfg b/Master/dviout/GRAPHIC/LATEX2E/color.cfg
new file mode 100644
index 00000000000..6b120bbbda0
--- /dev/null
+++ b/Master/dviout/GRAPHIC/LATEX2E/color.cfg
@@ -0,0 +1,14 @@
+%%
+%% Copyright (C) 1995, Written by Kazunori ASAYAMA (TPM03937@pcvan.or.jp)
+%% 1997, modified by SHIMA
+%%
+%% This file is a part of the package of `dviout'.
+%%
+%% It should be distributed *unchanged* and together with the package.
+%% A modified version of this file may be distributed, but it should
+%% be distributed with a *different* name.
+%%
+\DeclareOption{dviout}{%
+ \def\Gin@driver{dviout.def}
+ \def\c@lor@namefile{dvipsnam.def}}
+\ExecuteOptions{dviout}
diff --git a/Master/dviout/GRAPHIC/LATEX2E/dviout.dtx b/Master/dviout/GRAPHIC/LATEX2E/dviout.dtx
new file mode 100644
index 00000000000..7b9e80b1bc2
--- /dev/null
+++ b/Master/dviout/GRAPHIC/LATEX2E/dviout.dtx
@@ -0,0 +1,333 @@
+% \iffalse
+%<*ignore>
+% Copyright (C) 1995, Written by Kazunori ASAYAMA (TPM03937@pcvan.or.jp)
+% 1997-2000, modified by SHIMA (oshima@ms.u-tokyo.ac.jp)
+% 2000, modified by Matsuda & Otobe
+%
+% This file is a part of the package of `dviout'.
+%
+% It should be distributed *unchanged* and together with the package.
+% A modified version of this file may be distributed, but it should
+% be distributed with a *different* name.
+%
+%</ignore>
+%<dviout>\ProvidesFile{dviout.def}
+%<*driver>
+\NeedsTeXFormat{LaTeX2e}\ProvidesFile{dviout.dtx}
+%</driver>
+ [2000/5/11 Driver file of `dviout' for LaTeX2e]
+%<*driver>
+\documentclass{ltxdoc}
+\GetFileInfo{dviout.dtx}
+\begin{document}
+ \title{Driver file of \emph{dviout} for \LaTeXe}
+ \author{Kazunori ASAYAMA\thanks{%
+ \texttt{TPM03937@pcvan.or.jp} / %
+ \texttt{GHF01532@niftyserve.or.jp}} \ and
+ SHIMA\thanks{%
+ \texttt{dviout-admin@akagi.ms.u-tokyo.ac.jp}}}
+ \date{\filedate}
+ \maketitle
+ \DocInput{dviout.dtx}
+\end{document}
+%</driver>
+%\fi
+%
+% \CheckSum{344}
+%
+% \changes{v0.7}{2000/5/11}{Seventh version.}
+%
+% \StopEventually{}
+%
+% \section{Usage}
+%
+% See
+% `|drivers.dtx|',
+% `|graphics.dtx|',
+% `|graphicx.dtx|' and
+% `|grfguide.tex|'.
+%
+% \section{Implementation}
+% \subsection{Color}
+% Color specifications are mostly from `drivers.dtx' with
+% |color1| option.
+%
+% \begin{macrocode}
+\def\c@lor@arg#1{%
+ \dimen@#1\p@
+ \ifdim\dimen@<\z@\dimen@\maxdimen\fi
+ \ifdim\dimen@>\p@
+ \PackageError{color}{Argument `#1' not in range [0,1]}\@ehd
+ \fi}
+\def\color@gray#1#2{%
+ \c@lor@arg{#2}%
+ \def#1{gray #2}%
+ }
+\def\color@cmyk#1#2{\c@lor@@cmyk#2\@@#1}
+\def\c@lor@@cmyk#1,#2,#3,#4\@@#5{%
+ \c@lor@arg{#1}%
+ \c@lor@arg{#2}%
+ \c@lor@arg{#3}%
+ \c@lor@arg{#4}%
+ \def#5{cmyk #1 #2 #3 #4}}
+\def\color@rgb#1#2{\c@lor@@rgb#2\@@#1}
+\def\c@lor@@rgb#1,#2,#3\@@#4{%
+ \c@lor@arg{#1}%
+ \c@lor@arg{#2}%
+ \c@lor@arg{#3}%
+ \def#4{rgb #1 #2 #3}}
+\def\color@hsb#1#2{\c@lor@@hsb#2\@@#1}
+\def\c@lor@@hsb#1,#2,#3\@@#4{%
+ \c@lor@arg{#1}%
+ \c@lor@arg{#2}%
+ \c@lor@arg{#3}%
+ \def#4{hsb #1 #2 #3}}
+\def\color@named#1#2{\c@lor@@named#2,,\@@#1}
+\def\c@lor@@named#1,#2,#3\@@#4{%
+ \@ifundefined{col@#1}%
+ {\PackageError{color}{Undefined color `#1'}\@ehd}%
+ {\def#4{ #1}}%
+ }
+\def\current@color{ Black}
+\def\define@color@named#1#2{%
+ \expandafter\let\csname col@#1\endcsname\@nnil}%
+% \end{macrocode}
+%
+% If the driver supports the color, we output
+% \begin{quote}
+% |\special{color push |\meta{color-spec}|}|
+% |\special{color pop}|
+% \end{quote}
+% in the \emph{DVI} files, which is compatible with \emph{dvips.def}.
+%
+% \begin{macrocode}
+%<*color>
+\def\set@color{%
+ \special{color push \current@color}\aftergroup\reset@color}
+\def\reset@color{\special{color pop}}
+\def\set@page@color{\special{background \current@color}}
+%</color>
+%
+% \end{macrocode}
+%
+% While if the driver does not support the color,
+% ignore color specials (accept but not output).
+%
+% \begin{macrocode}
+%<*!color>
+\def\set@color{}
+\def\reset@color{}
+\def\set@page@color{}
+%</!color>
+% \end{macrocode}
+%
+% \subsection{Graphic file inclusion}
+% \begin{macro}{\Ginclude@eps}
+%
+% Define the method of including EPS file.
+% This macro generates special:
+% \begin{quote}
+% |PSfile=|"\meta{filename}" \meta{keywords}
+% \end{quote}
+% which is compatible to \emph{dvips.def}.
+%
+% \begin{macrocode}
+%<*dviout>
+\def\Ginclude@eps#1{%
+ \message{<#1>}%
+ \bgroup
+ \def\@tempa{!}%
+ \dimen@=10\Gin@req@width
+ \dimen@ii1bp%
+ \divide\dimen@\dimen@ii
+ \@tempdima=10\Gin@req@height
+ \divide\@tempdima\dimen@ii
+ \special{PSfile="#1"\space
+ llx=\Gin@llx\space
+ lly=\Gin@lly\space
+ urx=\Gin@urx\space
+ ury=\Gin@ury\space
+ \ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi
+ \ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi
+ \ifGin@clip clip\fi}%
+ \egroup}
+% \end{macrocode}
+% \end{macro} ^^A \Ginclude@eps
+%
+% \begin{macro}{\Ginclude@image@common}
+%
+% Define the common macro used by |\Ginclude@|\meta{type}
+% macros.
+%
+% This macro receive two arguments, the filename of image as |#1|,
+% and the type of image as |#2|, and generates a special instruction
+% `\meta{type}|file=|\meta{filename} \meta{keywords}' in the \emph{DVI} file.
+%
+% \begin{macrocode}
+\def\Ginclude@image@common#1#2{%
+ \bgroup
+ \def\@tempa{!}%
+ \ifx\Gin@scaley\@tempa
+ \let\Gin@scaley\Gin@scalex
+ \else
+ \ifx\Gin@scalex\@tempa\let\Gin@scalex\Gin@scaley\fi
+ \fi
+ \raise\Gin@req@height\hbox{%
+ \divide\Gin@req@width by 65781% convert sp to bp
+ \divide\Gin@req@height by 65781% convert sp to bp
+ \message{<#1 \number\Gin@req@width bp\space x%
+ \space\number\Gin@req@height bp>}%
+ \special{#2file=#1\space%
+ hsize=\number\Gin@req@width\space%
+ vsize=\number\Gin@req@height}}%
+ \egroup}
+% \end{macrocode}
+% \end{macro} ^^A \Ginclude@image@common
+%
+% \begin{macro}{\Ginclude@pbm}
+% Generate special:
+% \begin{quote}
+% |pbmfile=|\meta{filename} \meta{keywords}
+% \end{quote}
+% with using `|\Ginclude@image@common|' macro.
+% This special is supported by \emph{dviprt} and \emph{dviout}.
+% \begin{macrocode}
+\def\Gread@pbm#1{%
+ \begingroup
+ \Gin@bboxfalse
+ \catcode`\#=14
+ \openin\@inputcheck=#1\relax
+ \ifeof\@inputcheck\errmessage{#1: could not open.}\fi
+ \read\@inputcheck to \pbm@line
+ %% Here, checking magic number. Not implemented yet.
+ \newif\ifpbm@not@bb
+ \loop\ifeof\@inputcheck\errmessage{#1: unexpected EOF.}\fi
+ \read\@inputcheck to \pbm@line
+ \ifx\pbm@line\@empty\pbm@not@bbtrue\else\pbm@not@bbfalse\fi
+ \ifpbm@not@bb\repeat
+ \closein\@inputcheck
+ \expandafter\pbm@decode@bb\pbm@line]
+ \endgroup}
+\def\pbm@decode@bb#1 #2]{%
+ \Gin@bboxtrue%
+ \gdef\Gin@llx{0}\gdef\Gin@lly{0}\gdef\Gin@urx{#1}\gdef\Gin@ury{#2}}
+\def\get@pbm@magic P#1{#1}
+\def\Ginclude@pbm#1{\Ginclude@image@common{#1}{pbm}}
+% \end{macrocode}
+% \end{macro} ^^A \Ginclude@pbm
+%
+% \begin{macro}{\Ginclude@bmp}
+% Generate special:
+% \begin{quote}
+% |bmpfile=|\meta{filename} \meta{keywords}
+% \end{quote}
+% with using `|\Ginclude@image@common|' macro.
+% This special is supported by \emph{dviout for Windows}.
+%
+% `filename' may be any graphic file if it is supported by Susie's plug-in.
+% The file with the name replaced the extension of `filename' by '.bb'
+% is searched to read the BoundingBox.
+%
+% \begin{macrocode}
+\def\Gread@bmp#1{%
+ \begingroup
+\@tempcnta\z@
+\loop\ifnum\@tempcnta<\@xxxii
+ \catcode\@tempcnta14 %
+ \advance\@tempcnta\@ne
+\repeat
+\catcode127=14 %
+ \let\do\@makeother\dospecials\catcode`\ 10 %
+ \catcode\endlinechar5 %
+ \immediate\openin\@inputcheck#1 %
+ \ifeof\@inputcheck
+ \@warning{File `#1' not found (which will be created by %
+ `bmc' with -b option)}
+ \else
+ \Gread@true
+ \let\@tempb\Gread@false
+ \loop
+ \read\@inputcheck to\@tempa
+ \ifeof\@inputcheck
+ \Gread@false
+ \else
+ \expandafter\Gread@find@bb\@tempa:.\\%
+ \fi
+ \ifGread@
+ \repeat
+ \immediate\closein\@inputcheck
+ \fi
+ \ifGin@bbox\else
+ \@warning
+ {Assume Bounding Box: 0 0 72 72}%
+ \gdef\@gtempa{0 0 72 72 }%
+ \fi
+ \endgroup
+ \expandafter\Gread@parse@bb\@gtempa\\}
+\def\Ginclude@bmp#1{\Ginclude@image@common{#1}{bmp}}
+% \end{macrocode}
+% \end{macro} ^^A \Ginclude@bmp
+%
+% \begin{macrocode}
+\def\Gin@extensions{.eps,.ps,.pbm,.gif,.bmp,.bmc,.ps.gz,.eps.gz}
+% \end{macrocode}
+%
+% Define the associations between the extentions and the image formats.
+% If the format of image is PostScript, then read the file and
+% determine its bounding box from DSC comments.
+%
+% \begin{macrocode}
+\@namedef{Gin@rule@.ps}#1{{eps}{.ps}{#1}}
+\@namedef{Gin@rule@.eps}#1{{eps}{.eps}{#1}}
+\@namedef{Gin@rule@.ps.gz}#1{{eps}{.bb}{#1}}
+\@namedef{Gin@rule@.eps.gz}#1{{eps}{.bb}{#1}}
+\@namedef{Gin@rule@.pbm}#1{{pbm}{.pbm}{#1}}
+\@namedef{Gin@rule@*}#1{{bmp}{.bb}{#1}}
+% \end{macrocode}
+%
+% \subsection{Rotation}
+% \begin{macro}{\Grot@start}
+% This generates the same code in \emph{DVI} file as \emph{dvips.def}.
+% Colored graphic images can only be rotated an integer multiple of
+% 90 degree and they should be given by EPS files.
+% \begin{macrocode}
+\def\Grot@start{%
+ \special{ps: gsave currentpoint
+ currentpoint translate \Grot@angle\space neg
+ rotate neg exch neg exch translate}}
+\def\Grot@end{\special{ps: currentpoint grestore moveto}}
+% \end{macrocode}
+% \end{macro} ^^A \Grot@start
+%
+% \subsection{Scaling}
+% \begin{macro}{\Gscale@start}
+% This generates the same code in \emph{DVI} file as \emph{dvips.def}.
+% \begin{macrocode}
+\def\Gscale@start{\special{ps: currentpoint currentpoint translate
+ \Gscale@x\space \Gscale@y\space scale neg exch neg exch translate}}
+\def\Gscale@end{\special{ps: currentpoint currentpoint translate
+ 1 \Gscale@x\space div 1 \Gscale@y\space div scale
+ neg exch neg exch translate}}
+% \end{macrocode}
+% \end{macro} ^^A \Gscale@start
+%
+% \subsection{PostScript code}
+% PostScript code is supported only if it is completed to draw a graphic.
+% \begin{macro}{\Gin@PS@raw}
+% |#1| PostScript code;
+% \begin{macrocode}
+\def\Gin@PS@raw#1{\special{ps: #1}}
+% \end{macrocode}
+% \end{macro} ^^A \Gin@PS@raw
+% \begin{macro}{\Gin@PS@restore}
+% |#1| PostScript code
+% \begin{macrocode}
+\def\Gin@PS@restored#1{\special{" #1}}
+% \end{macrocode}
+% \end{macro} ^^A \Gin@PS@restore
+%
+% \begin{macrocode}
+%</dviout>
+% \end{macrocode}
+%
+% \Finale
diff --git a/Master/dviout/GRAPHIC/LATEX2E/dviout.ins b/Master/dviout/GRAPHIC/LATEX2E/dviout.ins
new file mode 100644
index 00000000000..7bea26b4c23
--- /dev/null
+++ b/Master/dviout/GRAPHIC/LATEX2E/dviout.ins
@@ -0,0 +1,15 @@
+%%
+%% Copyright (C) 1995, Written by Kazunori ASAYAMA (TPM03937@pcvan.or.jp)
+%% 1997, modified by SHIMA
+%%
+%% This file is a part of the package of `dviout'.
+%%
+%% It should be distributed *unchanged* and together with the package.
+%% A modified version of this file may be distributed, but it should
+%% be distributed with a *different* name.
+%%
+\def\batchfile{dviout.ins}
+\input docstrip
+\keepsilent
+
+\generateFile{dviout.def}{f}{\from{dviout.dtx}{dviout,color}}
diff --git a/Master/dviout/GRAPHIC/LATEX2E/readme b/Master/dviout/GRAPHIC/LATEX2E/readme
new file mode 100644
index 00000000000..b9ecf64c2e7
--- /dev/null
+++ b/Master/dviout/GRAPHIC/LATEX2E/readme
@@ -0,0 +1,98 @@
+ Graphics Package
+
+ 1. dviout.dtx
+ 2. ps2frag.ps (PSfrag)
+
+
+1. dviout.dtx
+
+LaTeX2e の dviout for Windows のグラフィクスドライバです。別途 LaTeX2e の
+graphics package が必要です。
+
+(p)LaTeX2e で dviout.ins を処理し、生成される dviout.def とこのアーカイブに
+含まれる *.cfg を texmf\tex\latex\config に(それが存在しないときは graphics
+package とおなじディレクトリに)コピーしてください。
+なお、直接 dviout.dtx を処理すると、dviout.def のマニュアルが作成されます。
+
+・画像フォーマットは PBM, BMP, BMC, WMF, EPSF その他各種画像フォーマット、およ
+ びそれらを gzip で圧縮したものに対応しています。
+ ただし、PBM, EPSF以外では、\includegraphics マクロのオプション引数で画像
+ ファイルの縦横のサイズを指定するか、bmc の -b オプションによって BoundingBox
+ を記録した拡張子 .bb のファイルを作成しておく必要があります。EPSF, PBM につ
+ いては画像サイズは自動的に調べられます。
+
+・PBM のチェックはしていません。拡張子が .pbm の場合に強制的に PBM フォー
+ マットとして処理しています。チェックを入れるべきでしょうが、面倒なのでな
+ にもしていません (^^; どなたかお願いします。
+
+・不具合が見つかった場合には、報告するのではなく FIX して公開してください (^^;
+
+・dvips 用のドライバが出力する DVI ファイルとの互換性を高くしてありますが、
+ PBM/BMP/BMC/WMF/JPEG/TIFF/PNG/PCD など各種の画像の取り込みをサポートして
+ いる点で異なっています。
+
+・EPSFを扱うには Ghostscript が、PBM/BMP/BMC/WMF 以外の JPEG, TIFF, PCD, GIF,
+ などの画像ファイルを扱うには、フリーソフト Susie の plug-in として提供され
+ る DLL が必要です(拡張子は spi)。その他の形式の画像ファイルの場合でも、対
+ 応する Susie の plug-in を dviout for Windows の存在するフォルダに入れてお
+ けば、dviout.def を用いて LaTeX2e の graphics packages で取り込むことが出来
+ ます。
+
+ なお、Susie plug-in は
+
+ WWW
+ http://www.digitalpad.co.jp/~takechin/
+ Nifty-serve
+ FGALAV,FQLD1,FWINMM,FGUI
+
+ などから手に入ります。
+
+・psflag.sty を用いる場合は, psflag.sty の中の
+
+ \def\@tempa{dvips.def}\ifx\Gin@driver\@tempa\def\pfg@orient{-1}\fi%
+
+ という行の後に
+
+ \def\@tempa{dviout.def}\ifx\Gin@driver\@tempa\def\pfg@orient{-1}\fi%
+
+ を挿入してください。dviout は、PSFLAG をサポートしていませんが、
+ dvips.def におけると同様、dviout.def によって作成された DVI ファイル
+ は、PSFLAG が dvips によってサポートされます。
+---
+使い方は graphics package 付属のドキュメント、および、付属の epsfdoc.dvi,
+color.dvi および、そのソースファイルをご覧ください。
+
+LaTeX のファイルでは、たとえば以下のようにします(graphicx の代わりに,
+graphics も使えます)。
+
+\documentclass[a4j]{jarticle}
+\usepackage{graphicx, color}
+\ExecuteOptions{usename}
+...
+\includegraphcs*[width=10cm, height=8cm]{foo.jpg}
+...
+--
+淺山/SHIMA
+
+
+
+2. ps2frag.ps (PSfrag)
+
+松田さんによって、dviout for Windows の PSfrag 対応が実現されました
+(Ver.3.11.4)。
+
+具体的には、以下の操作を行っておくことによって対応が可能になります。
+
+ 1) Ghostscript(gswin32.exe) が dviout から正常に動かせる状態になっている
+ こと(Option -> Setup papameters... -> Graphic -> gsx: を参照)
+
+ 2) PSfrag(これを書いた時点での最新版は Ver.3.04)パッケージの psfrag.pro
+ を、Ghostscriptのサーチパスである環境変数 GS_LIB で指定されたディレクトリ
+ に入れておく。
+
+ 3) 旧版(Ver.2.*) の PSfrag パッケージに付属の ps2frag.ps を、2) におけると
+ 同じディレクトリに入れておく。
+
+環境変数 GS_LIB の設定が必要です。設定されていれば、1) の gsx: ボタンを押した
+とき、実行プログラム gswin32c.exe のパスのみが表示され、それにパラメータなど
+は付加されません。
diff --git a/Master/dviout/GRAPHIC/LATEX2E/readme.eng b/Master/dviout/GRAPHIC/LATEX2E/readme.eng
new file mode 100644
index 00000000000..67854766c73
--- /dev/null
+++ b/Master/dviout/GRAPHIC/LATEX2E/readme.eng
@@ -0,0 +1,73 @@
+ Graphics Package
+
+ 1. dviout.dtx -> dviout.def
+ 2. ps2frag.ps (PSfrag)
+
+
+1. dviout.def
+
+dviout.def is the graphic driver for "dviout for Windows" under the graphics
+package of LaTeX2e.
+
+Copy dviout.def and dviout.cfg from this directory to texmf\tex\latex\config
+(or the directory where the graphics package exists if texmf\tex\latex\config
+does not exist).
+
+LaTeX2e makes dviout.def from dviout.ins and also makes the manual of
+dviout.def from dviout.dtx.
+
+- the graphic formats such as PBM, BMP, WMF, EPSF and others are supported.
+ Moreover compressed graphics files by gzip are also supported.
+ But both of the width and the height of the graphic in a page should be
+ explicitly indicated in the parameter of \includegraphics or the file with
+ the extension .bb where the Bounding box is recorded should be created by
+ bmc.exe with -b ootion if the format is not of EPSF nor PBM.
+
+- Ghostscript is necessay for the graphic file in EPSF and the suitable
+ Susie plug-in (which is free software) is necessary for a graphic file
+ in the format such as JPEG, TIFF, PCD, GIF etc. which is different from
+ EPSF/PBM/BMP/BMC/WMF/EMF.
+
+ Some Susie plug-in are obtained from
+
+ http://www.digitalpad.co.jp/~takechin/
+
+ For other location see
+
+ http://akagi.ms.u-tokyo.ac.jp/dviout-ftp.html
+
+- dviout.def is in principle upper compatible to dvips.def but dviout with
+ dviout.def supports the graphics in the formats PBM/BMP/BMC/WMF/JPEG/TIFF
+ /PNG/PCD etc.
+
+- If psflag.sty is used, write the statement
+
+ \def\@tempa{dviout.def}\ifx\Gin@driver\@tempa\def\pfg@orient{-1}\fi%
+
+ after
+
+ \def\@tempa{dvips.def}\ifx\Gin@driver\@tempa\def\pfg@orient{-1}\fi%
+
+ in psflag.sty. Then PSFLAG is not supported by dviout but the dvi file
+ processed by dviout.def can be handled by dvips as the one processed by
+ dvips.def
+
+
+
+2. ps2frag.ps
+
+dviout for Windows (Ver.3.11.4) supports PSfrag by Matsuda.
+
+The followings are necessary for the support.
+
+ 1) Ghostscript (gswin32.exe) is able to be executed by dviout.
+ (See Option -> Setup papameters... -> Graphic -> gsx: )
+
+ 2) Put psfrag.pro from the PSfrag package (the current version is Ver.3.04
+ at the time when this is written) in a search path of Ghostscript which
+ should be indicated the environment variable GS_LIB.
+
+ 3) Put ps2frag.ps from the PSfrag package Ver.2.* in the same directory
+ where psfrag.pro is put.
+
+It is necessary to set the environment variable GS_LIB.
diff --git a/Master/dviout/GRAPHIC/PS/epsfdoc.tex b/Master/dviout/GRAPHIC/PS/epsfdoc.tex
new file mode 100644
index 00000000000..58fa0b768e8
--- /dev/null
+++ b/Master/dviout/GRAPHIC/PS/epsfdoc.tex
@@ -0,0 +1,355 @@
+\documentclass[a4j]{jarticle}
+\usepackage{graphicx, color}
+\title{DVIOUTとGhostscript}
+\author{内山 孝憲\thanks{慶応義塾大学理工学部物理情報工学科, Internet: uchiyama@thx.inst.keio.ac.jp}}
+\date{平成10年4月4日}
+\begin{document}
+\maketitle
+\section{はじめに}
+\LaTeX{}では, graphics packageを利用することにより,
+日本語ポストスクリプトプリンタでEncapsulated PostScriptファイル
+(EPSF)\footnote{カプセル化されたPostScriptファイル, つまりそれ自身で自
+己完結しており, EPSFを差し込んでいるPostScriptのプログラムの他の部分に
+影響を与えない. 「簡易」なPostScriptではない. EPSFについては,
+http://www.adobe.com/supportservice/devrelations/technotes.html
+の\#{}5002を参照されたい.}
+の図を挿入した文書を印刷することが出来ます.
+非ポストスクリプトプリンタでは, Ghostscriptを用いて印刷することが
+しばしば行われています. また, 画面でのプレビューにもGhostscriptが
+利用されます. しかし, GhostscriptはCPU負荷の大きいプログラムである
+ため, プレビューのように頻繁に利用する場合にはパーソナルコンピュータの
+ように計算速度や入出力速度が遅いマシンでは利用し難く感じられました.
+また, GhostscriptやGhostscriptのフロントエンドであるGhostViewによるプ
+レビュー・印刷は, dvipsを用いて予めdviファイルをポストスクリプトファ
+イルに変換しなくてはなりません.
+
+X11用のプレビュアであるxdviやtexxには,
+Ghostscriptを起動してEPSFの表示する機能があります.
+これらと同様に, パソコン用のプレビュア・プリンタドライバとして
+広く普及しているDVIOUTもGhostscriptの力を借りて
+EPSFを取り込んだ\LaTeX{}の文書をプレビュー・印刷します.
+
+\section{実現方法}
+MS-DOS版の仕様を踏襲し,
+子プロセスでGhostscriptを起動し, 一度ビットイメージのファイルを生成し,
+それを読み取ります. ビットイメージのファイルの
+形式はPortable Bitmap(PBM, 白黒)とWindows標準の多色
+BMP\footnote{Ver.3.06からは, BMPに画像圧縮を施した独自のBMC形式に変換
+して用います.}です.
+
+\verb+\special+コマンド内のPostScriptコマンド処理部分はjdvi2kps,
+dvi2ps-jおよびdvipsにほぼ互換性があります.
+\verb+\special+コマンドをみつけると, \verb+\special+コマンドで指定されている
+EPSFの拡張子をpbmあるいはbmpに置き換えたファイル名で, Ghostscriptによって
+作成されたビットイメージのファイルを捜します. ビットイメージのファイルがなければGhostscriptを起動して作成します.
+一度ビットイメージのファイルを作成すると
+EPSF自体が変更されない, あるいは取り込みサイズが変更されない
+限り, そのファイルを使います.
+つまり, Ghostscriptの呼び出しを最小限に留めるように配慮されています.
+
+
+\section{使用法}
+graphics packageをあらかじめ入手し, 00readmeにしたがって,
+\begin{verbatim}
+latex graphics.ins
+\end{verbatim}
+を実行して, パッケージを展開します.
+
+次に, 中身が
+\begin{verbatim}
+\ExecuteOptions{dvips}
+\end{verbatim}
+だけのファイル,
+color.cfgとgraphics.cfgをgraphics packageと同じディレクトリに置きます.
+
+Ghostscriptがパスの通ったディレクトリに
+インストールされており, デバイスとしてpbmrawおよびbpm*が使用できること
+が条件となります.
+
+\section{取り込み例}
+\subsection{取り込みに使用するスタイル}
+\verb+graphicx.sty+および\verb+graphics.sty+を使用することができます.
+これらの2つのスタイルファイルでは, 図を差し込むときの大きさの指定方法
+など, コマンドの引数が異なっています.
+
+実際にいくつかEPSFを取り込んでみます.
+ここでは\verb+graphicx.sty+を用います.
+
+\subsection{実際に取り込んだ絵}
+図\ref{fig:golfer}は, Illustratorで作成されたゴルファーの
+絵です.
+しばしばポストスクリプトプリンタの印刷サンプルに
+用いられます.
+Ghostscriptの配布アーカイブに含まれています.
+取込み時の指定は, 縦10cmにしました.
+
+\begin{figure}[!htbp]
+\begin{center}
+\includegraphics*[height=10cm]{golfer}
+\end{center}
+\caption{EPSFサンプル(golfer.ps)}
+\label{fig:golfer}
+\end{figure}
+
+図\ref{fig:tiger}もIllustratorによって作成された
+虎の絵です. この絵もGhostscriptの配布アーカイブに含まれています.
+取込み時のサイズを縦6cmにしました.
+
+\begin{figure}[!htbp]
+\begin{center}
+\includegraphics*[height=6cm]{tiger}
+\end{center}
+\caption{EPSFサンプル(tiger.ps)}
+\label{fig:tiger}
+\end{figure}
+
+\subsection{取り込みに使うコマンド}
+\verb+graphicx.sty+を使っているので,
+\begin{verbatim}
+\begin{figure}[!htbp]
+\begin{center}
+\includegraphics*[height=6cm]{tiger}
+\end{center}
+\caption{EPSFサンプル(tiger.ps)}
+\label{fig:tiger}
+\end{figure}
+\end{verbatim}
+のように記述しています.
+
+\verb+graphics.sty+を使う場合には,
+\begin{verbatim}
+\begin{figure}[!htbp]
+\begin{center}
+\resizebox{!}{6cm}{\includegraphics{tiger}}
+\end{center}
+\caption{EPSFサンプル(tiger.ps)}
+\label{fig:tiger}
+\end{figure}
+\end{verbatim}
+のように記述します.
+
+\verb+\includegraphics+と\verb+\includegraphics*+では,
+図を取り込むときの大きさの指定は, jdvi2kpsに添付されている
+epsbox.styとほぼ互換があります.
+このことは,
+
+\begin{verbatim}
+\documentclass{jarticle}
+\usepackage{epsbox}
+ :
+\begin{figure}[htbp]
+\begin{center}
+\psbox[height=6cm]{keyboard.epsf}
+\caption{Indyのキーボード}
+\label{fig:keyboard}
+\end{center}
+\end{figure}
+\end{verbatim}
+
+あるいは,
+
+\begin{verbatim}
+\documentstyle[epsbox]{jarticle}
+ :
+\begin{figure}[htbp]
+\begin{center}
+\psbox[height=6cm]{keyboard.epsf}
+\caption{Indyのキーボード}
+\label{fig:keyboard}
+\end{center}
+\end{figure}
+\end{verbatim}
+
+と記述していた部分を
+
+\begin{verbatim}
+\documentclass{jarticle}
+\usepackage{graphicx}
+ :
+\begin{figure}[htbp]
+\begin{center}
+\includegraphics*[height=6cm]{keyboard.epsf}
+\caption{Indyのキーボード}
+\label{fig:keyboard}
+\end{center}
+\end{figure}
+\end{verbatim}
+
+と記述できる, つまり\verb+\psbox+を\verb+\includegraphics*+に置換すれ
+ばよいことを意味します.
+
+図を差し込む位置を指定する\verb+!htbp+の\verb+!+は,
+float環境の制限を緩くするp\LaTeXe の拡張機能です.
+
+\subsection{クリッピング}
+\verb+\includegraphics*+は, BoundingBoxの値でクリッピングします.
+一方, アステリスクのない\verb+\includegraphics+は, クリッピングしませ
+ん.
+
+MS-WindowsのPostScriptプリンタのドライバでEPSFを作成すると, 用紙全体を
+白で塗りつぶした後に図を描くPostScriptプログラムを生成します.
+BoundingBoxの値は, 用紙サイズの矩形を描きますから, 正しい値です.
+このEPSFを取り込んだものを, 日本語PostScriptプリンタに印刷すると,
+用紙サイズの矩形を描いて白で塗りつぶすため, 手作業でBoundingBoxの値
+を修正しても, EPSFによって図のすぐ上の文章が消されてしまいます
+\footnote{正しいBoundigBoxではないので, EPSFが正しくない.}.
+これを回避するためには, アステリスクが付加されている
+\verb+includegraphics*+を使用します.
+\verb+includegraphics*+では, BoundingBoxでクリッピングされ, 正常に印刷
+されるようになります.
+
+なお, dvioutでは, 図や文字は重ね合あわせて描かれるのがデフォルトで,
+クリッピングを指定しなかった場合は, BoundingBoxの上下左右それぞれ1 inch外
+側までの図が取り込まれます.\footnote{この部分は SHIMA による補足です.}
+
+\section{おわりに}
+EPSFを処理するDVIOUTの機能は, 作者である大島氏により, 可能なかぎり
+PostScriptプリンタにdvipsで印刷する場合と一致するように改良が続けられ
+ていますが, 完全な互換性を提供するものではありません\footnote{この文書
+の著者は, Linux boxでこの文書を作成しており, MS-Windows版DVIOUTでの
+EPSFの取り込みを実際に動作確認してはいません.}.
+graphics packageの詳細については, grfguide.tex を参照してください.
+
+\section{SHIMAによる補足}
+\subsection{dviout for Windowsでの制限}
+dviout for Windows Ver.3.06 以降は, カラー画像の取り込みのほか, 文字
+列や画像に対して\verb+graphicx.sty+で定義されている回転, 色付け, 拡大
+縮小などの機能に対応していますが, 以下の制限があります.
+
+\begin{itemize}
+\item カラー画像の回転は, PostScript画像の90度の整数倍の回転以外は無視され,
+サポートされません.
+
+\item 文字列の回転とスケール変換, および, 90度の整数倍以外の画像の回転
+とPostScript以外の画像のスケール変換は, スムージングの処理を行っていません.
+場合によっては結果が奇麗になりません. 但し, dviprt機能を使わないデフォルト
+のモード(auto mode(p2))での印刷では, 回転あるいはスケール変換の一方のみを行った
+文字列は(下記の例では, `High'の部分のみ両者が同時に使われている),
+TrueTypeフォントを使う限り文字品質の劣化はありません.
+
+\item 取り込み画像は, その下に文字や画像があれば, それを残して描画されるのが
+デフォルトですが, \verb+-gow:+ オプションをONにすると, 下のものを消し
+て描かれます. このとき, EPSFは常にそのBoundingBoxでカットされます. 文字についてこれは, \verb+-cmode:+ をreplaceに設定するのに対応しています.
+
+\item \verb+\pagecolor+ の有効範囲は, それが定義されたページに限ります.
+
+\item {\tt gzip} で画像ファイルを圧縮したものも扱えます. たとえば
+\begin{verbatim}
+\includegraphics[height=10cm]{images/figure.ps.gz}
+\end{verbatim}
+ただしこのときは, {\tt gzip} あるいは, {\tt gunzip} が必要です.
+
+\item dviprt機能を使った印刷では, カラーに非対応で, さらに, LBPの内臓和文フォ
+ントやダウンロードフォントを使った場合, スケール変換などにも非対応です. これら
+のグラフィック機能を使う場合, Windowsのドライバを指定した印刷を行ってください.
+
+\item dviout for Windows のツールバーの File メニューからの BMP画像出力は,
+カラー画像やgray scale画像の取り込み, および, カラーや白抜き文字に対応してい
+ません.
+\end{itemize}
+
+たとえば,
+
+\bigskip
+\rotatebox{15}{15度回転}, \rotatebox[origin=c]{180}{180度回転},
+\scalebox{1}[.5]{Low}, \rotatebox[origin=c]{-15}{\scalebox{1}[2]{High}},
+\scalebox{1}[2]{\rotatebox[origin=c]{-15}{High}},
+\reflectbox{reflect} : reflect,
+\scalebox{.46}[1]{石}+\scalebox{.64}[1]{皮}=%
+\scalebox{.46}[1]{石}\hskip-.1zw\scalebox{.64}[1]{皮}=破,
+
+{\color{red}赤}, {\color{green}緑}, {\color{blue}青},
+\rotatebox[origin=c]{30}{\color{magenta}マゼンタ},
+\textcolor[rgb]{0.8,0.4,0.2}{茶色}, \textcolor[gray]{0.5}{灰色},
+\colorbox{black}{\color{white}白抜き},
+\rotatebox{15}{\fcolorbox{red}{yellow}{など}}
+\bigskip
+
+のような結果を得るには, 次のようなコマンドを使います.
+
+\begin{verbatim}
+\rotatebox{15}{15度回転}, \rotatebox[origin=c]{180}{180度回転},
+\scalebox{1}[.5]{Low},\rotatebox[origin=c]{-15}{\scalebox{1}[2]{High}},
+\scalebox{1}[2]{\rotatebox[origin=c]{-15}{High}},
+\reflectbox{reflect} : reflect,
+\scalebox{.45}[1]{石}+\scalebox{.6}[1]{皮}=%
+\scalebox{.45}[1]{石}\hskip-.1zw\scalebox{.6}[1]{皮}=破,
+
+{\color{red}赤}, {\color{green}緑}, {\color{blue}青},
+\rotatebox[origin=c]{30}{\color{magenta}マゼンタ},
+\textcolor[rgb]{0.8,0.4,0.2}{茶色}, \textcolor[gray]{0.6}{灰色},
+\colorbox{black}{\color{white}白抜き},
+\rotatebox{15}{\fcolorbox{red}{yellow}{など}}
+\end{verbatim}
+
+\subsection{PostScript以外の各種画像ファイルの取り込み}
+dviout for Windows Ver.3.08 以降では, EPSFのほかWindows標準のBMPや
+Windows (Enhanced) Metafile (EMF/WMF), そのほかPBMの画像, さらに
+DLL\footnote{Susieという画像表示プログラムのplug-inと呼ばれるDLLに
+対応しています. JPEG/TIFF/PNG/PCD/PPM などをはじめとして多くのものが提供
+されています.}を用いた各種の画像ファイルの取り込みが可能です.
+
+\LaTeXe のgraphics packageからPostScript以外の画像ファイルを取り込むため
+には dvips.def でなくて付属の dviout.def を用い, 縦横の画像のサイズ
+を \verb+\includegraphics+ で指定してください.
+このときは取り込み画像ファイルの拡張子を省略せずに,例えば次のように書き
+ます.
+
+\begin{verbatim}
+\documentclass{jarticle}
+\usepackage[dviout]{graphicx}
+ :
+\begin{figure}
+\begin{center}
+\includegraphics[width=6cm,height=4cm]{picture.bmp}
+\caption{My picture}
+\label{fig:picture}
+\end{center}
+\end{figure}
+\end{verbatim}
+
+これにより(必要なら)スケール変換され, 指定したサイズで取り込まれますが,
+クリッピングや, \verb+\resizebox+ によるサイズ変換はできません.
+
+なお, 付属の bmc.exe の \verb+-b+オプションで, たとえばコマンドラインから
+\begin{verbatim}
+ bmc -b foo.jpg
+\end{verbatim}
+のようにして, 拡張子 \verb+.bb+ をもつファイル(この例では,
+\verb+foo.bb+)を作成しておけば BoundingBox がそこに書かれているので,
+ 縦あるいは横のサイズの指定を省略できます. 縦横の一方のみ指定した場合は,
+アスペクト比を保ったサイズ変換となります.
+
+縦横両方のサイズを省略するときは, \verb+-b=300+ のように出力ファイルの解
+像度を dpi の値で bmc.exe のオプションの \verb+-b=+ の後に指定し
+て BoundingBox が書かれたファイルを作成しておくと, デフォルトではもと
+の画像データがそのまま取り込まれます.
+
+上記の{\tt picture.bmp} の部分は, {\tt images/picture.bmp.gz} なども許され
+ます.
+
+\begin{itemize}
+\item
+dviout for Windows 以外では, このような各種画像の取り込みはサポートさ
+れていないと思われますので, dvipsなどのほかのDevice Driverを使う場合の
+互換性にご注意ください. このPostScript以外の画像取り込みを除いて
+dviout.def と dvips.def とは互換性がありますので, dvipsに対して dvips.def
+の代わりに dviout.def を用いても支障ありません.
+
+\item
+DVIファイルとそれが取り込む画像をまとめてUNIXのtar形式ファイルにしたものや,
+付属の dviadd を使って一つのDVIファイルにしたもの(付属の sample.dvi がこの
+例), あるいはそれらを gzip で圧縮したもの(よって, ファイル名の末尾は
+{\tt .tar.gz} または {\tt .dvi.gz} となる)をdviout for Windowsは直接読むこ
+とができます.
+\end{itemize}
+
+\section{著作権に関する注意事項}
+epsbox.styと組み合せて使用されるjdvi2kpsと整
+合性を保つために, jdvi2kpsのepsbox.c内の一部の関数をそのまま引用してい
+ます. これについては, 松下電器産業(株)情報
+システム研究所に著作権がありますので, その取扱いについてはjdvi2kpsの
+copyrightファイルに記された内容に従ってください.
+
+
+\end{document}
diff --git a/Master/dviout/GRAPHIC/PS/gssub.exe b/Master/dviout/GRAPHIC/PS/gssub.exe
new file mode 100755
index 00000000000..f4cd83177eb
--- /dev/null
+++ b/Master/dviout/GRAPHIC/PS/gssub.exe
Binary files differ
diff --git a/Master/dviout/GRAPHIC/PS/pssample.tex b/Master/dviout/GRAPHIC/PS/pssample.tex
new file mode 100644
index 00000000000..9484279683e
--- /dev/null
+++ b/Master/dviout/GRAPHIC/PS/pssample.tex
@@ -0,0 +1,69 @@
+% Translate this file into a dvi file by LaTeX and execute dviout/prt by
+% putting the following files in the directory where the dvi file exists.
+%
+% GhostScript should be in the search path.
+%
+% sample0.ps, sample1.ps, sample2.ps, sample3.ps, starbrst.ps
+% myhyper.sty (myhyper.sty is contained in the package of dviout)
+% tiger.ps, golfer.ps (tiger.ps, golfer.ps are contained in the package of
+% GostScript)
+%
+
+\documentstyle[a4, myhyper]{article}
+\begin{document}
+
+\centerline{\Huge A samples : dviout/dviprt--PostScript figure}
+\vskip .5cm
+
+
+\hskip-.3cm\special{epsfile=sample0.ps vsize=4.2cm}
+\vskip3cm
+
+
+\vskip 1.5cm
+\hskip 2cm
+\special{epsfile=sample1.ps vsize=10cm}
+
+
+\vskip 10cm
+
+\hskip.3cm\special{epsfile=sample2.ps vsize=5cm}
+\vskip 5cm
+
+{\Large Click \href{file:..\..\sample\sample.dvi#graphic"}{here} to
+jump to another file}
+\vskip 5cm
+
+\pagebreak
+
+\centerline{\Huge ``%
+\special{color push rgb 0 0 1}%
+Golfer%
+\special{color pop}%
+" in Ghostscript
+}
+
+\hskip 3.5cm
+\special{epsfile=golfer.ps vsize=10cm}
+\vskip 11cm
+
+\centerline{\Huge ``%
+\special{color push rgb 0.8 0.4 0.2}%
+Tiger%
+\special{color pop}%
+" lives in Ghostscript
+}
+\vskip 1.5cm
+
+\hskip3.6cm
+\special{epsfile=tiger.ps hscale=0.4 vscale=0.36}
+\pagebreak
+
+
+\vskip 1cm
+\hskip 1.5cm
+\special{epsfile=sample3.ps vsize=17cm}
+
+\vskip 19cm
+\centerline{\Large Modified by SHIMA from samples by Asayama, Mar.\ 1993}
+\end{document}
diff --git a/Master/dviout/GRAPHIC/PS/sample0.ps b/Master/dviout/GRAPHIC/PS/sample0.ps
new file mode 100644
index 00000000000..78c5e74feb9
--- /dev/null
+++ b/Master/dviout/GRAPHIC/PS/sample0.ps
@@ -0,0 +1,9 @@
+%!PS-Adobe-3.0 EPSF-3.0
+%%BoundingBox: 50 8 670 195
+
+(starbrst.ps) run
+gsave
+/Courier-Bold findfont [ 80 0 0 200 0 0 ] makefont setfont
+50 50 moveto (dviout/dviprt) starburstshow
+grestore
+showpage
diff --git a/Master/dviout/GRAPHIC/PS/sample1.ps b/Master/dviout/GRAPHIC/PS/sample1.ps
new file mode 100644
index 00000000000..f928f547328
--- /dev/null
+++ b/Master/dviout/GRAPHIC/PS/sample1.ps
@@ -0,0 +1,52 @@
+%!PS-Adobe-3.0 EPSF-3.0
+%%BoundingBox: 2 19 478 492
+
+/GNU {
+1 dict begin
+
+/R 1.0 def
+/NotUnix (GNU's not UNIX) def
+gsave
+1.2 1.2 rmoveto
+gsave
+/Courier findfont [ 0.7 0 0 0.8 0 0 ] makefont setfont
+(UNIX) dup stringwidth pop 2 div neg -0.25 rmoveto show
+grestore
+
+gsave
+0.2 setlinewidth
+1 0 0 setrgbcolor
+gsave
+currentpoint newpath R 0 370 arc stroke
+grestore
+gsave
+135 cos R mul 135 sin R mul rmoveto
+R 2 sqrt mul dup neg rlineto stroke
+grestore
+grestore
+
+gsave
+0 1 NotUnix length 1 sub {
+ gsave
+ dup 10 mul 65 sub /Rol exch def
+ /Courier findfont
+ [ 1 0 0 1 -0.3 0 ] makefont
+ [ Rol cos Rol sin neg Rol sin Rol cos 0 0 ] makefont
+ 0.25 scalefont setfont
+ Rol neg 90 add dup cos 1.15 mul exch sin 1.15 mul rmoveto
+ NotUnix exch 1 getinterval show
+ grestore
+} for
+grestore
+
+grestore
+end
+} def
+
+0 0 moveto
+gsave
+200 200 scale
+GNU
+grestore
+
+showpage
diff --git a/Master/dviout/GRAPHIC/PS/sample2.ps b/Master/dviout/GRAPHIC/PS/sample2.ps
new file mode 100644
index 00000000000..de7341d17a9
--- /dev/null
+++ b/Master/dviout/GRAPHIC/PS/sample2.ps
@@ -0,0 +1,9 @@
+%!PS-Adobe-3.0 EPSF-3.0
+%%BoundingBox: 50 8 526 180
+
+(starbrst.ps) run
+gsave
+/Courier-Bold findfont [ 80 0 0 200 0 0 ] makefont setfont
+50 50 moveto (PostScript) starburstshow
+grestore
+showpage
diff --git a/Master/dviout/GRAPHIC/PS/sample3.ps b/Master/dviout/GRAPHIC/PS/sample3.ps
new file mode 100644
index 00000000000..7ea6e0bfb44
--- /dev/null
+++ b/Master/dviout/GRAPHIC/PS/sample3.ps
@@ -0,0 +1,22 @@
+%!PS-Adobe-2.0 EPSF-1.2
+%%BoundingBox: 20 2 520 760
+
+gsave
+newpath
+/Courier-Bold findfont [ 320 0 0 800 0 0 ] makefont setfont
+matrix currentmatrix
+500 0 translate 90 rotate
+0 0 moveto (EPSF) true charpath clip
+setmatrix
+1 dict begin
+/showpage {} def
+gsave
+newpath
+1.2 1.2 scale
+-90 -50 translate
+(golfer.ps) runlibfile
+grestore
+end
+5 setlinewidth stroke
+grestore
+showpage
diff --git a/Master/dviout/GRAPHIC/PS/starbrst.ps b/Master/dviout/GRAPHIC/PS/starbrst.ps
new file mode 100644
index 00000000000..a2665e94cdd
--- /dev/null
+++ b/Master/dviout/GRAPHIC/PS/starbrst.ps
@@ -0,0 +1,30 @@
+userdict begin
+% Usage : -- starburstfill --
+% Fill current path with "Star Burst"
+/starburstfill {
+10 dict begin
+ pathbbox /uy exch def /ux exch def /ly exch def /lx exch def
+ ux lx sub /xs exch def xs dup mul
+ uy ly sub /ys exch def ys dup mul
+ add sqrt /R exch def
+ clip
+ newpath
+ lx xs 2 div add /xx exch def
+ ly ys 2 div add /yy exch def
+ 0 2 359.9 {
+ xx yy moveto
+ dup cos R mul exch sin R mul rlineto
+ } for
+ stroke
+end
+} bind def
+
+% Usage : <strings> starburstshow --
+/starburstshow {
+2 dict begin
+ dup stringwidth /yw exch def /xw exch def gsave
+ currentpoint newpath moveto
+ false charpath starburstfill grestore xw yw rmoveto
+end
+} bind def
+end
diff --git a/Master/dviout/GRAPHIC/TPIC/linetest.tex b/Master/dviout/GRAPHIC/TPIC/linetest.tex
new file mode 100644
index 00000000000..6ca24caf4be
--- /dev/null
+++ b/Master/dviout/GRAPHIC/TPIC/linetest.tex
@@ -0,0 +1,280 @@
+\documentstyle{jarticle}
+\begin{document}
+\unitlength 0.001in
+
+\begin{center}
+
+\begin{picture}(2200,3000)(0,-3000)
+\special{pn 50}%
+\special{pa 1400 1100}%
+\special{pa 2100 1100}%
+\special{fp}%
+\special{pa 1395 1152}%
+\special{pa 2084 1273}%
+\special{fp}%
+\special{pa 1381 1202}%
+\special{pa 2039 1442}%
+\special{fp}%
+\special{pa 1359 1249}%
+\special{pa 1966 1599}%
+\special{fp}%
+\special{pa 1329 1292}%
+\special{pa 1866 1742}%
+\special{fp}%
+\special{pa 1292 1329}%
+\special{pa 1742 1866}%
+\special{fp}%
+\special{pa 1250 1359}%
+\special{pa 1600 1966}%
+\special{fp}%
+\special{pa 1202 1381}%
+\special{pa 1442 2039}%
+\special{fp}%
+\special{pa 1152 1395}%
+\special{pa 1273 2084}%
+\special{fp}%
+\special{pa 1100 1399}%
+\special{pa 1100 2099}%
+\special{fp}%
+\special{pa 1047 1395}%
+\special{pa 926 2084}%
+\special{fp}%
+\special{pa 997 1381}%
+\special{pa 757 2039}%
+\special{fp}%
+\special{pa 950 1359}%
+\special{pa 600 1966}%
+\special{fp}%
+\special{pa 907 1329}%
+\special{pa 457 1866}%
+\special{fp}%
+\special{pa 870 1292}%
+\special{pa 333 1742}%
+\special{fp}%
+\special{pa 840 1250}%
+\special{pa 233 1600}%
+\special{fp}%
+\special{pa 818 1202}%
+\special{pa 160 1442}%
+\special{fp}%
+\special{pa 804 1152}%
+\special{pa 115 1273}%
+\special{fp}%
+\special{pa 800 1100}%
+\special{pa 100 1100}%
+\special{fp}%
+\special{pa 804 1047}%
+\special{pa 115 926}%
+\special{fp}%
+\special{pa 818 997}%
+\special{pa 160 757}%
+\special{fp}%
+\special{pa 840 950}%
+\special{pa 233 600}%
+\special{fp}%
+\special{pa 870 907}%
+\special{pa 333 457}%
+\special{fp}%
+\special{pa 907 870}%
+\special{pa 457 333}%
+\special{fp}%
+\special{pa 949 840}%
+\special{pa 599 233}%
+\special{fp}%
+\special{pa 997 818}%
+\special{pa 757 160}%
+\special{fp}%
+\special{pa 1047 804}%
+\special{pa 926 115}%
+\special{fp}%
+\special{pa 1099 800}%
+\special{pa 1099 100}%
+\special{fp}%
+\special{pa 1152 804}%
+\special{pa 1273 115}%
+\special{fp}%
+\special{pa 1202 818}%
+\special{pa 1442 160}%
+\special{fp}%
+\special{pa 1249 840}%
+\special{pa 1599 233}%
+\special{fp}%
+\special{pa 1292 870}%
+\special{pa 1742 333}%
+\special{fp}%
+\special{pa 1329 907}%
+\special{pa 1866 457}%
+\special{fp}%
+\special{pa 1359 949}%
+\special{pa 1966 599}%
+\special{fp}%
+\special{pa 1381 997}%
+\special{pa 2039 757}%
+\special{fp}%
+\special{pa 1395 1047}%
+\special{pa 2084 926}%
+\special{fp}%
+\put(1100, -2800){\makebox(0,0){実線}}%
+\end{picture}%
+\begin{picture}(2200,3000)(0,-3000)
+\special{pn 50}%
+\special{pa 1400 1100}%
+\special{pa 2100 1100}%
+\special{da 0.07}%
+\special{pa 1395 1152}%
+\special{pa 2084 1273}%
+\special{da 0.07}%
+\special{pa 1381 1202}%
+\special{pa 2039 1442}%
+\special{da 0.07}%
+\special{pa 1359 1249}%
+\special{pa 1966 1599}%
+\special{da 0.07}%
+\special{pa 1329 1292}%
+\special{pa 1866 1742}%
+\special{da 0.07}%
+\special{pa 1292 1329}%
+\special{pa 1742 1866}%
+\special{da 0.07}%
+\special{pa 1250 1359}%
+\special{pa 1600 1966}%
+\special{da 0.07}%
+\special{pa 1202 1381}%
+\special{pa 1442 2039}%
+\special{da 0.07}%
+\special{pa 1152 1395}%
+\special{pa 1273 2084}%
+\special{da 0.07}%
+\special{pa 1100 1399}%
+\special{pa 1100 2099}%
+\special{da 0.07}%
+\special{pa 1047 1395}%
+\special{pa 926 2084}%
+\special{da 0.07}%
+\special{pa 997 1381}%
+\special{pa 757 2039}%
+\special{da 0.07}%
+\special{pa 950 1359}%
+\special{pa 600 1966}%
+\special{da 0.07}%
+\special{pa 907 1329}%
+\special{pa 457 1866}%
+\special{da 0.07}%
+\special{pa 870 1292}%
+\special{pa 333 1742}%
+\special{da 0.07}%
+\special{pa 840 1250}%
+\special{pa 233 1600}%
+\special{da 0.07}%
+\special{pa 818 1202}%
+\special{pa 160 1442}%
+\special{da 0.07}%
+\special{pa 804 1152}%
+\special{pa 115 1273}%
+\special{da 0.07}%
+\special{pa 800 1100}%
+\special{pa 100 1100}%
+\special{da 0.07}%
+\special{pa 804 1047}%
+\special{pa 115 926}%
+\special{da 0.07}%
+\special{pa 818 997}%
+\special{pa 160 757}%
+\special{da 0.07}%
+\special{pa 840 950}%
+\special{pa 233 600}%
+\special{da 0.07}%
+\special{pa 870 907}%
+\special{pa 333 457}%
+\special{da 0.07}%
+\special{pa 907 870}%
+\special{pa 457 333}%
+\special{da 0.07}%
+\special{pa 949 840}%
+\special{pa 599 233}%
+\special{da 0.07}%
+\special{pa 997 818}%
+\special{pa 757 160}%
+\special{da 0.07}%
+\special{pa 1047 804}%
+\special{pa 926 115}%
+\special{da 0.07}%
+\special{pa 1099 800}%
+\special{pa 1099 100}%
+\special{da 0.07}%
+\special{pa 1152 804}%
+\special{pa 1273 115}%
+\special{da 0.07}%
+\special{pa 1202 818}%
+\special{pa 1442 160}%
+\special{da 0.07}%
+\special{pa 1249 840}%
+\special{pa 1599 233}%
+\special{da 0.07}%
+\special{pa 1292 870}%
+\special{pa 1742 333}%
+\special{da 0.07}%
+\special{pa 1329 907}%
+\special{pa 1866 457}%
+\special{da 0.07}%
+\special{pa 1359 949}%
+\special{pa 1966 599}%
+\special{da 0.07}%
+\special{pa 1381 997}%
+\special{pa 2039 757}%
+\special{da 0.07}%
+\special{pa 1395 1047}%
+\special{pa 2084 926}%
+\special{da 0.07}%
+\put(1100, -2800){\makebox(0,0){破線}}%
+\end{picture}
+
+\begin{picture}(2200,2200)(0,-2000)
+\special{pa 200 500}%
+\special{pa 600 300}%
+\special{pa 1000 500}%
+\special{pa 1400 300}%
+\special{pa 1800 500}%
+\special{pa 200 1000}%
+\special{pa 1500 1500}%
+\special{pa 1600 500}%
+\special{pa 2000 1000}%
+\special{pa 700 1800}%
+\special{pa 1000 1000}%
+\special{fp}%
+\put(1100, -2000){\makebox(0,0){実線(連続)}}%
+\end{picture}%
+\begin{picture}(2200,2200)(0,-2000)
+\special{pa 200 500}%
+\special{pa 600 300}%
+\special{pa 1000 500}%
+\special{pa 1400 300}%
+\special{pa 1800 500}%
+\special{pa 200 1000}%
+\special{pa 1500 1500}%
+\special{pa 1600 500}%
+\special{pa 2000 1000}%
+\special{pa 700 1800}%
+\special{pa 1000 1000}%
+\special{da 0.07}%
+\put(1100, -2000){\makebox(0,0){破線(連続)}}%
+\end{picture}
+
+\begin{picture}(2200,2200)(0,-2000)
+\special{pa 200 500}%
+\special{pa 600 300}%
+\special{pa 1000 500}%
+\special{pa 1400 300}%
+\special{pa 1800 500}%
+\special{pa 200 1000}%
+\special{pa 1500 1500}%
+\special{pa 1600 500}%
+\special{pa 2000 1000}%
+\special{pa 700 1800}%
+\special{pa 1000 1000}%
+\special{dt 0.14}%
+\put(1100, -2000){\makebox(0,0){点線(連続)}}%
+\end{picture}
+\end{center}
+
+\end{document}
diff --git a/Master/dviout/GRAPHIC/TPIC/rtexampl.tex b/Master/dviout/GRAPHIC/TPIC/rtexampl.tex
new file mode 100644
index 00000000000..aefcd20e7b7
--- /dev/null
+++ b/Master/dviout/GRAPHIC/TPIC/rtexampl.tex
@@ -0,0 +1,125 @@
+% 非公式 tpic 拡張(通称まわる tpic)サンプル
+
+\documentstyle{jarticle}
+\begin{document}
+
+Rotation Examples ...
+
+\begin{center}
+\unitlength 0.001in
+
+\begin{picture}(2000,2500)
+ \put(500,1250){\special{rt 0 0 4.71239}\makebox(0,0){Leftside}%
+ \special{rt 0 0 0}}
+ \put(1000,1250){\special{rt 0 0 3.14159}\makebox(0,0){Upsidedown}%
+ \special{rt 0 0 0}}
+ \put(1500,1250){\special{rt 0 0 1.57080}\makebox(0,0){Rightside}%
+ \special{rt 0 0 0}}
+ \end{picture}
+ \begin{picture}(2000,500)
+ \put(1000,1250){\special{rt 0 0 0.78540}{\Large 疑問点 this is it!}%
+ \special{rt 0 0 0}}
+ \put(1000,1250){\special{rt 0 0 3.9270}{\Large is this it? 疑問点}%
+ \special{rt 0 0 0}}
+\end{picture}
+
+\begin{picture}(2000,1700)(0,-1600)
+ \put(1000,-850){\special{rt 0 0 4.71239}}%
+ \special{pn 8}%
+ \special{sh}%
+ \special{ia 350 200 400 250 0 6.28319}%
+ \special{sh 0}%
+ \special{ar 400 250 400 250 0 6.28319}%
+ \put(400,-250){\makebox(0,0){document}}%
+ \special{sh 0}%
+ \special{ia 750 475 200 200 0 6.28319}%
+ \special{sh 0.1}%
+ \special{ar 750 475 200 200 0 6.28319}%
+ \put(750,-450){\makebox(0,0){tpic}}%
+ \special{pa 800 250}%
+ \special{pa 1200 250}%
+ \special{fp}%
+ \special{sh 1}%
+ \special{pa 1200 250}%
+ \special{pa 1100 275}%
+ \special{pa 1100 225}%
+ \special{pa 1200 250}%
+ \special{fp}%
+ \special{sh}%
+ \special{pa 1150 450}%
+ \special{pa 1950 450}%
+ \special{pa 1950 -50}%
+ \special{pa 1750 -50}%
+ \special{pa 1550 100}%
+ \special{pa 1350 -50}%
+ \special{pa 1150 -50}%
+ \special{pa 1150 450}%
+ \special{ip}%
+ \special{sh 0}%
+ \special{pa 1200 500}%
+ \special{pa 2000 500}%
+ \special{pa 2000 0}%
+ \special{pa 1800 0}%
+ \special{pa 1600 150}%
+ \special{pa 1400 0}%
+ \special{pa 1200 0}%
+ \special{pa 1200 500}%
+ \special{fp}%
+ \put(1600,-250){\makebox(0,0){\TeX}}%
+ \special{pa 1600 500}%
+ \special{pa 1600 1050}%
+ \special{fp}%
+ \special{sh 1}%
+ \special{pa 1600 1050}%
+ \special{pa 1625 950}%
+ \special{pa 1575 950}%
+ \special{pa 1600 1050}%
+ \special{fp}%
+ \special{sh}%
+ \special{pa 1150 1450}%
+ \special{pa 1550 1400}%
+ \special{pa 1950 1450}%
+ \special{pa 1950 1200}%
+ \special{pa 1950 950}%
+ \special{pa 1550 1000}%
+ \special{pa 1150 950}%
+ \special{pa 1200 1200}%
+ \special{pa 1150 1450}%
+ \special{sp -0.05}%
+ \special{sh 0}%
+ \special{pa 1200 1500}%
+ \special{pa 1600 1450}%
+ \special{pa 2000 1500}%
+ \special{pa 1950 1250}%
+ \special{pa 2000 1000}%
+ \special{pa 1600 1050}%
+ \special{pa 1200 1000}%
+ \special{pa 1250 1250}%
+ \special{pa 1200 1500}%
+ \special{sp}%
+ \put(1600,-1250){\makebox(0,0){dvi driver}}%
+ \special{sh 0}%
+ \special{ia 1950 1475 200 200 0 6.28319}%
+ \special{sh 0.2}%
+ \special{ar 1950 1475 200 200 0 6.28319}%
+ \put(1950,-1450){\makebox(0,0){tpic}}%
+ \special{pa 1250 1250}%
+ \special{pa 800 1250}%
+ \special{fp}%
+ \special{sh 1}%
+ \special{pa 800 1250}%
+ \special{pa 900 1275}%
+ \special{pa 900 1225}%
+ \special{pa 800 1250}%
+ \special{fp}%
+ \special{sh}%
+ \special{ia 350 1200 400 250 0 6.28319}%
+ \special{sh 0}%
+ \special{ar 400 1250 400 250 0 6.28319}%
+ \put(400,-1250){\makebox(0,0){printer}}%
+ \put(1000,850){\special{rt 0 0 0}}%
+\end{picture}
+
+\end{center}
+
+\end{document}
diff --git a/Master/dviout/GRAPHIC/TPIC/tpic_ext.doc b/Master/dviout/GRAPHIC/TPIC/tpic_ext.doc
new file mode 100644
index 00000000000..e30c61dd667
--- /dev/null
+++ b/Master/dviout/GRAPHIC/TPIC/tpic_ext.doc
@@ -0,0 +1,64 @@
+ 【 tpic 修正と拡張・差分 】
+
+ by Oh-Yeah? (NIFTY GGA03472) 22 Nov. 1992
+
+【修正点】
+
+1. スプライン曲線を他の dvi ドライバに合わせて、各点間の中点を通る Bezier 曲
+ 線に変更。
+2. 破線・点線がパスの各点上に常にのるようにした。
+3. 小さい円も表示するようにした。
+4. 太い線分が少し長くなるため、細い線分を突き抜ける不具合を修正。
+5. 三角形領域の塗り潰しを二つ並べると隙間ができる不具合を修正。
+
+ ご指摘いただいた中林さん、HAC さん、岩本さん、もろさんに感謝します。
+
+【拡張点】
+
+1. gnuplot などで関数グラフをかくのに便利なように、da コマンドを拡張し、複数
+ の引き数を取れるようにした。 引き数は交互に実線部分、空白部分の長さをイン
+ チ単位の実数で指定する。 この場合、破線はこの指定パターンのくり返しで描か
+ れ、パスの各点を「連続に」通過する。 すなわち、各点上に実線部分がのるとは
+ 限らない。たとえば
+
+ \special{da 0.1} % o___ ___ ___o___ ___
+ \special{da 0.1 0.1}% o___ ___ ___ o ___ ___
+ \special{da 0.1 0.01 0.01 0.01} % 一点鎖線
+ \special{da 0.1 0.01 0.01 0.01 0.01 0.01}% 二点鎖線
+
+2. 関数グラフの Y 軸キャプションをかくのに便利なように、新たに rt コマンドを
+ 設けた。 rt x y f で、 以後の全てのテキスト及びグラフィックス出力を(x, y)
+ の回りに角度 f だけ回転させる。 他の tpic コマンドの場合と同様、x, y はミ
+ リインチ単位の整数、f は時計回りが正のラジアン単位。回転は相対的ではなく、
+ 常にビットマップの絶対座標に対して行われ、f = 0 でリセットされる。 たとえ
+ ば
+
+ \begin{picture}(500,500)
+ \put(100,250){\special{rt 0 0 4.71239}\makebox(0,0){Leftside}%
+ \special{rt 0 0 0}}
+ \put(250,250){\special{rt 0 0 3.14159}\makebox(0,0){Upsidedown}%
+ \special{rt 0 0 0}}
+ \put(400,250){\special{rt 0 0 1.57080}\makebox(0,0){Rightside}%
+ \special{rt 0 0 0}}
+ \end{picture}
+
+ この二つの拡張は非公式であり、ポータビリティがないので使用にはご注意くださ
+い。個人で楽しむぶんには問題ありません。(^^); 私の将来プランとしては、
+
+A. tpic ユーザーの評判はどうか?
+
+ * いらねぇんだよ。 ---> exit
+ * いいじゃん。 ---> B
+
+B. Tim Morgan 氏に打診し、tpic 次バージョンの仕様として採用を提案。
+
+ * I like it. ---> tpic 公式拡張
+ * I don't like it. ---> C
+
+C. Postscript のサブセットとして dviout/prt でサポートすることを検討。たとえ
+ ば、1. は setdash とほぼ同様であり、2. は currentpoint, translate, rotate
+ などの組み合わせで表せる。 (実際、 T. Rokicki 氏の dvips に付属する
+ rotate.sty は、 Postscript コードを tpic rt コマンドに置きかえるだけで こ
+ の dviout/prt でも簡単に使えるようになります。)
+
+などを考えています。ご意見をお待ちしてますっ。
diff --git a/Master/dviout/GRAPHIC/TPIC/tpicdoc.tex b/Master/dviout/GRAPHIC/TPIC/tpicdoc.tex
new file mode 100644
index 00000000000..d948bf37627
--- /dev/null
+++ b/Master/dviout/GRAPHIC/TPIC/tpicdoc.tex
@@ -0,0 +1,378 @@
+% この文書は tpic specials を含みます。tpic 用 dviout/prt で御覧ください。
+
+\documentstyle[11pt,a4j,jtwocolumn]{jarticle}
+
+\title{Tpic について}
+\author{Oh-Yeah? (Nifty-Serve GGA03472)}
+\date{June 7, 1992}
+
+\begin{document}
+\maketitle
+\section{見果てぬ夢、\TeX ~Graphics}
+ご存じのように、\TeX は本来文章を美しく組版するためのプログラムであり、 描画
+の機能は極めて限定されています。しかし、その素晴らしい出力を目にして、図や絵
+を取り込めたらいいなぁと思うひとも多いらしく、\LaTeX の picture 環境をはじめ、
+PiCTeX や epic など、いくつかの工夫がなされてきました。 これらのアド・オンソ
+フトは 100 \% の \TeX 互換性を保っており、作成した文書は標準の \TeX システム
+及び dvi ドライバでそのまま出力できます。 その反面、互換性ゆえの制限もかなり
+厳しく、描ける線の傾きが限られていたり、小さな文字を並べて図をかくために大量
+のディスク容量とメモリを必要としたりします。特にパソコン上の \TeX でこみいっ
+た図を書こうとすると、Big\TeX でも、 遠いところへ旅立って行き二度と帰ってきま
+せん。\verb+v(^^;)v+
+
+一方、(私はよく知りませんが) \TeX 文書に Postscript の図を取り込む工夫もな
+されつつあるようです。しかし、このアプローチには Postscript プリンタが必要で
+す。
+
+tpic も、\TeX にグラフィックス機能を付け加えるために考案されたもののひとつで
+す。ところがこの場合、\TeX の special コマンドを利用するので、それをサポート
+する dvi ドライバが必要となります。 \TeX は標準のものでいいのですが、\TeX 自
+身は tpic specials コマンドをそのまま dvi ファイルに書き込むだけです。早い話
+が、「グラフィックスは dvi ドライバに任せとけ」というわけです。 互換性はある
+程度犠牲になりますが、 その代わり \TeX に負担がかからないので、 メモリと dvi
+ファイルはずっと小さくてすみ、処理速度も(たぶん)速くなります。実線・破線・
+点線・ spline 曲線・円・楕円・弧が自由に描けます。また、シェーディング(塗り
+つぶし)や上書きの機能もあります。dvi ドライバが tpic をサポートしていれば、
+プリンタは当然普通のものでよいわけです。
+
+\begin{center}
+\unitlength 0.001in
+\begin{picture}(2000,1700)(0,-1600)
+ \special{pn 8}%
+ \special{sh}%
+ \special{ia 350 200 400 250 0 6.28319}%
+ \special{sh 0}%
+ \special{ar 400 250 400 250 0 6.28319}%
+ \put(400,-250){\makebox(0,0){document}}%
+ \special{sh 0}%
+ \special{ia 750 475 200 200 0 6.28319}%
+ \special{sh 0.1}%
+ \special{ar 750 475 200 200 0 6.28319}%
+ \put(750,-450){\makebox(0,0){tpic}}%
+ \special{pa 800 250}%
+ \special{pa 1200 250}%
+ \special{fp}%
+ \special{sh 1}%
+ \special{pa 1200 250}%
+ \special{pa 1100 275}%
+ \special{pa 1100 225}%
+ \special{pa 1200 250}%
+ \special{fp}%
+ \special{sh}%
+ \special{pa 1150 450}%
+ \special{pa 1950 450}%
+ \special{pa 1950 -50}%
+ \special{pa 1750 -50}%
+ \special{pa 1550 100}%
+ \special{pa 1350 -50}%
+ \special{pa 1150 -50}%
+ \special{pa 1150 450}%
+ \special{ip}%
+ \special{sh 0}%
+ \special{pa 1200 500}%
+ \special{pa 2000 500}%
+ \special{pa 2000 0}%
+ \special{pa 1800 0}%
+ \special{pa 1600 150}%
+ \special{pa 1400 0}%
+ \special{pa 1200 0}%
+ \special{pa 1200 500}%
+ \special{fp}%
+ \put(1600,-250){\makebox(0,0){\TeX}}%
+ \special{pa 1600 500}%
+ \special{pa 1600 1050}%
+ \special{fp}%
+ \special{sh 1}%
+ \special{pa 1600 1050}%
+ \special{pa 1625 950}%
+ \special{pa 1575 950}%
+ \special{pa 1600 1050}%
+ \special{fp}%
+ \special{sh}%
+ \special{pa 1150 1450}%
+ \special{pa 1550 1400}%
+ \special{pa 1950 1450}%
+ \special{pa 1950 1200}%
+ \special{pa 1950 950}%
+ \special{pa 1550 1000}%
+ \special{pa 1150 950}%
+ \special{pa 1200 1200}%
+ \special{pa 1150 1450}%
+ \special{sp -0.05}%
+ \special{sh 0}%
+ \special{pa 1200 1500}%
+ \special{pa 1600 1450}%
+ \special{pa 2000 1500}%
+ \special{pa 1950 1250}%
+ \special{pa 2000 1000}%
+ \special{pa 1600 1050}%
+ \special{pa 1200 1000}%
+ \special{pa 1250 1250}%
+ \special{pa 1200 1500}%
+ \special{sp}%
+ \put(1600,-1250){\makebox(0,0){dvi driver}}%
+ \special{sh 0}%
+ \special{ia 1950 1475 200 200 0 6.28319}%
+ \special{sh 0.2}%
+ \special{ar 1950 1475 200 200 0 6.28319}%
+ \put(1950,-1450){\makebox(0,0){tpic}}%
+ \special{pa 1250 1250}%
+ \special{pa 800 1250}%
+ \special{fp}%
+ \special{sh 1}%
+ \special{pa 800 1250}%
+ \special{pa 900 1275}%
+ \special{pa 900 1225}%
+ \special{pa 800 1250}%
+ \special{fp}%
+ \special{sh}%
+ \special{ia 350 1200 400 250 0 6.28319}%
+ \special{sh 0}%
+ \special{ar 400 1250 400 250 0 6.28319}%
+ \put(400,-1250){\makebox(0,0){printer}}%
+\end{picture}
+\end{center}
+
+むろん互換性とポータビリティは \TeX の重要な特徴であり、 specials の扱いには
+慎重さが必要です。とは言うものの、ことグラフィックスに関しては \TeX 自身では
+なく dvi ドライバが引き受けるのは合理的であるように思えます。 また、Knuth 氏
+も The \TeX ~Book の中で、
+
+\begin{quotation}
+\special{sh 0.1}%
+\special{pa 0 0}%
+\special{pa 3000 0}%
+\special{pa 3000 1500}%
+\special{pa 0 1500}%
+\special{pa 0 0}%
+\special{ip}%
+しかし、さまざまなグループの人たちが注意深く実験を重ね、その結果、グラフィッ
+ク命令の何らかの標準が生まれるものと期待している。そうなれば、\verb+\special
++ 拡張命令の使い方も統一される可能性も生じる。(鷺谷好輝訳)%
+\end{quotation}
+
+と書いています。この点、現在 tpic は eepic, gnuplot をはじめとする多くのプロ
+グラムや dvi ドライバによってサポートされており、 事実上の標準と呼べる存在に
+なっています。
+
+そこで今回のバージョンでは、sempa 氏のご厚意により、 dviout/prt に tpic サポ
+ートを付け加えることにしました。通常 (non-tpic) 文書の処理速度も旧バージョン
+の dviout/prt に比べ数 \% 遅い程度と思われますので、 tpic を使うことの少ない
+ユーザーにもデメリットにはならないでしょう。ただし、プログラムサイズはかなり
+大きくなっています。
+
+ちなみに、一例として、 gnuplot を用いて同一内容のグラフを latex 形式と eepic
+形式で出力しそのサイズを比較してみると:
+
+\begin{center}
+\begin{tabular}{lcc}
+ & latex & eepic \\
+\hline
+CP2FIG1.TEX & 11684 & 1513 \\
+CP2FIG2.TEX & 20586 & 1512 \\
+CP2FIG3.TEX & 11684 & 1513 \\
+CP2.DVI & 21052 & 8584
+\end{tabular}
+\end{center}
+
+というわけで、かなりファイルサイズが小さくなり、 \TeX の負担も少なくなってい
+ることが判ります。複雑なグラフを書く場合には特にメリットが大きいと思います。
+
+\section{tpic とは何か}
+
+tpic は、 Brian Kernighan の Troff 用図形プリプロセッサ pic を元にして、 Tim
+Morgan が作り上げた \TeX 用図形プリプロセッサ及びそれが出力する special コマ
+ンドセットの名称です。最新バージョンは 2.2 です。tpic special コマンドセット
+それ自体はごく簡単なグラフィック・プリミティブ命令ですが、インプリメントが比
+較的容易であるにもかかわらず応用性が広いので、 多くの dvi ドライバ (iptex,
+xtex, texx, texsun, imagen1, dvips, dviis, quicspool) やグラフィックス・プロ
+グラムがサポートするようになりました。
+
+\subsection{tpic の使用法}
+
+普通の \TeX と tpic をサポートした dvi ドライバがあれば、ユーザー自身が tpic
+special コマンドを文書内に挿入して図を書くことが可能です。(実際この文書もそ
+うやって書いています。) ただし、tpic はテキスト処理と図形処理をほとんど独立
+に行いますので、テキストと図形を混在させるにはある程度試行錯誤が必要です。実
+用性から見ると、tpic specials はあくまでプリミティブであり、通常は他のグラフ
+ィックス・プログラムが出力する中間言語と考えたほうがよいでしょう。既に多くの
+プログラムが tpic specials 出力をサポートしていますので、 用途に応じて使い分
+けもできます。
+
+\begin{description}
+\item[tpic]
+上述の \TeX 用図形プリプロセッサです。フローチャートやブロックダイアグラムな
+ど、簡単な図形を書くのに大変便利に使えます。 ただし、AT\&T Bell Labs. が著作
+権を有する pic のコードを一部含んでおり、フリーウェアではありません。
+\item[gpic]
+GNU プロジェクトがつくった pic 上位互換のプリプロセッサであり、tpic 出力が可
+能です。tpic の代わりに使えるフリーウェアです。 groff パッケージに含まれてい
+ます。
+\item[eepic]
+Conrad Kwok の作った \LaTeX 用のマクロです。\LaTeX の picture 環境とその拡張
+である epic マクロを更に拡張して、tpic specials を出力できるようにしたもので
+す。 tpic をサポートする dvi ドライバがない場合にも、epic でエミュレートして
+類似の図が書けるように工夫されています。 documentstyle のオプションに
+\verb|[epic,eepic]| を指定して使います。
+\item[gnuplot]
+Thomas Williams, Colin Kelley, David Kotz らの手になる、関数をプロットしてグ
+ラフを書くプログラムです。\LaTeX ~picture 環境出力と、eepic 出力の両方をサポ
+ートしています。 eepic マクロを用いる場合、``set terminal eepic'' と指定してグ
+ラフを出力し、 それを文書にとり込む際 documentstyle のオプションに
+\verb|[epic,eepic]| を指定して使います。
+\item[transfig]
+Micah Beck による \LaTeX 用図形ファイル相互変換プログラムです。 \LaTeX
+~picture, epic, eepic, PiCTeX など多くのグラフィックス言語をサポートしていま
+す。 特に便利と思われるのは、 UNIX のウィンドウシステム用の図形エディタ Fig,
+xfig が出力する Fig コードをこれらのコマンドに翻訳してくれることです。 将来
+Fig か xfig が DOS に移植されれば、\TeX グラフィックスの tpic 三題噺(ダイア
+グラム・関数プロット・お絵かき)が出そろうことになります。\verb+W(^^)W+
+
+\end{description}
+
+\subsection{tpic 2.2 コマンドセット (output language) 仕様}
+
+この仕様はグラフィックス・プログラムや dvi ドライバを書こうとしている人のた
+めのガイドです。 tpic プリプロセッサの tpic 出力は、最初に newbox コマンドを
+実行して graph を定義します。個々の図は graph に割りあてられた vtop におさま
+っています。この箱の幅と高さは図のサイズのみで決まり、text は考慮されません。
+この箱の中に、一連の special コマンドと hbox コマンドが並びます。
+
+個々のグラフィック要素の位置は、 \TeX が保持している「ページ上の現在位置」に
+対する相対座標で指定します。個々の special は graph box の左上端に置かれ、こ
+の点が graph の原点になります。X 軸は右が正、Y 軸は{\em 下が正方向}です。(Y
+軸は picture 環境と逆向きなので注意が必要です。) 座標は整数で表し、単位はミ
+リインチです。通常 graph は内部のグラフィック要素を包含した大きさを持つので、
+x, y は正の値をとります。
+
+\begin{center}
+\unitlength 0.001in
+\begin{picture}(600,600)(0,-550)
+ \special{pn 8}%
+ \special{pa 0 0}%
+ \special{pa 500 0}%
+ \special{fp}%
+ \special{sh 1}%
+ \special{pa 500 0}%
+ \special{pa 400 25}%
+ \special{pa 400 -23}%
+ \special{pa 500 0}%
+ \special{fp}%
+ \special{pa 0 0}%
+ \special{pa 0 500}%
+ \special{fp}%
+ \special{sh 1}%
+ \special{pa 0 500}%
+ \special{pa -23 400}%
+ \special{pa 25 400}%
+ \special{pa 0 500}%
+ \special{fp}%
+ \put(0,0){\makebox(0,0)[rb]{0,0}}%
+ \put(520,0){\makebox(0,0)[l]{$+x$}}%
+ \put(0,-520){\makebox(0,0)[t]{$+y$}}%
+\end{picture}
+\end{center}
+
+角度は +X 軸から +Y 軸への向きを正として、ラジアン単位 (0 - $2\pi$) で記述し
+ます。 これは出力ページ上での「時計回り」に相当します。 完全な円と楕円は、
+$\hbox{\it start angle}=0$ と $\hbox{\it end angle} \ge 2\pi$ として指定しま
+す。
+
+dvi ドライバが理解すべき special コマンドは以下のとおりです。 引数は一つ以上
+の空白で区切られ、特に断らない限り整数です。全ての図形処理(塗りつぶし以外)
+はテキスト処理と独立に行い、重ね書きします。special の後に現れるテキストは図
+形の上に重ね書きされます。special の前後で \TeX の保持する現在位置は不変です。
+
+\begin{description}
+\item[pn $s$]
+線幅を $s$ ミリインチに設定します。
+\item[pa $x$ $y$]
+点 $(x, y)$ を path に付け加えます。path はドライバが記憶する一連の点の集合
+(経路)です。$x$ と $y$ の単位はミリインチです。
+\item[fp]
+それまでに定義された path を、現在の線幅で実際に描きます(フラッシュ)。path
+内の点の数はゼロにリセットされます。 シェーディングが設定されており、 かつ
+path が閉じていれば、path 内部を塗りつぶします。
+\item[ip]
+これは fp と同じですが、path を描きません。 シェーディングは、条件が満たされ
+れば行われます。
+\item[da $f$]
+これは fp と同じですが、path は破線で描かれます。 $f$ は実数で、ダッシュ当た
+りの長さをインチ単位で指定します。
+\item[dt $f$]
+これは fp と同じですが、path は点線で描かれます。 $f$ は実数で、点の間隔をイ
+ンチ単位で指定します。
+\item[sp $d$]
+これは fp と同じですが、path は spline 曲線で描かれます。 $d$ は実数で、曲線
+の種類を指定します:
+\begin{itemize}
+\item $d=0$ か $d$ が省略された場合、実線で描きます。
+\item $d>0$ の場合、破線で描きます。$d$ はダッシュの長さです。
+\item $d<0$ の場合、点線で描きます。$-d$ は点間隔です。
+\end{itemize}
+\item[ar $x$ $y$ $r_x$ $r_y$ $s$ $e$]
+中心 $(x,y)$ の弧を描きます。$s$ は開始角度、$e$ は終了角度で、ラジアン単位
+の実数です。 完全な円か楕円である場合は、$r_x$, $r_y$ はそれぞれ $x$, $y$ 半
+径を表します。そうでない場合は $r_x=r_y$ であり、$s$ から $e$ へ弧が描かれま
+す。条件が満たされればシェーディングも行います。
+\item[ia $x$ $y$ $r_x$ $r_y$ $s$ $e$]
+これは ar と同じですが弧は描かず、条件が満たされればシェーディングのみ行いま
+す。
+\end{description}
+
+以下のコマンドはオプションです。インプリメントしない場合は、dvi ドライバは単
+にこれらを無視しなければいけません。
+
+\begin{description}
+\item[sh $s$]
+シェーディングを指定します。このコマンドの次に定義される閉じた図形(3つ以上
+の pa とそれに続く fp か ip 、 もしくは ar か ia )の内部を塗りつぶします。
+$s$ は 0 以上 1 以下の実数です。ゼロは白で塗りつぶすことを意味し、図形の下に
+あったものはテキストを含め全て消去します。ゼロ以外の値は灰色を意味し、図形の
+下のものは {\em 消去せずに} 灰色を塗り加えます。1 は黒で塗りつぶすことを意味
+し、当然ながらその下にあったものは何も見えなくなります。0.5 はデフォールトの
+値で、「通常」の灰色を意味し、$s$ が指定されていなければ 0.5 の値を用います。
+シェーディングは図形の内側のみに対して行い、境界線はそれとは独立に現在の線幅
+を用いて描かれます。
+
+\end{description}
+
+以下のコマンドは以前のバージョンのものですが、互換性のためにインプリメントす
+べきです。
+
+\begin{description}
+\item[wh]
+これは sh 0 と同じです。
+\item[bk]
+これは sh 1 と同じです。
+\item[tx]
+このコマンドは、以前には塗りつぶしのパターンを指定するのに用いられていました
+が、Imagen デバイスドライバが対応しているのみであり、 非常にデバイス依存性が
+高いので、インプリメントはお勧めできません。sh コマンドを推奨します。
+
+\end{description}
+
+\section{著作権・バグなど}
+
+\begin{itemize}
+\item この文書の著作権等は dviout/prt パッケージのそれに従います。
+\item tpic 版のコンパイルは ``Make -D(機種名) -DTPIC dviout.exe dviprt.exe''
+です。``-DVFTPIC''では書体倶楽部フォントの展開にも tpic 用関数を利用します。
+\item dviout/prt はページ毎に処理を行うので、 ページを飛ばして表示・印刷する
+と以前のページの線幅設定が生かされずデフォルトの線幅になってしまうことがあり
+ます。デフォルト以外の線幅を複数ページにわたって用いるときには、各ページの最
+初か一連の specials の直前に pn コマンドを書くのが無難です。
+\item tpic specials の仕様はまだ完璧ではなく、 流動的な部分があります。 tpic
+をサポートするプログラムを書く場合には、将来の仕様変更に柔軟に対応できるよう
+なコーディングをお勧めします。
+\end{itemize}
+
+\section{謝辞}
+
+Tim Morgan 氏は tpic 2.2 latest version の仕様とマニュアルをお送りくださり、
+仕様の和訳を本パッケージに添付することを快諾してくださいました。また、宮井英
+行氏、かずや氏には tpic や dviout/prt について貴重なご助言をいただきました。
+spline 関数のインプリメントにあたり、奥村晴彦氏の「 C 言語による最新アルゴリ
+ズム事典」が参考になりました。感謝いたします。
+
+\end{document}
diff --git a/Master/dviout/GRAPHIC/bmc/bmc.txt b/Master/dviout/GRAPHIC/bmc/bmc.txt
new file mode 100644
index 00000000000..d0319f404d3
--- /dev/null
+++ b/Master/dviout/GRAPHIC/bmc/bmc.txt
@@ -0,0 +1,141 @@
+ BMC format の仕様
+
+BMC は、BMP formatの画像データを、簡単な変換により圧縮したものである。
+
+dviout for Windows でのPostScript画像の中間ファイルとして用いるため、
+圧縮や復元の高速性と容易さに主眼が置かれている。
+
+もとの画像データは、<width> byte のデータが <height>組、順に並んでいる
+とする(たとえば、フルカラー(24bit)BMPファイルの場合、<width> は、画像
+のPIXEL単位での幅の3倍を4の倍数になるように切り上げたものである)。これ
+を以下の 1. 2. 3. と変換したものが、BMCにおける画像データである。
+
+1. 元の画像データ
+
+unsigned char image[<height>*<width>];
+
+を XOR の演算により
+
+unsigned char trans[<height>*<width>];
+
+に変換する。ただし
+
+trans[i] = image[i] if i == 0
+ = image[i] ^ image[i-1] if 0 < i < <width>
+ = image[i] ^ image[i - <width>] if <width> <= i < <height>*<width>
+
+trans[] には、0 というデータが多数含まれていると期待される。
+
+2. trans[] の各 byte の上位 4 bit (0 から 15)の頻度を調べ、1 から 15
+のうちで、もっとも現れる頻度の少ないもの K を決定する(簡単化のため、K=5 な
+どとあらかじめ決めてしまってもよい)。
+
+3. trans[] を、同じデータが何 byte 続くか、という情報でデータ化する。
+
+<M N> が、L byte 続くとする。ただし、M, N は 0 から 15 までの数で、
+1 byte(unsigned char) が表す数の上位4bitが M, 下位4bitが N に対応する
+ものとする。
+
+なお、L >= 0x100000000 のときは、0xffffffff(約 42.9G)以下のブロック
+に分割することにより、L < 0x100000000 とする。
+
+3.1. L == 1 のとき
+ M != K ならば <M N>
+ M == K ならば <K 0><0 N>
+
+3.2. L == 2 のとき
+ <M N> == 0 ならば <K 1>
+ M != K かつ <M N> != 0 ならば <M N><M N>
+ M == K ならば <K 0><0 N><K 0><0 N>
+
+3.3. L > 2 のとき
+ <M N> == 0 ならば <K L-1> if L-1 < 0x10
+ <K 0><L-1> if 0x10 <= L-1 <= 0xe0
+ <K 0><0xff>S(L-1,2) if 0xe0 < L-1 < 0x10000
+ <K 0><0xfe>S(L-1,3) if 0x10000 <= L-1 < 0x1000000
+ <K 0><0xfd>S(L-1,4) if 0x1000000 <= L-1
+
+ <M N> != 0 ならば
+ M != K かどうかに応じて、<M N> または <K 0><0 N> の後(cf. 3.1)
+ <K 0><0xde + L> if L < 0x1b
+ <K 0><0xfc>S(L-1,1) if 0x19 <= L-2 < 0x100
+ <K 0><0xfb>S(L-1,2) if 0x100 <= L-2 < 0x10000
+ <K 0><0xfa>S(L-1,3) if 0x10000 <= L-2 < 0x1000000
+ <K 0><0xf9>S(L-1,4) if 0x1000000 <= L-2
+
+ただし、S(X,K) は、X を K byte の整数で表示したもので、上位バイト ->
+下位バイトの順。
+
+BMC データの全体は、先頭から
+
+id[2]; // 'B', 'C' ID for BMC
+flag[1]; // flag & 1: Not compressed?
+key[1]; // <K 0>
+bmc_head_size[4]; // address of bmp_head[0] "BM..."
+bmp_head_size[4]; // size of BMP header
+byte_width[4]; // <width>
+
+height[4]; // <height>
+bit_width[4]; // width by bit
+bmc_data_size[4]; // size after "BM..."
+f_mode[1]; // used by dviout
+bmp_rev[1]; // used by dviout
+bmp_on[1]; // used by dviout
+bmp_off[1]; // used by dviout
+
+-- The following top is 0x20 byte from the head --
+name[]; // original filename (zero terminated)
+bmp_head[]; // original BITMAPFILEHEADEF + BITMAPINFOHEADER
+bmc_data[]; // compressed or original image data
+
+となる。
+
+f_mode[1] & 0xf = 2: 1 PIXEL = 1 bit
+ 3: 4 bit
+ 4: 8 bit
+ 5: 24 bit
+ 6: 16 bit
+ 7: 32 bit
+
+f_mode[1] & 0x10 : Use only Black & White (not gray, no color)
+f_mode[1] & 0x20 : Only Black & White but the number of pallets > 2
+f_mode[1] & 0x40 : the number of pallets <= 0x10 ? in 256 color mode
+
+bmp_rev[1] 0: 0 is white for 2 color mode
+ 1: 1 is white for 2 color mode
+bmp_on[1] : pallet index of white for B & W
+bmp_off[1] : pallet index of black for B & W
+
+--------------------------- 付属資料 ----------------------------------
+epsfdoc(1) : the first page of epsfdoc.dvi A4 size 600dpi B/W
+epsfdoc(16) : the first page A4 epsfdoc.dvi size 600dpi/6 gray scale(16 colors)
+
+\includegraphics*[height=10cm]{golfer} in 300dpi
+\includegraphics*[height=6cm]{tiger} in 300dpi
+
+golfer(256) : 16 colors
+tiger(256) : 16 colors
+golfer(full) : full colors(24 bit)
+tiger(full) : full colors(24 bit)
+
+
+ Size of image data files
+
+ BMP BMP+LZH BMP+GZIP BMC BMC+LZH PNG PNG+LZH GIF GIF+LZH
+epsfdoc(1) 4378046 189330 190107 204831 148307 204643 197189 291454 291454
+epsfdoc(16) 486838 46648 46976 57062 48486 48208 47451 52497 52407
+golfer(256) 1144286 15458 15294 23932 12369 21401 21294 22643 22643
+tiger(256) 485350 25447 25249 46858 25807 29415 29160 31884 31884
+golfer(full) 3429678 23054 22028 40337 16038 28167 27432
+tiger(full) 1447206 30958 31766 95170 31639 44921 44628
+
+
+ Ratio of compression (%)
+
+ BMP BMP+LZH BMP+GZIP BMC BMC+LZH PNG PNG+LZH GIF GIF+LZH
+epsfdoc(1) 100.00 4.378 4.325 4.679 3.388 4.674 4.504 6.657 6.657
+epsfdoc(16) 100.00 9.582 9.649 11.720 9.960 9.902 9.747 10.783 10.765
+golfer(256) 100.00 1.351 1.337 2.091 1.081 1.870 1.861 1.979 1.979
+tiger(256) 100.00 5.243 5.202 9.654 5.317 6.061 6.008 6.569 6.569
+golfer(full) 100.00 0.672 0.642 1.176 0.468 0.858 0.771
+tiger(full) 100.00 2.139 2.196 6.576 2.186 3.104 3.084
diff --git a/Master/dviout/GRAPHIC/bmc/createbb.pdf b/Master/dviout/GRAPHIC/bmc/createbb.pdf
new file mode 100644
index 00000000000..d0e4dcdad97
--- /dev/null
+++ b/Master/dviout/GRAPHIC/bmc/createbb.pdf
Binary files differ
diff --git a/Master/dviout/GRAPHIC/bmc/exbmc.xpi b/Master/dviout/GRAPHIC/bmc/exbmc.xpi
new file mode 100644
index 00000000000..b179324188f
--- /dev/null
+++ b/Master/dviout/GRAPHIC/bmc/exbmc.xpi
Binary files differ
diff --git a/Master/dviout/GRAPHIC/bmc/ifbmc.spi b/Master/dviout/GRAPHIC/bmc/ifbmc.spi
new file mode 100644
index 00000000000..9a6a21c3ae4
--- /dev/null
+++ b/Master/dviout/GRAPHIC/bmc/ifbmc.spi
Binary files differ
diff --git a/Master/dviout/GRAPHIC/bmc/ifbmc.txt b/Master/dviout/GRAPHIC/bmc/ifbmc.txt
new file mode 100644
index 00000000000..91f2cd2cc2c
--- /dev/null
+++ b/Master/dviout/GRAPHIC/bmc/ifbmc.txt
@@ -0,0 +1,26 @@
+ ifbmc.spi
+
+ BMC 対応 Susie プラグイン ver.0.1
+ March 18, 1998 (c) Toshio OSHIMA
+
+竹村嘉人(たけちん)氏製作のSusie32用のプラグインです。
+
+dviout for Windows Ver.3.06 は、PostScript画像表示で、Disk Spaceの節約と
+dviout での表示の高速化のため、独自のBMC画像フォーマットをサポートしました。
+
+ifbmc.spi は、この BMC フォーマットに対応しています。
+
+BMC フォーマットについては、付属の bmc.txt をご覧ください。
+
+BMP と BMC の相互変換の Win32 用のコマンド版プログラム bmc.exe も付属して
+います。
+
+
+
+ exbmc.xpi
+
+ BMC 対応 ABC 出力プラグイン
+ July 8, 2001 (c) Toshio OSHIMA
+
+ABC Converter(43T氏制作)などに使用可能な BMC フォーマット出力プラグイン
+です。bmc.exe も対応しています。
diff --git a/Master/dviout/SAMPLE/sample.tex b/Master/dviout/SAMPLE/sample.tex
new file mode 100644
index 00000000000..74cce282196
--- /dev/null
+++ b/Master/dviout/SAMPLE/sample.tex
@@ -0,0 +1,1734 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% %
+% This is a sample for dviout for Windows %
+% %
+% Use graphics package of LaTeX2e with dviout.def and myhyper.sty %
+% %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\documentclass{article}
+\usepackage[dviout]{graphicx, color}
+\IfFileExists{hyperref.sty}{\usepackage{hyperref}}{}
+\usepackage{myhyper}
+\title{A sample DVI file%
+{\raise-4.5pt\hbox{\includegraphics*[height=9mm,width=9mm]{dvi2.bmp}}}
+for {\tt dviout}
+{\raise-4pt\hbox{\includegraphics*[height=8mm,width=8mm]{dvi.bmp}}}%
+{\raise-4.5pt\hbox{\includegraphics*[height=9mm,width=9mm]{prt.bmp}}}}
+\author{Toshio OSHIMA}
+\date{\name{date}{December 18, 2005}}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% return to the normal mode;
+% set paper size to be A4P and ReNew if necessary
+\special{dviout !n; -y=A4P !i}
+\def\button#1%
+{{\raise-3pt\hbox{\includegraphics*[height=4.6mm,width=4.6mm]{#1}}}}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{document}
+\maketitle
+\tableofcontents
+\newpage
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Preview by dviout for Windows
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Preview by {\tt dviout for windows}}%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% A TeX system
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{A {\TeX} system}%
+
+Personal computers with a current OS%
+\footnote{Operating system, Windows95/98/NT/2000 are for {\tt dviout for Windows}}
+are now so powerful that {\TeX} works in the OS similarly as in
+other OS, such as UNIX, without any special invention.
+
+It is recommended to use a {\TeX} system supporting {\tt mktexpk}%
+\footnote{A utility to make fonts by {\tt METAFONT}.}
+with a standard directory configuration.
+Then the environment variable {\tt TEXMF} indicates the location of
+the {\TeX} system.
+Such a system for Windows95/98/NT can be obtained from
+\href{http://jupiter.fsci.fuk.kindai.ac.jp/~kakuto/win32-ptex/index-e.html}
+{here}\footnote{Click the colored part (which is blue with an underline in
+default) by the left button on the mouse to access:
+
+\tt http://jupiter.fsci.fuk.kindai.ac.jp/%
+\~{}kakuto/win32-ptex/index-e.html}, which supports p\TeX%
+\footnote{\href{http://www.ascii.co.jp/pb/ptex}{p\TeX},
+a Japanized {\TeX} developed by ASCII corp.
+Another popular Japanized {\TeX} is called NTTJ\TeX, which is
+also supported by {\tt dviout}.}
+and source specials together with a usual {\TeX}.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Preview window
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Preview window}
+\includegraphics[height=2.9cm,width=12.2cm]{select.bmp}
+\begin{itemize}
+\item
+Select {\tt [\b{D}isplay $\to$ \b{S}ize $\to$
+\href{dviout:DM}{\b{M}agnify}/\href{dviout:DR}{\b{R}educe}]}
+on the menu bar located at the top part in the preview window or
+the tool button \button{lplus.bmp} or \button{lminus.bmp}
+to change the scale for the display of a page.
+
+\item
+The contrast of the preview window can be
+adjusted by selecting {\tt [\b{D}isplay $\to$\b{C}ontrast $\to$
+\href{dviout:DB}{\b{B}lacker}/\href{dviout:DW}{\b{W}hiter}]}.
+More precise setting can be done by
+{\tt [\b{O}ption $\to$ \b{S}etup Parameters$\ldots$} or \button{option.bmp}
+{\tt $\to$ Display]} and moreover the current setting is kept by pushing the
+button {\tt [\b{S}ave]}.
+
+\item
+Check {\tt[\b{V}iew $\to$
+\href{dviout:VT}{\b{T}ool Bar},
+\href{dviout:VS}{\b{S}tatus Bar},
+\href{dviout:VP}{\b{P}age Slider},
+\href{dviout:VR}{Sc\b{r}oll Bar}]}
+to hide or recover the bars on the preview window.
+
+\item
+Click {\tt[\b{V}iew $\to$ Gli\b{d} $\to$ \b{O}n]} to display a grid.
+%The size of the grid is changed by {\tt[\b{V}iew $\to$ Gli\b{d} $\to$ \b{S}cale]}.
+
+\item
+Select {\tt [\b{V}iew $\to$
+\href{dviout:VC}{\b{C}hange Tool Buttons}, Show Move \b{B}utton]} to
+change some buttons on the tool bar.
+
+\item One can define any functions on some of tool buttons such as
+\button{niko.bmp}
+or keys by {\tt [\b{O}ption $\to$ \b{S}etup Parameters$\ldots$}
+or \button{option.bmp} {\tt $\to$ Key]}.
+By {\tt[\b{H}elp $\to$ \b{K}ey table]} the current definition is shown
+in Information Window. The height of the Window can be changed by
+{\tt[\b{V}iew $\to$ \b{I}nformation Window]}.
+\end{itemize}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Using keys and a mouse
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Using keys and a mouse}
+\begin{itemize}
+\item
+The arrow keys and {\tt[Home]}, {\tt [End]} and scroll bars are used to
+scroll the preview window within a page.
+
+\item To scroll pages, one can use the keys {\tt [PageUp]},
+{\tt [PageDown]}, {\tt [N]}, {\tt [P]}, {\tt [Space]}, {\tt [BackSpace]}
+etc.~or the menu in {\tt [\b{J}ump]} on the menu bar or the page slider on
+the right side of the window or the buttons \button{bpage.bmp} and
+\button{fpage.bmp}. The buttons to move pages can be hidden by
+{\tt [\b{V}iew $\to$ Show Move \b{B}utton]}.
+
+\item In the page window on the tool bar or after pushing the key {\tt[/]} in
+the default key setting, one can jump to any page by the input of the page
+number. If {\tt[+]} or {\tt[-]} is given preceding the number, the page
+is counted relatively from the current page.
+If {\tt[.]} is given preceding the number, the page is counted from the last.
+If {\tt[Shift]} or {\tt[Ctrl]} is pressed when {\tt[Enter]} is hit to execute,
+the nombre page is specified.
+For example, input {\tt[/][.][Enter]} means to jump to the last page.
+
+\item Click the right button on the mouse. Then a loupe will appear.
+Move the mouse while pressing the right button to move the loupe.
+
+The loupe can be modified by {\tt [\b{D}isplay $\to$ \b{L}oupe]} on the
+menu bar at the top of the preview window of {\tt dviout}.
+More precise setting is possible by
+{\tt [\b{O}ption $\to$ \b{S}etup Parameters$\ldots$} or \button{option.bmp}
+{\tt $\to$ Common]}.
+
+If {\tt [Ctrl]} key is also pressed, a different kind of loupe will appear.
+
+\item When the mouse cursor is of the shape of a hand, move the mouse while
+pressing the left button to scroll in a page.
+If the shape of mouse cursor is an arrow, select {\tt [\b{D}isplay $\to$
+\href{dviout:DH}{Mouse s\b{h}ape}]} or \button{han.bmp} to change it.
+
+\item Click the left button on the mouse while {\tt [Shift]} key is pressed
+to acquire the character string under the mouse pointer for copying to
+clipboard.
+Then more strings are picked up by pressing {\tt [\b{A}dd]} or {\tt [\b{F}ull]}
+button.
+
+\item
+Click an arrow button while both {\tt [Shift]} key and {\tt[Ctrl]} key are
+pressed, then the displayed area in a sheet is slightly adjusted.
+
+\item Click the left button on the mouse while both {\tt [Shift]} key and {\tt[Ctrl]} key are pressed, then the information of the pointed position and the
+character is displayed.
+
+\item In displaying 4 or 16 pages in a reduced size ({\tt [\b{D}isplay $\to$
+\href{dviout:DS}{cro\b{s}s pages}/\href{dviout:D6}{1\b{6} pages}]}),
+the pointed page will be displayed in a normal size by clicking the right
+button on the mouse.
+
+\item Turn the central wheel of IntelliMouse to scroll up/down.
+Press the wheel or {\tt [Shift]} key at the same time to move to another
+page.
+Press the {\tt[Ctrl]} key with the turn to magnify/reduce a page.
+Click the side buttons of IntelliMouse Explorer for Backward/Forward History.
+\end{itemize}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Search a string
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Search a string}
+One can search a string in the DVI file by {\tt [\b{S}earch]} on menu bar.
+For example,
+\begin{enumerate}
+\item Move the mouse cursor on the string of the next line:
+{\Large
+\begin{verbatim}
+ tpic
+\end{verbatim}}
+
+\item Click the left button of the mouse while pressing the {\tt[Shift]} key.
+If the string ``tpic" is picked up, press {\tt [Co\b{p}y]} in the window
+appeared.
+\item Select {\tt [\b{S}earch $\to$ \b{F}ind]} on the menu bar or the tool
+button \button{search.bmp} and paste the string to set it as the target
+string by clicking the right button on the mouse.
+\item Choose downward search, press a button to search it and close the
+dialog window.
+
+\item Select {\tt [\b{S}earch $\to$ \b{U}pward/\b{D}ownward]} or
+{\tt [F3]}/{\tt [Shift]+[F3]} or the tool buttons
+\button{seru.bmp}, \button{serd.bmp} for the further search.
+\end{enumerate}
+
+One may directly paste, write or choose the target string on the search
+window on the tool bar.
+
+Indicating a string following after one space character, one can
+search the location in the current DVI file by {Hyper\TeX} or source
+specials.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Using Help
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Using Help}
+One can find more information from {\tt [\b{H}elp $\to$
+\href{dviout:HH}{\b{H}elp Topics}]} and
+{\tt [\b{H}elp $\to$ \b{T}ips on dviout]}
+on the menu bar.
+If you have a question in using {\tt dviout}, you may find an answer from
+{\tt[Q\&A]} in this Help Topics.
+
+If Japanese language is supported by Windows, the selection
+{\tt[\b{H}elp $\to$ Use \b{E}nglish Help]} is the toggle switch between
+Help in English and that in Japanese.
+
+Through {\tt [\b{O}ption $\to$ \b{S}etup Parameters$\ldots$]} or the tool
+button \button{option.bmp}, a precise setting for {\tt dviout} can be done.
+If you change the setting, you should push {\tt[OK]} to validate it in
+the current session. If you want to validate it for the following sessions,
+push {\tt[\b{S}ave]} before {\tt[OK]}.
+
+It may be difficult for you to do such setting but use {\tt[Help]} on each
+property sheet or click the button {\tt[?]} and then push the left button
+on the mouse pointing the spot where you want to have the explanation.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Specials
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Specials}
+%Examples of some specials supported by {\tt dviout for Windows} will be shown.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% HyperTeX specials
+% from hyperdvi.tex
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Hyper\TeX\ specials}
+\name{hyperTeX}
+Please click by the left button on the mouse at the colored part of the
+following lines. Also note the change of the cursor and the Status Bar.
+
+What is the \href{#version}{version number} of {\tt dviout for MS-DOS}
+from which {\tt dviout for Windows} was created and
+what is the \href{#date}{date} when this document was written?
+$$
+2.33\quad\quad 2.43.1 \quad\quad 2.43.2\name{version}{\quad}\quad
+2.43.3\quad\quad 2.43.4
+$$
+
+
+Using {\tt myhyper.sty} in the package of {\tt dviout}, the result of
+following {\TeX} source
+\begin{verbatim}
+If you click \href{#foo}{here}, you will jump to \name{foo}{this}
+place.
+\end{verbatim}
+is ``If you click \href{#foo}{here}, you will jump to \name{foo}{this}
+place", which corresponds to
+\begin{verbatim}
+If you click <a href="#foo">here</a>, you will jump to
+<a name="foo">this</a> place.
+\end{verbatim}
+in HTML(Hyper Text Markup Language).
+
+In {\tt myhyper.sty}, these macros are defined as follows:
+\begin{verbatim}
+\def\href{\leavevmode\begingroup \@sanitize \@href}
+\def\@href#1{\special{html:<a href="#1">}\endgroup \@@href}
+\def\@@href#1{#1\special{html:</a>}}
+\def\name{\leavevmode\begingroup \@sanitize \@name}
+\def\@name#1{\special{html:<a name="#1">}\endgroup \@@name}
+\def\@@name#1{#1\special{html:</a>}}
+\end{verbatim}
+
+Then the result of
+\begin{verbatim}
+The current information on {\tt dviout} can be obtained from
+\href{http://akagi.ms.u-tokyo.ac.jp/ftp.html#TeX}{here}.
+\end{verbatim}
+is ``The current information on {\tt dviout} can be obtained from
+\href{http://akagi.ms.u-tokyo.ac.jp/ftp.html#TeX}{here}%
+\footnote{\tt http://akagi.ms.u-tokyo.ac.jp/ftp.html\#TeX}". Similarly
+\begin{verbatim}
+{\tt dviout} can be obtained from
+\href{ftp://akagi.ms.u-tokyo.ac.jp/pub/TeX/dviout/}{here}.
+\end{verbatim}
+becomes
+``{\tt dviout} can be obtained from
+\href{ftp://akagi.ms.u-tokyo.ac.jp/pub/TeX/dviout/}{here}".
+One can even write as
+\begin{verbatim}
+\href{file:notepad.exe}{Execute Notepad} or
+\href{file:dviout.doc}{dviout.doc}
+\end{verbatim}
+and then ``\href{file:notepad.exe}{Execute Notepad} or
+\href{file:dviout.doc}{dviout.doc}".
+Here dviout.doc is embedded in this DVI file.
+
+\goto{spdviout}{dviout specials} can be written in place of URL
+of {Hyper\TeX} by \begin{verbatim}
+\href{dviout:.....}{...}
+\end{verbatim}
+so that
+the click of the corresponding spot implies desired operations of dviout.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% tpic specials
+% from tpicdoc.tex by Oh-Yeah!
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{tpic specials}
+\begin{center}
+\unitlength 0.001in
+\begin{picture}(2000,1700)(0,-1600)
+ \special{pn 8}%
+ \special{sh}%
+ \special{ia 350 200 400 250 0 6.28319}%
+ \special{sh 0}%
+ \special{ar 400 250 400 250 0 6.28319}%
+ \put(400,-250){\makebox(0,0){document}}%
+ \special{sh 0}%
+ \special{ia 750 475 200 200 0 6.28319}%
+ \special{sh 0.1}%
+ \special{ar 750 475 200 200 0 6.28319}%
+ \put(750,-450){\makebox(0,0){tpic}}%
+ \special{pa 800 250}%
+ \special{pa 1200 250}%
+ \special{fp}%
+ \special{sh 1}%
+ \special{pa 1200 250}%
+ \special{pa 1100 275}%
+ \special{pa 1100 225}%
+ \special{pa 1200 250}%
+ \special{fp}%
+ \special{sh}%
+ \special{pa 1150 450}%
+ \special{pa 1950 450}%
+ \special{pa 1950 -50}%
+ \special{pa 1750 -50}%
+ \special{pa 1550 100}%
+ \special{pa 1350 -50}%
+ \special{pa 1150 -50}%
+ \special{pa 1150 450}%
+ \special{ip}%
+ \special{sh 0}%
+ \special{pa 1200 500}%
+ \special{pa 2000 500}%
+ \special{pa 2000 0}%
+ \special{pa 1800 0}%
+ \special{pa 1600 150}%
+ \special{pa 1400 0}%
+ \special{pa 1200 0}%
+ \special{pa 1200 500}%
+ \special{fp}%
+ \put(1600,-250){\makebox(0,0){\color{red}\TeX}}%
+ \special{pa 1600 500}%
+ \special{pa 1600 1050}%
+ \special{fp}%
+ \special{sh 1}%
+ \special{pa 1600 1050}%
+ \special{pa 1625 950}%
+ \special{pa 1575 950}%
+ \special{pa 1600 1050}%
+ \special{fp}%
+ \special{sh}%
+ \special{pa 1150 1450}%
+ \special{pa 1550 1400}%
+ \special{pa 1950 1450}%
+ \special{pa 1950 1200}%
+ \special{pa 1950 950}%
+ \special{pa 1550 1000}%
+ \special{pa 1150 950}%
+ \special{pa 1200 1200}%
+ \special{pa 1150 1450}%
+ \special{sp -0.05}%
+ \special{sh 0}%
+ \special{pa 1200 1500}%
+ \special{pa 1600 1450}%
+ \special{pa 2000 1500}%
+ \special{pa 1950 1250}%
+ \special{pa 2000 1000}%
+ \special{pa 1600 1050}%
+ \special{pa 1200 1000}%
+ \special{pa 1250 1250}%
+ \special{pa 1200 1500}%
+ \special{sp}%
+ \put(1600,-1250){\makebox(0,0){dvi driver}}%
+ \special{sh 0}%
+ \special{ia 1950 1475 200 200 0 6.28319}%
+ \special{sh 0.2}%
+ \special{ar 1950 1475 200 200 0 6.28319}%
+ \put(1950,-1450){\makebox(0,0){tpic}}%
+ \special{pa 1250 1250}%
+ \special{pa 800 1250}%
+ \special{fp}%
+ \special{sh 1}%
+ \special{pa 800 1250}%
+ \special{pa 900 1275}%
+ \special{pa 900 1225}%
+ \special{pa 800 1250}%
+ \special{fp}%
+ \special{sh}%
+ \special{ia 350 1200 400 250 0 6.28319}%
+ \special{sh 0}%
+ \special{ar 400 1250 400 250 0 6.28319}%
+ \put(400,-1250){\makebox(0,0){printer}}%
+\end{picture}
+\end{center}
+The figure is taken from the document on tpic specials written
+by Oh-Yeah?.
+
+Some information on tpic specials with original extensions for
+{\tt dviout} may be obtained from {\tt [Help]} on the menu bar of the
+preview window of {\tt dviout}.
+
+tpic specials can be used combining together with color specials.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% color specials
+% from epsfdoc.tex
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{color specials}
+Using graphics package of {\LaTeXe} by indicating
+\begin{verbatim}
+\usepackage{graphicx, color}
+\end{verbatim}
+at the head of the source file of \LaTeX, one can easily write
+the colored text:
+\medskip
+
+\noindent
+\rotatebox{15}{rotate 15 degree},
+\rotatebox[origin=c]{180}{rotate 180 degree},
+\scalebox{1}[.5]{Low}, \rotatebox[origin=c]{-15}{\scalebox{1}[2]{High}},
+\scalebox{1}[2]{\rotatebox[origin=c]{-15}{High}},
+\reflectbox{reflect} : reflect,
+\scalebox{.46}[1]{I}+\scalebox{.64}[1]{V}=%
+\scalebox{.46}[1]{I}\hskip-.5pt\scalebox{.64}[1]{V},
+
+{\color{red}Red}, {\color{green}Green}, {\color{blue}Blue},
+\rotatebox[origin=c]{30}{\color{magenta}Magenta},
+\textcolor[rgb]{0.8,0.4,0.2}{Brown}, \textcolor[gray]{0.5}{Gray},
+\colorbox{black}{\color{white}White},
+\rotatebox{15}{\fcolorbox{red}{yellow}{etc.}}
+\quad\href{file:..\graphic\color\color.dvi}{See 68 colors}
+\medskip
+
+The source text for the above is as follows:
+\begin{verbatim}
+\rotatebox{15}{rotate 15 degree},
+\rotatebox[origin=c]{180}{rotate 180 degree},
+\scalebox{1}[.5]{Low},
+\rotatebox[origin=c]{-15}{\scalebox{1}[2]{High}},
+\scalebox{1}[2]{\rotatebox[origin=c]{-15}{High}},
+\reflectbox{reflect} : reflect,
+\scalebox{.46}[1]{I}+\scalebox{.64}[1]{V}=%
+\scalebox{.46}[1]{I}\hskip-.5pt\scalebox{.64}[1]{V},
+\end{verbatim}
+\begin{verbatim}
+{\color{red}Red}, {\color{green}Green}, {\color{blue}Blue},
+\rotatebox[origin=c]{30}{\color{magenta}Magenta},
+\textcolor[rgb]{0.8,0.4,0.2}{Blown}, \textcolor[gray]{0.5}{Gray},
+\colorbox{black}{\color{white}White},
+\rotatebox{15}{\fcolorbox{red}{yellow}{etc.}}
+\end{verbatim}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% graphic specials
+% from pssample.tex etc.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Graphic specials}
+{\tt dviout} can read BMP/BMC/PBM/WMF/EMF files.
+
+The following figure is taken from tool buttons of {\tt dviout for Windows}.
+To include the figure, we may write in the text as follows.
+\begin{verbatim}
+\special{bmpfile=toolbar vsize=4.95mm}
+\end{verbatim}
+\special{bmpfile=toolbar vsize=4.95mm}
+\vskip .7cm
+
+A sample figure using a WMF file
+
+\hskip .5cm
+\special{bmpfile=sample.wmf vsize=3cm hsize=10cm}
+\vskip 3.5cm
+is included by
+\begin{verbatim}
+\special{bmpfile=sample.wmf vsize=3cm hsize=10cm}
+\end{verbatim}
+
+Under the graphics package of {\LaTeXe} with {\tt dviout.def}%
+\footnote{contained in the package of {\tt dviout} and having a strong
+compatibility with {\tt dvips.def}.
+To use it, put {\tt dviout.def}, {\tt graphics.cfg} and {\tt color.cfg} in
+{\tt texmf\string\tex\string\latex\string\config}
+if it exists and otherwise in the directory where
+the graphics package of {\LaTeXe} exists.} ,
+these can be written as
+\begin{verbatim}
+\includegraphics*[height=4.95mm]{toolbar.bmp}
+\includegraphics*[height=3cm,width=10cm]{sample.wmf}
+\end{verbatim}
+
+\begin{itemize}
+\item
+If {\tt Ghostscript} is installed and the parameter {\tt[gsx:]}
+in {\tt [\b{O}ption $\to$ \b{S}etup Parameters$\ldots$} or \button{option.bmp}
+{\tt $\to$ Graphic]}
+is correctly set, click
+\href{file:..\graphic\ps\pssample.dvi}{here}\name{graphic}{}
+to preview a DVI file including graphics in EPSF(Encapsilated PostScript).
+
+\item
+In the case when {\tt Ghostscript} is used for EPSF, one can indicate
+the format of an intermediate graphic file which determines the number of
+colors to be used. To do so, select
+{\tt [\b{O}ption $\to$ \b{S}etup Parameters$\ldots$} or \button{option.bmp}
+{\tt $\to$ Graphic $\to$ GIF:]} and choose, for example,
+{\tt[BMP(256 colors)]}.
+
+\item
+{\tt dviout for Windows} can understand the DVI file which is specially made
+for {\tt dvips} using {\tt dvips.def} under graphics package of {\LaTeXe} or
+using {\tt \string\psflag} or {\tt \string\epsflag}, except for the rotation
+of a colored figure by a non-integer multiple of 90 degree.
+
+\item
+{\tt PSfrag} is supported if the files {\tt ps2frag.ps} in the PSfrag
+package (Version~2) and {\tt psfrag.pro} exist in the search path of
+{\tt Ghostscript} defined by the environment variable \verb|GS_LIB|.
+
+\item
+graphic files may be \goto{gzip}{gzipped} if {\tt gzip} works in the system.
+Then the following is possible under {\tt graphicx.sty}.
+\begin{verbatim}
+\includegrphuics*[height=5cm,width=4cm]{images/fig.ps.gz}
+\end{verbatim}
+Here the character {\tt /} represents the separator of directories and the
+location of the graphic file is relative to the DVI file.
+
+\item
+If \href{http://www.digitalpad.co.jp/~takechin/}{{\tt Susie plug-in's}} are
+installed, {\tt dviout} can read figures in various formats such as
+{\tt jpeg/tiff/png} etc.
+In this case, the directory where {\tt Susie plug-in's} exist should be set
+in {\tt[\b{O}ption $\to$ \b{S}etup parameters$\ldots$} or
+\button{option.bmp} {\tt $\to$Graphic $\to$ spi:]} in the short format.
+Then, for example, the following is valid.
+\begin{verbatim}
+\special{bmpfile=foo.jpg vsize=4cm}
+\end{verbatim}
+
+\item
+{\tt dviout.def} should be used if figures not in the format of EPSF are
+included under the graphics package of {\LaTeXe}.
+In this case, you can use {\tt bmc} in the package of {\tt dviout} to get
+the {\tt BoundingBox}:
+\begin{verbatim}
+bmc -b foo.jpg
+\end{verbatim}
+Windows GUI interface for {\tt bmc} is available from
+\href{ftp://akagi.ms.u-tokyo.ac.jp/pub/TeX/dviout/utility/}{here}.
+
+\item
+BMC is an original format used by {\tt dviout}, which is made by a
+simple compression from the BMP format.
+
+If a file {\tt foo.bmp} of BMP format is not found,
+{\tt dviout} automatically searches {\tt foo.bmc} of BMC format.
+
+After creating an intermediate graphic file of BMP format
+by {\tt Ghostscript}, {\tt dviout} changes it in BMC format to
+keep it.
+
+The program {\tt bmc} can transform one format to the other.
+
+\item
+The graphic files which are used in a DVI file can be \goto{embed}{embedded}
+in the DVI file by using {\tt dviadd}. For example, the command
+\begin{verbatim}
+dviadd foo1.bmc foo2.ps foo3.jpg foo
+\end{verbatim}
+implies to embed {\tt foo1.bmc}, {\tt foo2.ps} and {\tt foo3.jpg}
+into {\tt foo.dvi}. Then {\tt dviout} can read them. Note that other
+DVI wares cannot read the embedded files but just ignore them.
+
+\item
+If a DVI file is packed (and gzipped) in a UNIX tar format with
+graphic files, then {\tt dviout} can directly read the packed file and
+recognize all files.
+
+\item
+{\tt dviout} supports the following graphic special used by {\tt em\TeX}
+and {\tt Myk\TeX}:
+\begin{verbatim}
+\special{em: <file>,<width>,<height>}
+\end{verbatim}
+\end{itemize}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% dviout specials
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{dviout specials}\name{spdviout}{}
+dviout specials are invented to control {\tt dviout}, such as to change
+parameters of {\tt dviout} or to simulate key operations.
+In general, they have the format
+\begin{verbatim}
+\special{dviout <macro>}
+\end{verbatim}
+
+The dviout specials are only valid in the usual previewing and not valid in
+printing nor in displaying 4 pages at a time etc.
+The current {\tt dviout} has the following dviout specials.
+\begin{itemize}
+\item
+{\tt <macro>} is the parameter setting or the key input or their combination,
+which is the same format as in the key macro of {\tt dviout}.
+If the key input changes the display, it should sometimes be written in
+small letters and then it is reserved to be executed after the interpretation
+of the page and the other dviout specials.
+
+For example
+\begin{verbatim}
+\special{dviout -y=A5L df}
+\end{verbatim}
+implies to change the size of the paper into A5 style in the landscape mode
+and display it to fit {\tt[\b{D}isplay $\to$ Si\b{z}e $\to$ \b{F}it]}
+the preview window.
+
+One can get the list of the functions of the key inputs and parameters by
+{\tt[\b{H}elp $\to$
+\href{dviout:HK}{\b{K}ey table}, \href{dviout:HP}{\b{P}rameters]}}.
+The two letters corresponding to the key input are indicated by surrounding by
+{\tt[} and {\tt]} in the list.
+
+\item If \verb|\special{dviout `wait}| and then another dviout special
+follow after \verb|\special{dviout <macro>}|, they can be
+combined one dviout special separated by the character {\tt ;}.
+For example,
+\begin{verbatim}
+\special{dviout -y=A4P !AN2N5!p;!bdf}
+\end{verbatim}
+or
+\begin{verbatim}
+\special{dviout -y=A4P !AN2N5!p ; !bdf}
+\end{verbatim}
+is equivalent to
+\begin{verbatim}
+\special{dviout -y=A4P !AN2N5!p}
+\special{dviout `wait}
+\special{dviout !bdf}
+\end{verbatim}
+\end{itemize}
+
+Other dviout specials are of the form
+\begin{verbatim}
+\special{dviout `<key> <parameter>}
+\end{verbatim}
+Here \verb|<key>| is {\tt timer}, {\tt wait}, {\tt href}, {\tt keep},
+{\tt restore}, {\tt message}, {\tt ask}, {\tt sp} or {\tt initialize}.
+
+\begin{itemize}
+\item {\tt timer}, {\tt wait}:
+The dviout special
+\begin{verbatim}
+\special{dviout `timer <number>}
+\end{verbatim}
+means to wait {\tt <number>}/1000 seconds to execute the following
+dviout specials. If the user changes the page of the DVI file in preview,
+under waiting this timer, it means that the timer and the following dviout
+specials, which may be written after {\tt <number>} separated by a space,
+are cancelled.
+
+If {\tt <number>} is 0, then the successive dviout specials will be interpreted
+after the former dviout specials will have been completed.
+
+\verb|\special{dviout `wait}| is equal to \verb|\special{dviout `timer 0}|.
+
+\item {\tt href}:
+The dviout special
+\begin{verbatim}
+\special{dviout `href [parameter]}
+\end{verbatim}
+is to simulate the \goto{hyperTeX}{{Hyper\TeX} special}
+\begin{verbatim}
+\special{html:<a href="[parameter]">}
+\end{verbatim}
+One can jump to other DVI file or execute a program by this special.
+
+For example
+\begin{verbatim}
+\special{dviout `href file:foo.mid}
+\special{dviout `timer 180000 je}
+\end{verbatim}
+means to play {\tt foo.mid}, which may be included in the DVI file,
+and to jump to the next page after 3 minutes.
+
+\item {\tt keep}, {\tt restore}:
+The current values of parameters can be reserved by
+\begin{verbatim}
+\special{dviout `keep <parameter list>}
+\end{verbatim}
+For example,
+\begin{verbatim}
+\special{dviout `keep cmode y}
+\end{verbatim}
+They are automatically recovered if the DVI file currently displayed is
+changed to another DVI file.
+They can be also recovered by
+\begin{verbatim}
+\special{dviout `restore}
+\end{verbatim}
+The values have been kept and another \verb|\special{dviout `keep ...}|
+is ignored until they are recovered.
+
+\item {\tt+<levels>}: \name{Control}{}%
+Control dislay according to {\tt <levels>} hereafter in this page.
+
+Here \verb|<levels>| is a set of certain non-negative integers attached to
+every part of a DVI file.
+If the level of the current diplay is not contained in {\tt<levels>} of a
+part, the part is not displayed.
+
+The level of a display starts from 0 and it inceases by clicking
+{\tt [Space]} key.
+If the level goes beyond the maximal level defined in the page,
+the following page is displayed with the level 0.
+
+Hence this special is useful for \goto{Presentation}{Presentation}
+with the following {\tt<levels>}.
+%\begin{quote}
+\begin{tabbing}
+ {\tt <num1>-<num2>}\ \= \kill
+ {\tt <num1>-<num2>}\>: From {\tt<num1>} to {\tt<num2>}. {\tt2-4} means 2,3,4.\\
+ {\tt <num>-}\>: The integers larger than or equals to {\tt<num>}.\\
+ \>\ \ {\tt 2-} means 2,3,$\ldots$\\
+ {\tt -<num>}\>: The integers from 0 to {\tt<num>}. {\tt -2} means 0,1,2.\\
+ {\tt -}\>: All integers, which is the default {\tt<levels>}.\\
+ {\tt m}\>: The maximal integer already appeared in this page.\\
+ {\tt mm}\>: (The above integer) $-1$.\\
+ {\tt mm$\cdots$m}\>: (The above integer) $-n+1$ for $n$ succesive {\tt m}.\\
+ {\tt M}\>: (The above integer) $+1$.\\
+ {\tt MM}\>: (The above integer) $+2$.\\
+ {\tt MM$\cdots$M}\>: (The above integer) $+n$ for $n$ succesive {\tt M}.\\
+ {\tt -2,4-5,7,9-}\>: 0,1,2,4,5,7,9,10,11,$\ldots$\\
+ {\tt 1,M-}\>: $1$,(the above integer)+1,(the above integer)+2,$\ldots$
+\end{tabbing}
+If the contents of a page of a {\TeX} file is
+\begin{verbatim}
+ part1
+ \special{dviout `+M-}
+ part2
+ \special{dviout `+M-}
+ part3
+\end{verbatim}
+then only {\tt part1} is first displayed. Then if {\tt[Space]} is clicked,
+{\tt part2} is also displayed and the successive click of {\tt[Space]} implies
+that the whole contents are displayed and then the following page is displayed.
+
+In this example, the first \verb|\special{dviout `+M-}| equals to\\
+\verb|\special{dviout `+1-}| and the second to \verb|\special{dviout `+2-}|.
+This corressponds to the example using \goto{pause}{pause special} but they do
+not exacltly lead the same result.
+\begin{verbatim}
+ I am a \special{dviout `+0}dog.%
+ \llap{\special{dviout `+1-}cat.}\special{dviout `+0-}
+ You are ...
+\end{verbatim}
+implies that the sentence ``I am a dog. You are..." is first displayed and
+it changes into ``I am a cat. You are ..." by clicking {\tt[Space]}.
+
+Try a \href{file:slisamp4.dvi}{sample} using ths special.
+
+\item {\tt input}, {\tt in}, {\tt in*}: {\tt <string>} is copied to the
+clipboard by
+\begin{verbatim}
+\special{dviout `input <string>}
+\end{verbatim}
+If {\tt in} is used in place of {\tt input}, the following replacement of
+{\tt <string>} is performed:
+\begin{quote}
+A space followed by two hexa-decimal characters in {\tt <string>} is
+replaced by one character with the corresponding code.
+
+If the top character of the string is `{\tt .}' followed by two hexa-decimal
+characters, they are replaced one character in the same way.
+The top two characters of the string are `{\tt ..}',
+they are replaced by `{\tt .}'.
+\end{quote}
+
+If {\tt in*} is used in place of {\tt in}, {\tt <string>} is not displayed
+in the preview window.
+
+These dviout specials usually used with \goto{hyperTeX}{{Hyper\TeX} specials}
+as follows.
+\begin{verbatim}
+\special{html:<a href="dviout:`input \string\alpha">}$\alpha$
+\special{html:</a>}
+\end{verbatim}
+When a {\TeX} file is edited,
+it is helpful to use {\tt[\b{H}elp $\to$ Help Te\b{X}]}
+because by clicking the displayed string on the screen the corresponding key
+word for {\TeX} is copied to the clipboard, which will be pasted in an editor.
+
+\qquad
+Please try this [
+\special{html:<a href="dviout:`input \string\alpha">}$\alpha$
+\special{html:</a>}]
+as in the following.
+
+- If {\tt [ALT]} is pressed under the click, the key word is appended to the
+clipboard.
+
+- If {\tt [CTRL]} is pressed under the click, the key word is copied to an editor
+and the clipboard. The editor is determined at this first click.
+
+- If {\tt [CTRL]+[ALT]} are pressed under the click, the key word is copied
+to a new editor and the clipboard.
+
+This is an application of this dviout special and it is easily extended since
+the source file of this Help is in the package of {\tt dviout}.
+
+\item {\tt sp}: \TeX\ special {\tt <special>} is performed by
+\begin{verbatim}
+\special{dviout `sp <special>}
+\end{verbatim}
+
+\item {\tt initialize}: {\tt <macro>} is performed when dviout starts to
+preview the DVI file. This is valid even if dviout does not start from
+the top page of the DVI file.
+If the option word {\tt page} is indicated after {\tt initialize},
+{\tt <macro>} is performed at the top of the each page.
+
+This special \verb|\special{dviout `initialize <macro>}| should be put
+at the top of a DVI file. For example,
+\begin{verbatim}
+\AtBeginDvi{\special{dviout `initialize -y=A4L}}
+\end{verbatim}
+One can execute this again in any page by indicating
+\begin{verbatim}
+\special{dviout `initialize}
+\end{verbatim}
+there.
+One can also write as follows at the beginning of a TeX file
+\begin{verbatim}
+\AtBeginDvi{\special{dviout `initialize page `sp background
+Yellow}}
+\end{verbatim}
+
+This special also allows to add a path to the original setting of
+{\tt -TEXPK:}\ {\tt-TEXFONTS:}\ {\tt-TEXKNJ} or {\tt-gdat},
+which is indicated by replacing {\tt -} by {\tt +}.
+For example,\name{AddTEXPK}{}
+\begin{verbatim}
+\AtBeginDvi{\special{dviout `initialize `keep TEXPK}}
+\AtBeginDvi{\special{dviout `initialize +TEXPK=^F/^s.pk;}}
+\end{verbatim}
+The delimiter {\tt ;} should be put at the top or the end of the value
+of the parameter. The former means that the indicated value is
+appended at the end of the original value and the latter means that
+it is inserted at the top of the original value.
+Here \goto{hatF}{{\tt\string^F}} means \goto{embed}{embedded files} in
+a DVI file.
+
+\item {\tt message}:
+{\tt <MESSAGE>} is displayed in the information Window by
+\begin{verbatim}
+\special{dviout `message <MESSAGE>}
+\end{verbatim}
+{\tt<MESSAGE>} can be a block surrounded by {\tt `'} and {\tt '`}.
+Then the block can be divided into lines by the separator {\tt `'}.
+If the block divided into more than one line, the first line becomes
+the title and the other lines are the content. For example
+\begin{verbatim}
+\special{dviout `message `'Remark`'This page is written:
+`'Jan 1, 2000'`}
+\end{verbatim}
+
+\item {\tt ask}: {\tt <MESSAGE>} is displayed in a dialog requiring the
+answer Yes or No and execute dviout specials depending the answer.
+\begin{verbatim}
+\href{dviout:`ask `'Style`'Landscape?'` `yes -y=A4L df
+`no -y=A4P df}{Choose style}
+\end{verbatim}
+If the answer is Yes, the dviout specials after {\tt `yes} are executed if
+{\tt `yes} exists. It will be terminated at {\tt `no} if {\tt `no} exists.
+The same result holds by exchanging Yes and No.
+
+\item {\tt `"....."`}:
+If dviout specials except {\tt `time} are surrounded by {\tt `"} and {\tt "`},
+they forms one block. One can continue to write successive dviout specials and
+makes one \verb|\special|. For example, under {\tt myhyper.sty}
+\begin{verbatim}
+\href{dviout: `"href file:foo.mid"` -y=A4L `href:foo.dvi}
+{jump to foo}
+\end{verbatim}
+
+\item Hyper\TeX:
+dviout specials can be used by {Hyper\TeX}.
+For example, under {\tt myhyper.sty}
+\begin{verbatim}
+\href{dviout:-y=A5L `href foo.dvi}{Jump to foo}.
+\end{verbatim}
+\end{itemize}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% source specials
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{source specials}
+source specials are supported by {\tt MikTeX} \& {\tt yap} which is a popular
+{\TeX} system in MS Windows. There is also a {p\TeX} system for Japanese
+language supporting them.
+The specials with {\tt dviout} enable us to jump forward/backward between
+preview screen and an editor for the {\TeX} file.
+dviout with the attached utility {\tt srctex} also supports the specials.
+
+source specials are embedded in a DVI file which tell the line number and the
+file name corresponding to the position in the DVI file.
+
+\begin{itemize}
+\item
+If the {\TeX} compiler supports source specials, they are embedded in a DVI
+file by, for example,
+\begin{verbatim}
+latex -src foo
+\end{verbatim}
+
+\item
+It is recommended to use the compiler supporting source specials.
+But even if the {\TeX} compiler does not support them, one can embed them in
+the DVI file by
+\begin{verbatim}
+srctex latex foo
+\end{verbatim}
+In this case, if the environment variable {\tt TEXEDIT} is set for the errors
+in the compilation, for example,
+\begin{verbatim}
+TEXEDIT=mule +%d %s
+\end{verbatim}
+then it is better to change it to use {\tt convedit} by
+\begin{verbatim}
+TEXEDIT=convedit mule +%d %s
+\end{verbatim}
+
+\item
+The way to call an editor of {\TeX} files should be set in the parameter
+{\tt -src:}, for example,
+\begin{verbatim}
+-src=c:\Program Files\editor.exe^s+%d "%s"
+\end{verbatim}
+Here \verb|^s| is the separator between the name of the editor and its command
+parameters.
+Moreover \verb|%s| and \verb|%d| are replaced by the source file and the
+corresponding line number.
+If the letter `{\tt <}' is inserted at the top of the name of the
+executable editor, {\tt dviout} becomes icon when the editor is executed.
+
+The environment variable {\tt TEXEDIT} is used for this purpose if {\tt -src:}
+is not set.
+Then one can jump from the preview screen to the editor by double clicking
+the left button on the mouse.
+It is also possible by clicking the left button on the mouse
+with {\tt [Shift]} is pressed and selecting {\tt [$\to$\b{S}rc]}.
+One can also jump by clicking the same button with both {\tt [Shift]}
+and {\tt [Ctrl]} buttons are pressed.
+The former two methods are more accurate in the jump.
+
+\item
+By double clicking the left button on the mouse at the included graphic file,
+one can jump to the corresponding graphic editor.
+The way to call the editor according to the extension of the file
+is indicated by the parameter {\tt-gsrc:} as in {\tt-src}, for example
+\begin{verbatim}
+.ps.eps=c:\usr\local\bin\psedit.exe^s"%n";.bmp=mspaint^s"%s"
+\end{verbatim}
+
+\item
+If one wants to preview the DVI file corresponding to the
+the position around the 235-th line of the {\TeX} file {\tt foo.tex}, one can
+execute by
+\begin{verbatim}
+dviout foo.dvi "# 235 foo.tex"
+\end{verbatim}
+One may even specified {\tt <string>} around the line by
+\begin{verbatim}
+dviout foo.dvi "# 235/<string> foo.tex"
+\end{verbatim}
+If one wants to execute it by the $m$-th dviout, add the parameter
+$-m$ to indicate it. For example, execute the first dviout by
+\begin{verbatim}
+dviout -1 foo.dvi "# 235/<string> foo.tex"
+\end{verbatim}
+To clearify the corresponding position in the preview window
+one can use the animation cursor by
+{\tt[\b{V}iew $\to$ Ani\b{m}ation Cursor]}.
+
+It is also possible and better to use a DDE command for this purpose.
+{\tt foo.tex} may be replaced by {\tt *} if the file name is not specified.
+The similar jump is also possible by the string search in {\tt dviout}
+indicating two spaces ahead, such as, `{\tt \b{\ }\b{\ }235\b{\ }*}'.
+Here `{\tt\b{\ }}' denotes a space.
+\end{itemize}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Other specials}
+\begin{itemize}
+\item{\tt file=}
+
+The content \verb|...| of \verb|\special{...}| is
+read from the file {\tt<filename>}.
+\begin{verbatim}
+\special{file=<filename>}
+\end{verbatim}
+
+\item{\tt papersize=}
+
+This special is for the compatibility to {\tt dvips}.
+It is translated into one of dviout specials. Namely
+\begin{verbatim}
+\special{papersize=<width>,<height>}
+\end{verbatim}
+is translated into \verb|\special{dviout -y=F<width>:<height>}|.
+If it is at the top of a DVI file, it is always interpreted
+when dviout read the DVI file, that is, it is the same as
+\begin{verbatim}
+\special{dviout `initialize -y=F<width>:<height>}
+\end{verbatim}
+For example, it is used as
+\begin{verbatim}
+\AtBeginDvi{\special{papersize=29.7cm,21cm}}
+\end{verbatim}
+The size may be indicated by {\tt mm}, {\tt cm}, {\tt pt},
+{\tt bp} or {\tt <dot>/<number>dpi}.
+Moreover dviout allows the value of {\tt papersize} to be any
+value of the parameter {\tt -y=}. For example
+\begin{verbatim}
+\AtBeginDvi{\special{papersize=B5L}}
+\end{verbatim}
+
+\item{\tt pause}
+
+The \goto{pause}{pause special} is used in the presentation mode.
+\end{itemize}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Ignore specials
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Ignore specials}
+Specials can be ignored by {\tt dviout}. It can be done by switches:
+\begin{itemize}
+\item
+The switch for {Hyper\TeX} is {\tt[\b{J}ump $\to$ Enable Hyper\b{J}ump]} or
+the tool button \button{hyper.bmp}.
+
+\item
+The switch for tpic specials is {\tt[\b{O}ption $\to$ \b{S}etup
+Parameters$\ldots$} or \button{option.bmp}
+{\tt $\to$ Graphics $\to$ tpic specials]}.
+
+\item
+The switch for color specials is {\tt[\b{D}isplay $\to$ \b{C}olor special]}.
+
+\item
+The switch for graphic specials is {\tt[\b{D}isplay $\to$ Graph\b{i}cs]}.
+If the check is erased, the position of a figure is displayed by a frame.
+Specials can be ignored by {\tt dviout}. It can be done by switches:
+
+\item
+The switch for dviout specials is {\tt[\b{O}ption $\to$ d\b{v}iout specials]}.
+If this is not checked, the dviout specials are ignored.
+Note that dviout specials are only valid in case of preview and are not valid
+in case of printing etc.
+
+\item
+The switch for pause special, which is used under Presentation Mode,
+is {\tt[\b{V}iew $\to$ C\b{o}ver sheet]}.
+
+\item
+The switch for source specials is {\tt[\b{O}ption $\to$ sour\b{c}e specials]}.
+\end{itemize}
+
+\noindent
+The following page is a sample using dviout specials.
+\special{dviout -y=A4P !w}%
+\newpage
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% A sample page for dviout specials
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\pagecolor{blue}
+\special{dviout `keep cmode}%
+\special{dviout -cmode=2 -y=A5L DV}%
+\special{dviout `timer 4000 DV}%
+\special{dviout `timer 4000 je}%
+\centerline{\huge{{\color{red} Please wait 8 seconds!}}}
+
+\subsection{A sample of dviout special}
+{\Large
+\centerline{This page will be displayed in A5 landscape style.}
+
+The following dviout specials are used in this page
+\begin{verbatim}
+\special{dviout `keep cmode}
+\special{dviout -cmode=2 -y=A5L DV}
+\special{dviout `timer 4000 DV}
+\special{dviout `timer 4000 je}
+\end{verbatim}
+and the dviout special
+\begin{verbatim}
+\special{dviout -y=A4P !w}
+\end{verbatim}
+is in the former and next pages.
+}
+\newpage
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\special{dviout -y=A4P !w}%
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Presentation
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Presentation}
+\name{Presentation}{}
+{\tt dviout} is useful for a presentation using a document written by
+\TeX.
+It has several features for the purpose.
+
+Under the Presentation Mode of
+{\tt dviout}, the page of a DVI file is displayed in the full screen with
+no frame.
+The switch to/from the Presentation Mode is {\tt[ESC]} key.
+
+\subsection{Presentation Mode}
+One of the followings is indicated by
+{\tt[Prese\b{n}tation $\to$ Presentation t\b{y}pe]}:
+
+\begin{itemize}
+\item
+{\tt general screen}: general background and sheet (default)
+\item
+{\tt white screen}: white background and sheet, black letters
+\item
+{\tt black screen}: black background and sheet, white letters
+\item
+{\tt white background}: white background
+\item
+{\tt black background}: black background
+\end{itemize}
+
+Except under the default {\tt general screen}, {\tt white screen} or
+{\tt black screen}, the screen may flicker by the page jump or the usage of
+Loupe.
+
+Under Presentation Mode, {\tt [\b{D}isplay $\to$ Si\b{z}e $\to$ \b{F}it,
+Fu\b{l}l]} ({\tt[5]}, {\tt[6]} key in default)
+will be performed exactly both by shrinking with gray scale and by
+shrinking/enlarging with {\tt -e:} and {\tt -varf:} In this case,
+the usage of the TrueType fonts may give better results in place of PK fonts.
+\medskip
+
+The position of the page can be adjusted by {\tt[CTRL]+[SHIFT]+arrow key}.
+
+Checking {\tt[\b{D}isplay $\to$ \b{Y}-two pages]}, pages are vertically connected
+and one can seamlessly scroll the whole document.
+
+By a cover sheet, one can hide a part of a page and {\tt pause special} can
+be used for this purpose.
+
+One may also use \goto{spdviout}{{\tt dviout specials}} in {Hyper\TeX}
+specials.
+\begin{itemize}
+\item
+{\tt [ESC]} : Normal mode $\Leftrightarrow$ Presentation mode
+\item
+{\tt [5](default)} : fit screen
+\item
+{\tt [6](default)} : full screen
+\item
+{\tt [8](default)} : 4 pages
+\item
+{\tt [9](default)} : 16 pages
+\item
+{\tt [CTRL]+[SHIFT]+arrow key} : move the page by 0.5 pt
+\end{itemize}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Region to be shown
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Region to be shown}
+One can cut spaces around the edges of the sheets by
+{\tt [Prese\b{n}tation $\to$ Cut \b{e}dge]} preceding to the above
+{\tt[Fit]} or {\tt[Full]}. The default margin is of the width of
+16 pixel in the original document but it can be changed by
+{\tt[\b{O}ption $\to$ \b{S}etup Parameters$\ldots$ $\to$
+Paper $\to$ Cut Edge]}.
+\medskip
+
+For example, check {\tt [Prese\b{n}tation $\to$ Cut \b{e}dge]} and
+{\tt [Prese\b{n}tation $\to$ Seamless Hyper\b{J}ump]}, push {\tt[ESC]},
+use the above {\tt[Fit]} or {\tt[Full]} to enter Presentation Mode.
+Moreover the usage of {\tt [\b{D}isplay $\to$ cro\b{s}s pages, 1\b{6} pages]}
+ ({\tt[8]}, {\tt[9]} key in default) is useful.
+\medskip
+
+One may use {\tt[\b{D}isplay $\to$ Re\b{g}ion $\to$ O\b{n}]} to indicate
+the region to be shown with {\tt [SHIFT]}+left/right button on the mouse
+and cut it by {\tt[\b{D}isplay $\to$ Re\b{g}ion $\to$ \b{C}ut]}.
+This is useful to cut off the page headers or footers.
+
+To indicate the region to be shown it is much better in {\LaTeX} to use
+\begin{verbatim}
+\AtBegin{\speicial{papersize=...}}
+\end{verbatim}
+and \verb|\paperwidth=|,
+\verb|\paperheight=|, \verb|\textwidth=|, \verb|\textheight=|,
+\verb|\hoffset=| and \verb|\voffset=|.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% draw lines
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Draw lines}
+In the presentation mode, one can draw lines or boxes by the mouse.
+They will be disappeared if the page changes.
+Using the seamless scroll, they will be kept for two pages.
+\begin{itemize}
+\item
+{\tt [F12] Draw lines} : On/Off
+\item
+{\tt [SHIFT]+left button on Mouse} : indicate the start point
+\item
+{\tt [SHIFT]+right button on Mouse} : indicate the intermediate or end point and draw
+a line/box.
+\item
+{\tt [CTRL]+[SHIFT]+left button on Mouse} : change the last start point
+\item
+{\tt [CTRL]+[SHIFT]+right button on Mouse} : change the last end point
+\item
+{\tt [DELETE]} : delete the last point
+\item
+{\tt [SHIFT]+[F5]} : draw by red(default)
+\item
+{\tt [SHIFT]+[F6]} : draw by black
+\item
+{\tt [SHIFT]+[F7]} : draw by blue
+\item
+{\tt [SHIFT]+[F8]} : draw by green
+\item
+{\tt [F11]} : draw lines mode(default)
+\item
+{\tt [SHIFT]+[F11]} : draw boxes mode
+\end{itemize}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% seamless scroll
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Seamless scroll}
+If {\tt[\b{D}isplay $\to$ \b{Y}-two pages]} is checked, one can seamlessly
+and vertically scroll pages by the mouse or arrow keys as if all pages are vertically
+connected into one page.
+In this case {\tt[\b{D}isplay $\to$ Si\b{z}e $\to$ Fu\b{l}l]} is usually
+indicated.
+
+The following is an example of the top part of such document.
+One can quit the presentation mode by pushing {\tt[ESC]}.
+\begin{verbatim}
+\documentclass{slides}
+\AtBeginDvi{\special{dviout -dpi=180}}
+\AtBeginDvi{\special{dviout -y=F1024dot/90dpi:2730dot/90dpi}}
+\AtBeginDvi{\special{dviout !Ady!pdl;!b}}
+\textwidth=11.2in \textheight=30.5in
+\hoffset=-.9in \voffset=-1.6in
+\pagestyle{empty}
+...
+\begin{document}
+\maketitle\thispagestyle{empty}
+...
+\end{verbatim}
+In the above \goto{spdviout}{{\tt dviout specials}}
+\verb|!A|, \verb|dy|, \verb|!p|, \verb|dl|, \verb|;| and \verb|!b| mean
+``display OFF", ``Y-two pages", ``presentation mode", ``Full screen",
+``wait" and ``display ON", respectively.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% cover sheet
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Cover sheet}
+Checking {\tt[Prese\b{n}tation $\to$ C\b{o}ver sheet $\to$ On,
+On for Pause]} in Menu Bar, one can hide a page under Presentation Mode.
+One of the following cover type is indicated by
+{\tt[Prese\b{n}tation $\to$ Co\b{v}er type]}
+
+\begin{itemize}
+\item {\tt bottom}: cover bottom
+\item {\tt right}: cover right side
+\item {\tt left}: cover left side
+\item {\tt bottom + right}: cover bottom and right side
+\item {\tt bottom + left}: cover bottom and left side
+\end{itemize}
+At first, the whole part of page is hidden by a cover sheet.
+The cover sheet can be moved by the mouse or by using pause special.
+If one moves to the former page, then the page has no cover sheet and the
+status of the original page is kept.
+
+The following is an example of the top part of such document.
+\begin{verbatim}
+\documentclass{slides}
+\def\pause{\special{pause}}
+\AtBeginDvi{\special{dviout -y=XGAP !AN1N5NO!p;!bdf}}
+\paperwidth=10.24in \paperheight=7.68in
+\textwidth=9.44in \textheight=7in
+\hoffset=-.62in \voffset=-1.4in
+...
+\end{verbatim}
+
+\begin{enumerate}
+\item {\bf Mouse}
+
+Under pressing the left button of Mouse, change the shape of the mouse cursor
+into the up-down/right-left arrow by clicking the right button of the mouse
+if necessary. If the whole page is in a screen, the clicking is unnecessary.
+
+If the boundary of the cover sheet is in the screen, the cursor jumps to the position. Then moving the mouse under pressing the left button of the mouse implies the moving of the cover sheet. If releasing the left button of the mouse, the mouse cursor jumps to the original position.
+
+If {\tt[Prese\b{n}tation $\to$ Use \b{M}ouse Button $\to$ \b{L}eft
+(\b{R}ight)]} is checked, then the function of the left (right) button of the
+mouse in the Presentation Mode changes into the function of [Space] key.
+
+\item {\bf pause special}\name{pause}{}
+
+If \verb|\special{pause}| is written in the source text of \TeX,
+the clicking \verb|[Space]| key moves the cover sheet to the position where
+the special is written.
+
+In particular, \verb|\special{pause 0}| means to move the cover sheet to the
+place where no part of the page is hidden by it.
+
+The click of \verb|[Space]| key implies to move the cover sheet to the next
+position where \verb|\special{pause}| is written.
+If there exists no \verb|\special{pause}| after there in the page and there
+exists a part hidden by the cover sheet, the cover sheet will be removed.
+
+On the other hand, if there exists no \verb|\special{pause}| after there in
+the page and there exists no part hidden by the cover sheet, then the next page is shown.
+The cover sheet is at the first position indicated by the first
+\verb|\special{pause}| in the next page or the whole page (resp.~no part of
+the page) is hidden by the cover sheet if there exists
+no \verb|\special{pause}| there under cover sheet {\tt On}
+(resp.~{\tt On for Pause}).
+
+See an example of the usage of pause special.
+
+\item {\bf Function keys}
+
+Special functions are attached to the following keys under Presentation Mode.
+The functions can be attached to other keys.
+
+\begin{itemize}
+\item
+{\tt [F5] On} : Use cover sheet
+\item
+{\tt [F6] Off} : Don't use cover sheet
+\item
+{\tt [F7] Suspend} : Suspend to use cover sheet
+\item
+{\tt [F8] Return} : Return to the place where the original cover sheet exists
+\item
+{\tt [F9] On for Pause} : Similar as {\tt F5} but the cover sheet is initially at the position where no part of the page is hidden if no \verb|\special{pause}|
+exists in the page.
+\end{itemize}
+By the above {\tt Suspend}, the current place is recorded as
+``the place where the original cover sheet exists"
+
+Under suspending to use cover sheet, if the place to display coincides with
+``the place where the original cover sheet exists", then the cover sheet is
+again used and the suspension is stopped.
+
+The above {\tt Return} means to return to ``the place where the original
+cover sheet exists" and to stop the suspension.
+
+The above {\tt Off} or jump by {Hyper\TeX} is done after performing the
+above {\tt Suspend}.
+\end{enumerate}
+
+{\bf Remark 3.2.1}: Turning the pressed wheel of IntelliMouse means
+to move to another page.
+In this case, if the left mouse button is also pressed, then the movement to
+the next page can be done without suspending the cover sheet, that is the same
+result as clicking {\tt[Space]} key.
+\medskip
+
+{\bf Remark 3.2.2}: Successive pushing of {\tt [Space]} key for a DVI file
+without any \verb|\special{pause}| under Presentation Mode with the cover
+sheet implies the following change of the preview:
+\begin{quote}
+a page hidden by the cover sheet $\to$ the page is displayed without the cover sheet
+$\to$ the next page is shown with (resp.~without) covered by the cover sheet if {\tt On} (resp.~{\tt On for Pause}) is set $\to\ldots$
+\end{quote}
+
+\subsection{Examples}
+For example, a {\TeX} file for Presentation Mode using \verb|\special{pause}|
+is as follows.
+
+\begin{verbatim}
+% bottom cover sheet On for Pause
+% general screen, Presentation;
+% Screen: 1024 x 768, Reverse;
+% Fit
+\special{dviout -cmode=2 !AN0N5NP!p; -e=0 -y=XGAP !v;!bdf}
+\def\pause{\special{pause}}
+...
+\pause% the place to pause (top of a paragraph)
+...
+\pause% the place to pause (top of a paragraph)
+...
+\end{verbatim}
+In this case, if the corresponding DVI file is previewed from the first page,
+it is shown in Presentation Mode.
+The clicking of {\tt [Space]} key moves the cover sheet to the position
+indicated by \verb|\special{pause}|.
+
+pause specials can be automatically inserted at the beginning of
+each paragraph by
+\begin{verbatim}
+srctex -n -S\special{pause} -onew.tex original.tex
+\end{verbatim}
+One can indicate in {\TeX} source so that, for example, the paper size equals
+10.24 inch $\times$ 7.68 inch.
+
+In the presentation it is better not to rewrite screen if possible.
+The dviout specials
+\begin{verbatim}
+\special{dviout `keep y}
+\special{dviout -y=A4L !i}
+\end{verbatim}
+set the paper size {\tt A4} landscape and rewrite the screen only if the size
+has changed. The combination of {\tt !A} and {\tt !B} can also be used for
+this purpose so that the drawing of the screen is stopped between the commands.
+In this case, \verb|\special{dviout `timer 0}| is usually put just before
+\verb|\special{dviout !b}|. In short, it will be
+\verb|\special{dviout !A...;!b...}|.
+
+If this \href{file:slisampl.dvi}{{\tt sample of presentation}} is
+clicked, it is automatically displayed and performed without any key operation.
+It is written under slide class with the default fonts, the
+corresponding fonts ({\tt lcmss} etc.) are necessary. Also for the task bar
+of Windows system at least one of the options ``always display at the top" and
+``automatically hide" should be unchecked.
+
+\subsection{Display control}
+In place of {\tt pause special},
+the more complicated controls under clicking \verb|[Space]| key are possible
+by using \goto{Control}{dviout specials} ({\tt `+<level>}).
+Try an \href{file:slisamp4.dvi}{example}.
+
+\subsection{Menu}
+{\bf Menu} will be appeared if the mouse cursor moves to the lower right corner
+of the screen. The fundamental buttons are follows.
+\begin{quote}\begin{tabbing}
+AAA\=\kill\\
+{\tt [>]}\> same as {\tt[Space]}.\\
+{\tt [<]}\> go to the preceeding page.\\
+{\tt [+]}\> change {\bf Menu}.\\
+{\tt [-]}\> move {\bf Menu}.\\
+\end{tabbing}\end{quote}
+Many other buttons exist in the {\bf Menu} which are usually not shown.
+
+{\bf Menu} can be moved.
+If it is at the upper left corner of the screen, it will not disappear.
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Embedding and Packing
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Embedding and Packing}\name{embed}
+Some DVI files require graphic files to display it
+and some DVI files requires special font files or
+parameter files.
+One can pack a DVI file and these required files into one
+file which dviout can directly handle.
+There are two ways to do it. One is the use of the program
+{\tt tar} and the other is the direct embedding of these files in
+the original DVI file.
+The file may also be compressed by {\tt gzip}.
+
+\subsection{tar and gzip}
+For example, one can make an archived file {\tt foo.tar} from
+{\tt foo.dvi}, {\tt fo1.dvi}, {\tt foo.ps}, {\tt fn.300pk},
+{\tt fn.vf} and {\tt fn.map} by
+\begin{verbatim}
+tar cvf foo.tar foo.dvi fo1.dvi foo.ps fn.300pk fn.vf fn.map
+\end{verbatim}
+One may also compress it into {\tt foo.tar.gz} by
+\begin{verbatim}
+gzip foo.tar
+\end{verbatim}
+Then {\tt dviout} can directly read {\tt foo.tar} or
+{\tt foo.tar.gz}. One may drag and drop the icon of
+{\tt foo.tar.gz} to the window of {\tt dviout}.
+Here {\tt gzip} is necessary for {\tt dviout} to read {\tt foo.tar.gz}.
+
+\name{gzip}{Note} that the graphic files included in a DVI file can also be
+compressed by {\tt gzip} for the use of {\tt dviout}.
+
+\subsection{Embedding into a DVI file}
+One can embed arbitrary files into a DVI file and {\tt dviout}
+can read them. For example, by the command
+\begin{verbatim}
+dviadd foo.ps fn.300pk fn.vf fn.map foo.dvi
+\end{verbatim}
+the files {\tt foo.ps}, {\tt fn.300pk}, {\tt fn.vf} and {\tt fn.map} are
+embedded into {\tt foo.dvi}.
+Then {\tt dviout} can read these embedded files but other dviwares
+only ignore them.
+One may also compress graphic files by {\tt gzip} to be embedded
+in a DVI file.
+
+\subsection{Font/Image Embedding}
+By {\tt [\b{F}ile $\to$ \b{F}ont/Image Embedding]} in Menu Bar one
+can embed the necessary ingredients from font files and image data
+files used by the DVI file.
+For example, only the necessary glyph data in font files for characters
+appeared in the DVI file are automatically extracted and embedded in the
+DVI file. dviout can automatically recognize the embedded data.
+
+One can also define there the initial setting for dviout when the DVI
+file is opened.
+
+If all the necessary fonts are embedded, dviout can treat the DVI file
+without any font file. Data extracted from PK fonts can be embedded
+based on multiple resolutions. dviout uses them with the closest
+resolution by re-scaling them.
+
+This function supports Image data files / Japanese and European TrueType
+fonts / Virtual fonts(vf/ovf) / tfm files / jfm files/ PK fonts /
+Font mapping data. Here some Japanese fonts are embedded:
+
+%%%%% Here is written in Japanese (in SHIFT JIS Code) %%%%%
+日本語のWindows TrueTypeフォントやjfmファイルを埋め込むことができます。
+ここでは、\href{http://www.l.u-tokyo.ac.jp/GT}{GTフォント}を埋め込んで
+います。日本語フォントを埋めこむと、dvioutは非日本語Windowsの下でもそ
+のdviファイルを扱えます。
+%%%%% End of Japanese %%%%%
+
+\subsection{special path to files}
+The graphic files archived by {\tt tar} with the DVI file or
+embedded by {\tt dviadd} into the DVI file are automatically
+searched when the graphic specials require them.
+
+{\tt dviout} can use the archived or embedded parameter files
+and font files by indicating \verb|^F\| or \verb|^F/| at the
+top of their filenames.
+For example,
+\begin{verbatim}
+-TEXPK=^F\^s.^dpk;^T\pk\\^s.pk
+\end{verbatim}
+ and {\tt dviout}
+requires {\tt cmr10} with the resolution 300dpi, then it first
+searches the embedded file with the name {\tt cmr10.300pk}.
+(See \goto{AddTEXPK}{{\tt dviout special `initialize}}).
+One may use the following symbols in the setting of the parameters of
+{\tt dviout} to indicate the location of files.
+\begin{quote}
+\verb|^T|\quad The directory indicated by the environment variable
+{\tt TEXMFMAIN} or {\tt TEXMF}.
+
+\verb|^x|\quad The directory where {\tt dviout} locates.
+
+\verb|^w|\quad Window's system directory
+
+\name{hatF}{}%
+\verb|^F|\quad The path to the archived or embedded files.
+\end{quote}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Output by dviout for Windows
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Output by {\tt dviout for Windows}}
+{\tt dviout} displays a DVI file in the preview Window and print it
+through the Windows printer driver as a usual dviware. Using the
+corresponding Windows printer driver, {\tt dviout} can output the DVI
+file to FAX or translate it into a PS file or a PDF file etc.~if one
+uses the corresponding printer driver.
+
+\subsection{Output to a printer}
+There exist several method to print a DVI file by dviout.
+\begin{itemize}
+\item
+{\bf Using Windows printer driver}:
+This is the default method. ({\tt[\b{O}ption
+$\to$ \b{S}etup Parameters$\ldots$ $\to$ Graphic $\to$ auto mode(p2)]}.
+Here the setting {\tt[patch2]} means the usage of the same method for
+the preview.)
+
+If the characters to be printed are supplied in TrueType fonts, they are
+rendered to the Windows printer driver through Windows API.
+The characters given by bitmap data such as PK format, the image data are
+put on the required position in the sheet through Windows API.
+Usually this method fits the Windows printers.
+
+\item
+{\bf Making a bitmapped data by dviout}:
+This is the default method for preview.
+(The setting {\tt[\b{O}ption $\to$ \b{S}etup Parameters$\ldots$ $\to$
+Graphic $\to$ auto mode(rep)]} means the similar method for the output to
+the printer.)
+
+{\tt dviout} gets the image data of characters by Windows API or the font
+files in DISK, constructs a bitmapped image of a whole sheet and output it
+through Windows printer driver.
+This method fits the non-Windows printers such as PostScript printers.
+
+\item
+{\bf {\tt dviprt} function}:
+{\tt dviout} uses the specially defined method according to the output device
+through the RAW printer driver
+(Indicated by {\tt[\b{Op}tion $\to$ \b{S}etup Parameters$\ldots$ $\to$ Printer
+$\to$ dviprt:]})
+
+\begin{itemize}
+\item
+{\bf Using inner printer driver}:
+{\tt dviout} has special printer drivers for the
+control codes of LIPS III/IV and ESC/Page and some dot matrix printers.
+In particular, the output to the Laser Beam Printer with LIPS III/IV or
+ESC/Page are faster and better if this function is used.
+
+\item
+{\bf Controlling other dviwares}:
+{\tt dviout} can control other dviwares. For example, {\tt dviout} can output
+a DVI file through {\tt dvips} or transform a DVI file into a PDF file
+through {\tt dvipdfm(x)} etc..
+
+\item
+{\bf Using configuration file}:
+{\tt dviout} uses the configuration file which can be written by the user.
+The configuration files for many printers are already supplied.
+For example, the configuration files to output the DVI file in the graphic
+data formats such as EPSF, PBM and G3 FAX are in the package of
+the {\tt dviout}.
+\end{itemize}
+\end{itemize}
+
+\subsection{Output to a graphic image file}
+{\tt dviout} defines a rectangular region in the preview window by
+{\tt[\b{D}isplay $\to$ \b{R}egion $\to$ O\b{n}]} and then output the region
+as an image data file by {\tt[\b{F}ile $\to$ \b{S}ave as Image]}.
+The supported graphic formats are BMP, EMF, BMC and the formats
+(such as PNG or PDF) supported by
+\href{http://www.asahi-net.or.jp/~kh4s-smz/spi/my_spi.html}{ABC plug-in}
+or {\tt dvidfmx} if it is used.
+
+The graphic file in BMP or EMF can be output to the clipboard, which can
+be pasted in an editor.
+This will be useful when the file containing mathematical formula with
+using TrueType fonts in the EMF format is pasted in {\tt PowerPoint}
+etc.\ because it is smoothly scalarble.
+
+\subsection{Transformation into a PDF file}
+{\tt dviout} can control other DVI wares to make a PDF file.
+\begin{itemize}
+\item {\bf dvipdfm}:
+One of the most convenient ways to transform a DVI file into a PDF file
+is the usage of {\tt dvipdfmx} which has been greatly developed and
+improved.
+Under a standard installation of TeX and default parameters of dviout,
+one can use it by clicking the button \button{niko.bmp}.
+The size of the sheet, the adjustment of the position and the page to be
+transformed etc. are automatically supported as in the usual way in
+{\tt dviout}.
+
+\item {{\bf dvipsk} and {\bf Acrobat Distiller}}:
+This is supported by {\tt [\b{O}ption $\to$ Choose \b{P}arameters]}
+with the selection of
+{\tt [A sample to transform to PDF by dvipsk and Acrobat Distiller (5.0)]}.
+One should modify the corresponding script file if necessary.
+
+\item{Printer Driver {\bf Acrobat Distiller}}:
+Printing through Acrobat Distiller, one makes a PDF file.
+In this case, TrueType fonts should be used in place of bitmap fonts
+to get a PDF file with a good quality.
+\end{itemize}
+
+\subsection{Transformation into a readable text}
+A DVI file can be transformed into a readable text and this readable
+text can be re-converted to a DVI file which may be edited if nessesary.
+For example, some pages of a DVI file are transformed into a readable text
+by {\tt [\b{O}ption $\to$ Choose \b{P}arameters]}
+with the selection of {\tt [Show Codes of some pages of DVI file]}.
+
+A readable text with DLT format can be converted into a DVI file.
+See {\tt dvispc.txt} for more details.
+
+\subsection{Output informations}
+{\tt dviout} can output several informations related to a DVI file or the
+environment to preview it.
+Most of them can be obtained from the {\tt Help} on the menu bar.
+They are displayed in the information Window and can be edited and copied to
+the clipboard.
+Here some ones are picked up:
+
+\begin{itemize}
+\item
+{\bf Parameters}: One gets the list of parameters controlling {\tt dviout} by
+{\tt[\b{H}elp $\to$ \href{dviout:HP}{\b{P}arameters}]},
+the current values of parameters by
+{\tt[\b{O}ption $\to$ \b{A}ll Parameters]} and their non-default values
+by {\tt[\b{O}ption $\to$ Non-\b{d}efault Parameters]}.
+
+\item
+{\bf Font}: Clicking the left button on the mouse with pushing {\tt[CTRL]} and
+{\tt[SHIFT]} keys, one gets the informations (such as the position in
+a sheet, the position in the DVI file, the size and the font used) on the
+pointed character.
+{\tt[\b{H}elp $\to$ Other \b{I}nfo $\to$ \href{dviout:HF}{\b{F}ont Info.}]}
+gives the information of the fonts used in the DVI file.
+
+\item
+{\bf System Information}:
+{\tt[\b{H}elp $\to$ \href{dviout:HS}{\b{S}ystem Info.}]}
+gives the most basic information on the environment for
+the correct operation of {\tt dviout}.
+This information is important to analyze the problems appeared
+for the operation of {\tt dviout}.
+\end{itemize}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\section{Will be continued$\ldots$}
+
+\end{document}
diff --git a/Master/dviout/SAMPLE/sample.txt b/Master/dviout/SAMPLE/sample.txt
new file mode 100644
index 00000000000..ea17ecfe5f1
--- /dev/null
+++ b/Master/dviout/SAMPLE/sample.txt
@@ -0,0 +1,38 @@
+ Imbedding files in a dvi file
+
+ written by SHIMA, November 1999
+
+
+sample.dvi contains some graphic files.
+
+1. To list the graphic files, execute
+
+ > dviadd sample
+
+ in the command (MS-DOS) Window. To write the list in a file, execute
+
+ > dviadd sample > file.txt
+
+ dviout for Windows can list the files contained in the dvi file by
+ [Help -> Buffer Info].
+
+
+2. To extract the graphic files from sample.dvi, execute
+
+ > dviadd e sample
+
+
+3. To change sample.dvi which contains no graphic files, execute
+
+ > dviadd d sample
+
+ sample.dvi contains Japanese characters and the font data is embedded
+ in the DVI file as a file dviout.etf. It is extracted in the above.
+
+5. After making file.txt and extracting the graphic files, one can make
+ sample.dvi as follows.
+
+ > platex sample
+ > dviadd @file.txt sample
+
+ Here the part after the file name of each line in file.txt is ignored.
diff --git a/Master/dviout/SAMPLE/slisamp2.tex b/Master/dviout/SAMPLE/slisamp2.tex
new file mode 100644
index 00000000000..62bc9b478b8
--- /dev/null
+++ b/Master/dviout/SAMPLE/slisamp2.tex
@@ -0,0 +1,73 @@
+\documentclass{slides}
+\usepackage{graphicx, color, myhyper}
+\def\pause{\special{pause}}
+
+\paperwidth=10.24in
+\paperheight=7.68in
+\textwidth=9in
+\textheight=6.6in
+\voffset=-.9in
+\hoffset=-.48in
+
+\title{Presentation with dviout%
+\special{dviout `keep y}
+% 1024 x 768, general screen, cover sheet On, cover bottom, Presentation;
+% Fit
+\special{dviout -e=0 -y=XGAP !AN0N5NP!w!p;!bdf}
+\pagecolor[rgb]{1,1,0.8}% slightly yellow
+}
+\author{Toshio OSHIMA}
+\date{January 1, 2000}
+\pagestyle{plain}
+
+%%%%%% TEXT START %%%%%%
+\begin{document}
+\maketitle
+
+\begin{slide}
+\pagecolor[rgb]{1,1,0.8}%
+{\large \S0 Presentation by \TeX}
+
+Many technical documents including mathematical formulas are written by
+{\TeX} and they can be used for presentations by dviout for Windows.
+
+{\color{red} Use [Space] or the mouse with pressing its left button!}
+
+\pause
+Study the solution $u(x)$ of the Shr\"odinger equation
+\[
+ \left(-\frac12\sum_{1\le j\le n}\frac{\partial^2}{\partial x_j^2} + U(x)\right)u(x) = \lambda u(x)
+\]
+
+with the potential function
+
+\pause
+\[
+ U(x) = \sum_{1\le i < j\le n}\frac{C}{\sinh^2(x_i - x_j)}.
+\]
+
+\pause
+It can be written by Gauss hypergeometric function when $n=2$.
+\end{slide}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{slide}
+\pagecolor[rgb]{1,1,0.8}%
+One may try to present this document by a key or mouse operation.
+If it is displayed under a cover sheet,
+\begin{itemize}
+\item
+push [Space] key to proceed step by step,
+\item
+move the mouse under pushing its left button.
+\end{itemize}
+For this purpose, open \href{file:slisamp2.dvi}{slisamp2.dvi} (a sample
+with the slightly yellow background).
+
+Or open \href{file:slisamp3.dvi}{slisamp3.dvi} or \href{file:slisamp4.dvi}{slisamp4.dvi} (without the cover sheet).
+
+Otherwise jump to \href{file:sample.dvi}{sample.dvi}. % after 30 seconds.
+
+Note that the [ESC] key is the toggle switch between the presentation mode and
+the normal mode.
+\end{slide}
+\end{document}
diff --git a/Master/dviout/SAMPLE/slisamp3.tex b/Master/dviout/SAMPLE/slisamp3.tex
new file mode 100644
index 00000000000..20456d9af4a
--- /dev/null
+++ b/Master/dviout/SAMPLE/slisamp3.tex
@@ -0,0 +1,78 @@
+\documentclass{slides}
+\usepackage{graphicx, color, myhyper}
+%\def\pause{\special{pause}}
+\def\pause{}
+
+\paperwidth=10.24in
+\paperheight=7.68in
+\textwidth=9in
+\textheight=6.6in
+\voffset=-.9in
+\hoffset=-.48in
+
+\title{Presentation with dviout%
+\special{dviout `keep cmode}%
+% color(def), Draw Off, cover sheet Off, general screen, Presentation ;
+% Screen: 1024 x 768, Reverse ;
+% Draw On, Fit
+\special{dviout -cmode=2 !ANFN0!p; -e=0 -y=XGAP !v;!bdf}%
+\pagecolor{blue}%
+}
+\author{Toshio OSHIMA}
+\date{January 1, 2000}
+\pagestyle{plain}
+
+%%%%%% TEXT START %%%%%%
+\begin{document}
+\maketitle
+
+\begin{slide}
+\special{dviout `keep cmode}%% for non Presentation Mode
+\special{dviout -cmode=2 !G}%% for non Presentation Mode + ...
+\pagecolor{blue}%
+{\large \S0 Presentation by \TeX}
+
+Many technical documents including mathematical formulas are written by
+{\TeX} and they can be used for presentations by dviout for Windows.
+
+{\color{red} Use key ([Space] etc.) or mouse to scroll the screen!}
+
+\pause
+Study the solution $u(x)$ of the Shr\"odinger equation
+\[
+ \left(-\frac12\sum_{1\le j\le n}\frac{\partial^2}{\partial x_j^2} + U(x)\right)u(x) = \lambda u(x)
+\]
+
+with the potential function
+
+\pause
+\[
+ U(x) = \sum_{1\le i < j\le n}\frac{C}{\sinh^2(x_i - x_j)}.
+\]
+
+\pause
+It can be written by Gauss hypergeometric function when $n=2$.
+\end{slide}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{slide}
+\special{dviout !G}%
+\pagecolor[rgb]{0,0.3,0}%% to see the hot spot in non-revese mode
+One may try to present this document by a key or mouse operation.
+If it is displayed under a cover sheet,
+\begin{itemize}
+\item
+push [Space] key to proceed step by step,
+\item
+move the mouse under pushing its left button.
+\end{itemize}
+For this purpose, open \href{file:slisamp2.dvi}{slisamp2.dvi} (a sample
+with the slightly yellow background).
+
+Or open \href{file:slisamp3.dvi}{slisamp3.dvi} or \href{file:slisamp4.dvi}{slisamp4.dvi} (without the cover sheet).
+
+Otherwise jump to \href{file:sample.dvi}{sample.dvi}. % after 30 seconds.
+
+Note that the [ESC] key is the toggle switch between the presentation mode and
+the normal mode.
+\end{slide}
+\end{document}
diff --git a/Master/dviout/SAMPLE/slisamp4.tex b/Master/dviout/SAMPLE/slisamp4.tex
new file mode 100644
index 00000000000..a0e1c913803
--- /dev/null
+++ b/Master/dviout/SAMPLE/slisamp4.tex
@@ -0,0 +1,83 @@
+\documentclass{slides}
+\usepackage{graphicx, color, myhyper}
+\def\pause{\special{pause}}
+
+\paperwidth=10.24in
+\paperheight=7.68in
+\textwidth=9in
+\textheight=6.6in
+\voffset=-.9in
+\hoffset=-.48in
+
+\title{Presentation with dviout%
+\special{dviout `keep y}
+% 1024 x 768, general screen, cover sheet On, cover bottom, Presentation;
+% Fit
+\special{dviout -e=0 -y=XGAP !AN0!w!p;!b!0df}
+\pagecolor[rgb]{1,1,0.8}% slightly yellow
+}
+\author{Toshio OSHIMA}
+\date{January 1, 2000}
+\pagestyle{plain}
+
+%%%%%% TEXT START %%%%%%
+\begin{document}
+\maketitle
+
+\begin{slide}
+\pagecolor[rgb]{1,1,0.8}%
+{\large \S0 Presentation by \TeX}
+
+Many technical documents including mathematical formulas are written by
+{\TeX} and they can be used for presentations by dviout for Windows.
+
+{\color{red} Hit [Space] key!}
+\special{dviout `+5-}%
+{\color{red}($\Rightarrow$ next page)}
+
+\special{dviout `+1-}
+Study the solution $u(x)$ of the Shr\"odinger equation
+\[
+\left(-\frac12\sum_{1\le j\le n}\frac{\partial^2}{\partial x_j^2} +
+\special{dviout `+2,4}\special{color push Red}\special{dviout `+1-}
+U(x)
+\special{dviout `+2,4}\special{color pop}\special{dviout `+1-}
+\right)u(x) = \lambda u(x)
+\]
+
+with the potential function
+
+\special{dviout `+2-}
+\[
+ U(x) = \sum_{1\le i < j\le n}
+\special{dviout `+2-3}\makebox[0pt]{$\hspace*{3cm}\frac{C}{(x_i - x_j)^2.}$}
+\special{dviout `+4-}\frac{C}{\sinh^2(x_i - x_j)}.
+\]
+
+\special{dviout `+3,5-}
+It can be written by
+\rlap{\special{dviout `+5-}Gauss hypergeometric function when $n=2$.}%
+{\special{dviout `+3}Bessel function when $n=2$.}
+\end{slide}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{slide}
+\pagecolor[rgb]{1,1,0.8}%
+One may try to present this document by a key or mouse operation.
+If it is displayed under a cover sheet,
+\begin{itemize}
+\item
+push [Space] key to proceed step by step,
+\item
+move the mouse under pushing its left button.
+\end{itemize}
+For this purpose, open \href{file:slisamp2.dvi}{slisamp2.dvi} (a sample
+with the slightly yellow background).
+
+Or open \href{file:slisamp3.dvi}{slisamp3.dvi} (without the cover sheet).
+
+Otherwise jump to \href{file:sample.dvi}{sample.dvi}. % after 30 seconds.
+
+Note that the [ESC] key is the toggle switch between the presentation mode and
+the normal mode.
+\end{slide}
+\end{document}
diff --git a/Master/dviout/SAMPLE/slisampl.tex b/Master/dviout/SAMPLE/slisampl.tex
new file mode 100644
index 00000000000..0054eef5948
--- /dev/null
+++ b/Master/dviout/SAMPLE/slisampl.tex
@@ -0,0 +1,76 @@
+\documentclass{slides}
+\usepackage{graphicx, color, myhyper}
+\def\pause{\special{pause}}
+
+\paperwidth=10.24in
+\paperheight=7.68in
+\textwidth=9in
+\textheight=6.6in
+\voffset=-.9in
+\hoffset=-.48in
+
+\title{Presentation with dviout%
+% 1024 x 768, black screen, cover from bottom,
+% cover sheet On for Pause, Presentation ; Fit
+\special{dviout -e=0 -y=XGAP !AN2N5NP!p;!bdf}
+\special{dviout `timer 5000 je}% wait 5 sec go to the next page
+}
+\author{Toshio OSHIMA}
+\date{January 1, 2000}
+\pagestyle{plain}
+
+%%%%%% TEXT START %%%%%%
+\begin{document}
+\maketitle
+
+\begin{slide}
+\special{dviout `timer 5000 je}% wait 5 sec at the first pause
+\special{dviout `timer 5000 je}% wait 5 sec at the second pause
+\special{dviout `timer 5000 je}% wait 5 sec and display whole page
+\special{dviout `timer 5000 je}% wait 5 sec and go to the next page
+{\large \S0 Presentation by \TeX}
+
+Many technical documents including mathematical formulas are written using
+{\TeX} and they can be used for presentations by dviout for Windows.
+
+{\color{red} Wait without any key input!}
+
+\pause
+Study the solution $u(x)$ of the Shr\"odinger equation
+\[
+ \left(-\frac12\sum_{1\le j\le n}\frac{\partial^2}{\partial x_j^2} + U(x)\right)u(x) = \lambda u(x)
+\]
+
+with the potential function
+
+\pause
+\[
+ U(x) = \sum_{1\le i < j\le n}\frac{C}{\sinh^2(x_i - x_j)}.
+\]
+\pause
+
+It can be written by Gauss hypergeometric function when $n=2$.
+\end{slide}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{slide}
+% \special{dviout `timer 30000}
+% \special{dviout `href file:sample.dvi}
+One may try to present this document by a key or mouse operation.
+If it is displayed under a cover sheet,
+\begin{itemize}
+\item
+push [Space] key to proceed step by step,
+\item
+move the mouse under pushing its left button.
+\end{itemize}
+For this purpose, open \href{file:slisamp2.dvi}{slisamp2.dvi} (a sample
+with the slightly yellow background).
+
+Or open \href{file:slisamp3.dvi}{slisamp3.dvi} or \href{file:slisamp4.dvi}{slisamp4.dvi} (without the cover sheet).
+
+Otherwise jump to \href{file:sample.dvi}{sample.dvi}. % after 30 seconds.
+
+Note that the [ESC] key is the toggle switch between the presentation mode and
+the normal mode.
+\end{slide}
+\end{document}
diff --git a/Master/dviout/UTILITY/dvi$pdf.bat b/Master/dviout/UTILITY/dvi$pdf.bat
new file mode 100755
index 00000000000..819293c79bf
--- /dev/null
+++ b/Master/dviout/UTILITY/dvi$pdf.bat
@@ -0,0 +1 @@
+dvipdfmx -x %1 -y %2 -p %3,%4 -s %5 -o %6 %7
diff --git a/Master/dviout/UTILITY/dviout0.par b/Master/dviout/UTILITY/dviout0.par
new file mode 100644
index 00000000000..514702997da
--- /dev/null
+++ b/Master/dviout/UTILITY/dviout0.par
@@ -0,0 +1,22 @@
+; dviout for Windows95/NT
+dpi=300
+
+; TEXROOT=c:\tex\texmf\fonts
+TEXROOT=c:\wintex # substitute to ^r
+
+; PATH of PK files of usual fonts and jfm files of KANJI fonts
+; TEXPK=^r\gth\dpi^d^g^s.pk;^r\jfms\^s.tfm
+; TEXPK=^r\cmttf\^s.ttf;^r\jfms\^s.tfm
+TEXPK=^r\pk\^d\^s.pk;^r\jfms\^s.tfm
+
+vfn=^x\utility\dviout0.vfn # cannot use ^r
+
+; The following two lines are useful after correct instalation of KANJI FONTs
+; F=.!=.;cmr10.=.;cmr10.!
+; FB=3
+
+L=2 # use long filenames
+BMP=4 # scaled to 1/4 x 1/4
+log+ # open log file
+TEXFONTS=^r\tfms # directories for TFM/JFM files
+; ttf=1000
diff --git a/Master/dviout/UTILITY/dviout0.vfn b/Master/dviout/UTILITY/dviout0.vfn
new file mode 100644
index 00000000000..5684bd2d182
--- /dev/null
+++ b/Master/dviout/UTILITY/dviout0.vfn
@@ -0,0 +1,140 @@
+########################################################################
+# ベクトルフォント定義ファイル サンプル #
+########################################################################
+#
+# # で始まる行はコメント行です。不用であれば削除してください。
+#
+%version = 2
+# .vfn ファイルの整合性チェック用のバージョン番号です。
+# dviout/dviprt 本体で使用するバージョン番号と合わせてください。
+# 2.43 現在では `2' を指定します。
+#
+%vfont_list
+# ベクトルフォント定義部
+# 1) Font No. の指定 1 から 16 で指定する。
+# 2) ベクトルフォントのパスを記述する。拡張子は付けないでおくこと。
+# 先頭に ^w をつけると、それは Windows のシステムディレクトリを
+# 表す(dviout for Windows)。
+# Windows95/NT で、WinAPI によってフォントを取得する場合は、フォン
+# ト名を " " で囲んで指定する。縦書きフォントは先頭に、@ をつけて
+# 指定する。
+# 3) w_adj フォントサイズの幅の補正倍率 w_adj/1000。(省略可)
+# 200 - 2000(デフォルト 1000)
+# 4) h_adj フォントサイズの高さの補正倍率 h_adj /1000。(省略可)
+# 200 - 2000(デフォルト 1000)
+# 5) 第2水準の文字を使わないのであれば、no vf2に1を設定する。(省略可)
+# (デフォルト 0)
+#
+# ','が項目間区切りになるので、忘れないように!
+#
+# Vec Font No. Vector Font Name w_adj h_adj no vf2
+#-------------+----------------------------------+-----+-----+------
+# 1, b:\vector\明朝, 1000, 1000, 0
+# 2, b:\vector\ゴシック, 1000, 1000, 0
+# 3,
+# 4,
+# 5,
+#
+# JG Font の例
+# 1, b:\vector\zmin0by, 1000, 1000, 0
+# 2, b:\vector\zkgo0by, 1000, 1000, 0
+#
+# Microsoft Windows TrueType Font の例
+# 1, ^w\fonts\msmincho, 1060, 1120, 0
+# 2, ^w\fonts\msgothic, 1060, 1120, 0
+#
+# Microsoft Windows TrueType Font (Windows95 WinAPI) の例
+1, "MS 明朝", 1000, 1000, 0
+2, "MS ゴシック", 1000, 1000, 0
+3, "@MS 明朝", 1000, 1000, 0
+4, "@MS ゴシック", 1000, 1000, 0
+#
+# Windows TrueType Font for Euroean Language
+ 5, "cmr10"
+# 6, "cmr8"
+#
+%jfm_list
+# JFMファイル定義部 使用するフォントのパラメータを記述する。
+#
+# 1) JFM name
+# JFM ファイル名。末尾のポイント数を示す数字を除いたもの
+# ex. min10.tfm -> min goth10.tfm -> goth
+# 2) Vec Font
+# 使用するベクトルフォントの番号
+# 3) 長体/平体の定義
+# 4) 斜体の定義
+# 5) Draw sw
+# 描画方法の指定
+# [標準モード][精細モード]
+# f -> "fill edge" 中身を塗りつぶす描画方法
+# o -> "trace outline" 縁をなぞる。
+# n -> f + o
+# [精細モード]
+# n,fの後ろにドット数を指定すると、そのドット幅より小さいフォント
+# では、精細モードになる 。
+# ex. n24 1 - 24 dot => 精細モード
+# 25 dot 以上 => 標準モード
+# 6) thin:
+# tpic標準モード & 精細モード :フォント描画の、塗りつぶし
+# not tpic標準モード :フォント描画の線幅調整
+# xfat :精細モードによるフォント描画の、線幅調整(x方向)
+# yfat :精細モードによるフォント描画の、線幅調整(y方向)
+# 項目間区切りは';'
+# 7) novec
+# ベクトルフォントを使用しないドットサイズを記述
+# ';'で区切って複数指定可能
+# 8) f_goth
+# 擬似ゴシックの指定
+# 0 または 空 で goth または -G で指定の tfm 名が擬似ゴシックになる
+# 1 で、擬似ゴシックの処理を禁止
+# 2 で、擬似ゴシックの処理
+# 9) rot
+# フォントの回転
+# 0 or 無指定: 上向き 1: 右向き 2: 下向き 3: 左向き
+#
+#
+# 5), 6), 7) は、Windows95/NT での WinAPI によるフォントの場合は、
+# 意味を持たないので、thin, xfat, yfat に別の意味を持たせていある。
+# xfat: 行の向き方向の位置の調整
+# yfat: base line の位置を調整する
+# これら 1000 がフォントのボックスサイズにあたる。
+# -2000 から 2000 の値が可能
+# thin: 欧文TrueTypeフォントの場合のコード表
+# 0: BaKoMa Fonts 1: Impress's Fonts for WinTeX 2: same as TeX
+#
+# Vec 長 thin
+# JFM Font / 斜 Draw xfat
+# name No. 平 sw yfat novec f_goth rot
+#--------+----+--+--+----+--------+-------+------+-----
+ min, 1, a, a, n200, 100;0;0, , , 0
+ goth, 2, a, a, n200, 100;0;0, , 1, 0
+ tmin, 3, a, a, n200, 100;0;0, , , 1
+ tgoth, 4, a, a, n200, 100;0;0, , 1, 1
+ default, 1, a, b, n, 0;0;0, , 1, 0
+ tdefault, 3, a, b, n, 0;0;0, , 1, 1
+# ztminmaa, 1, a, a, n200, 100;0;0, , , 0
+# ztminmba, 1, b, a, n200, 100;0;0, , , 0
+# ztminmca, 1, c, a, n200, 100;0;0, , , 0
+# ztminmda, 1, d, a, n200, 100;0;0, , , 0
+# ztminmea, 1, e, a, n200, 100;0;0, , , 0
+# ztminmga, 1, g, a, n200, 100;0;0, , , 0
+# ztminmha, 1, h, a, n200, 100;0;0, , , 0
+# ztminmia, 1, i, a, n200, 100;0;0, , , 0
+# ztminmja, 1, j, a, n200, 100;0;0, , , 0
+# ztminmab, 1, a, b, n200, 100;0;0, , , 0
+# ztminmac, 1, a, c, n200, 100;0;0, , , 0
+# ztminmad, 1, a, d, n200, 100;0;0, , , 0
+# ztminmae, 1, a, e, n200, 100;0;0, , , 0
+# ztminmaf, 1, a, f, n200, 100;0;0, , , 0
+# ztminmag, 1, a, g, n200, 100;0;0, , , 0
+# ztminmah, 1, a, h, n200, 100;0;0, , , 0
+# ztminmai, 1, a, i, n200, 100;0;0, , , 0
+# ztminmaj, 1, a, j, n200, 100;0;0, , , 0
+# ztminmak, 1, a, k, n200, 100;0;0, , , 0
+# ztminmal, 1, a, l, n200, 100;0;0, , , 0
+# ztminmam, 1, a, m, n200, 100;0;0, , , 0
+#
+# Europian Language TrueType font
+ edefault, 5, a, a, n, 0;0;0, , 1, 0
+#
+#end of dviout.vfn
diff --git a/Master/dviout/UTILITY/dviout1.vfn b/Master/dviout/UTILITY/dviout1.vfn
new file mode 100644
index 00000000000..308fb92dff0
--- /dev/null
+++ b/Master/dviout/UTILITY/dviout1.vfn
@@ -0,0 +1,153 @@
+########################################################################
+# ベクトルフォント定義ファイル サンプル #
+########################################################################
+#
+# # で始まる行はコメント行です。不用であれば削除してください。
+#
+%version = 2
+# .vfn ファイルの整合性チェック用のバージョン番号です。
+# dviout/dviprt 本体で使用するバージョン番号と合わせてください。
+# 2.43 現在では `2' を指定します。
+#
+%vfont_list
+# ベクトルフォント定義部
+# 1) Font No. の指定 1 から 256 で指定する。
+# 2) ベクトルフォントのパスを記述する。拡張子は付けないでおくこと。
+# 先頭に ^w をつけると、それは Windows のシステムディレクトリを
+# 表す(dviout for Windows)。
+# Windows95/NT で、WinAPI によってフォントを取得する場合は、フォン
+# ト名を " " で囲んで指定する。縦書きフォントは先頭に、@ をつけて
+# 指定する。
+# 3) w_adj フォントサイズの幅の補正倍率 w_adj/1000。(省略可)
+# 200 - 2000(デフォルト 1000)
+# 4) h_adj フォントサイズの高さの補正倍率 h_adj /1000。(省略可)
+# 200 - 2000(デフォルト 1000)
+# 5) 第2水準の文字を使わないのであれば、no vf2に1を設定する。(省略可)
+# (デフォルト 0)
+#
+# ','が項目間区切りになるので、忘れないように!
+#
+# Vec Font No. Vector Font Name w_adj h_adj no vf2
+#-------------+----------------------------------+-----+-----+------
+# 1, c:\vector\明朝, 1000, 1000, 0
+# 2, c:\vector\ゴシック, 1000, 1000, 0
+# 3,
+# 4,
+# 5,
+#
+# JG Font の例
+# 1, c:\vector\zmin0by, 1000, 1000, 0
+# 2, c:\vector\zkgo0by, 1000, 1000, 0
+#
+#
+# Microsoft Windows TrueType Font の例
+# ^w means Window's system directory
+# Require *.tti files by the command
+# ttindex c:\windows\fonts\msmincho
+# This makes msmincho.tti from msmincho.ttf or msmincho.ttc
+ 1, ^w\fonts\msmincho, 1060, 1120, 0
+ 2, ^w\fonts\msgothic, 1060, 1120, 0
+#
+# In case of GT font
+# 1. ^w\fonts\gt20001, 1060, 1120, 0
+#
+# Microsoft Windows TrueType Font (Windows95 WinAPI) の例
+#1, "MS 明朝", 1000, 1000, 0
+#2, "MS ゴシック", 1000, 1000, 0
+#3, "@MS 明朝", 1000, 1000, 0
+#4, "@MS ゴシック", 1000, 1000, 0
+#
+#
+# Windows TrueType Font for Euroean Language
+ 3, "cmr10"
+# 4, "cmr8"
+#
+%jfm_list
+# JFMファイル定義部 使用するフォントのパラメータを記述する。
+#
+# 1) JFM name
+# JFM ファイル名。末尾のポイント数を示す数字を除いたもの
+# ex. min10.tfm -> min goth10.tfm -> goth
+# 2) Vec Font
+# 使用するベクトルフォントの番号
+# 3) 長体/平体の定義
+# 4) 斜体の定義
+# 5) Draw sw
+# 描画方法の指定
+# [標準モード][精細モード]
+# f -> "fill edge" 中身を塗りつぶす描画方法
+# o -> "trace outline" 縁をなぞる。
+# n -> f + o
+# [精細モード]
+# n,fの後ろにドット数を指定すると、そのドット幅より小さいフォント
+# では、精細モードになる 。
+# ex. n24 1 - 24 dot => 精細モード
+# 25 dot 以上 => 標準モード
+# 6) thin:
+# tpic標準モード & 精細モード :フォント描画の、塗りつぶし
+# not tpic標準モード :フォント描画の線幅調整
+# xfat :精細モードによるフォント描画の、線幅調整(x方向)
+# yfat :精細モードによるフォント描画の、線幅調整(y方向)
+# 項目間区切りは';'
+# 7) novec
+# ベクトルフォントを使用しないドットサイズを記述
+# ';'で区切って複数指定可能
+# 8) f_goth
+# 擬似ゴシックの指定
+# 0 または 空 で goth または -G で指定の tfm 名が擬似ゴシックになる
+# 1 で、擬似ゴシックの処理を禁止
+# 2 で、擬似ゴシックの処理
+# 9) rot
+# フォントの回転
+# 0 or 無指定: 上向き 1: 右向き 2: 下向き 3: 左向き
+#
+#
+# 5), 6), 7) は、Windows95/NT での WinAPI によるフォントの場合は、
+# 意味を持たないので、thin, xfat, yfat に別の意味を持たせていある。
+# xfat: 行の向き方向の位置の調整
+# yfat: base line の位置を調整する
+# これら 1000 がフォントのボックスサイズにあたる。
+# -2000 から 2000 の値が可能
+# thin: 欧文TrueTypeフォントの場合のコード表
+# 0: BaKoMa Fonts 1: Impress's Fonts for WinTeX 2: same as TeX
+#
+# Vec 長 thin
+# JFM Font / 斜 Draw xfat
+# name No. 平 sw yfat novec f_goth rot
+#--------+----+--+--+----+--------+-------+------+-----
+ min, 1, a, a, n200, 100;0;0, , , 0
+ goth, 2, a, a, n200, 100;0;0, , 1, 0
+ tmin, 1, a, a, n200, 100;0;0, , , 1
+ tgoth, 2, a, a, n200, 100;0;0, , 1, 1
+ jis, 1, a, a, n200, 100;0;0, , , 0
+ jisg, 2, a, a, n200, 100;0;0, , 1, 0
+ jis-v, 1, a, a, n200, 100;0;0, , , 1
+ jisg-v, 2, a, a, n200, 100;0;0, , 1, 1
+ default, 1, a, b, n, 0;0;0, , 1, 0
+ tdefault, 1, a, b, n, 0;0;0, , 1, 1
+# ztminmaa, 1, a, a, n200, 100;0;0, , , 0
+# ztminmba, 1, b, a, n200, 100;0;0, , , 0
+# ztminmca, 1, c, a, n200, 100;0;0, , , 0
+# ztminmda, 1, d, a, n200, 100;0;0, , , 0
+# ztminmea, 1, e, a, n200, 100;0;0, , , 0
+# ztminmga, 1, g, a, n200, 100;0;0, , , 0
+# ztminmha, 1, h, a, n200, 100;0;0, , , 0
+# ztminmia, 1, i, a, n200, 100;0;0, , , 0
+# ztminmja, 1, j, a, n200, 100;0;0, , , 0
+# ztminmab, 1, a, b, n200, 100;0;0, , , 0
+# ztminmac, 1, a, c, n200, 100;0;0, , , 0
+# ztminmad, 1, a, d, n200, 100;0;0, , , 0
+# ztminmae, 1, a, e, n200, 100;0;0, , , 0
+# ztminmaf, 1, a, f, n200, 100;0;0, , , 0
+# ztminmag, 1, a, g, n200, 100;0;0, , , 0
+# ztminmah, 1, a, h, n200, 100;0;0, , , 0
+# ztminmai, 1, a, i, n200, 100;0;0, , , 0
+# ztminmaj, 1, a, j, n200, 100;0;0, , , 0
+# ztminmak, 1, a, k, n200, 100;0;0, , , 0
+# ztminmal, 1, a, l, n200, 100;0;0, , , 0
+# ztminmam, 1, a, m, n200, 100;0;0, , , 0
+#
+# Europian Language TrueType font
+ edefault, 3, a, a, n, 0;0;0, , 1, 0
+#
+#end of dviout.vfn
diff --git a/Master/dviout/UTILITY/dvioute.vfn b/Master/dviout/UTILITY/dvioute.vfn
new file mode 100644
index 00000000000..a91b49aab4a
--- /dev/null
+++ b/Master/dviout/UTILITY/dvioute.vfn
@@ -0,0 +1,137 @@
+########################################################################
+# A sample of the definition of vector fonts
+########################################################################
+#
+# The lines starting by # are ignored
+#
+%version = 2
+# Versiong number of .vfn file
+#
+%vfont_list
+# Definition of Vector Fonts
+# 1) Font No. : From 1 up to 256(max)
+# 2) Path of vector fonts without extension
+# If WinAPI of Japanese Windows95/NT is used, indicate font name by
+# using the double quatations " " and moreover put @ at the top of
+# the font name for vertical writing
+# 3) w_adj Adjusting ratio is w_adj/1000 for width (may be omitted)
+# 200 - 2000(deault: 1000)
+# 4) h_adj Adjusting ratio is h_adj/1000 for height (may be omitted)
+# 200 - 2000(default: 1000)
+# 5) Set 1 if the characters in the second level are not used (may be
+# omitted, default 0)
+#
+# ','is used for separations between items
+#
+# Vec Font No. Vector Font Name w_adj h_adj no vf2
+#-------------+----------------------------------+-----+-----+------
+# 1, b:\vector\明朝, 1000, 1000, 0
+# 2, b:\vector\ゴシック, 1000, 1000, 0
+# 3,
+# 4,
+# 5,
+#
+# JG Font
+# 1, b:\vector\zmin0by, 1000, 1000, 0
+# 2, b:\vector\zkgo0by, 1000, 1000, 0
+#
+# Microsoft Windows TrueType Font under non-Japanese Windows95/NT
+# ^w: Windows system directory
+# ^x: directory of dviout
+# 1, c:\windows\fonts\msmincho, 1060, 1120, 0
+ 2, c:\windows\fonts\msgothic, 1060, 1120, 0
+#
+# Microsoft Windows TrueType Font under Japanese Windows95/NT WinAPI
+# 1, "MS 明朝", 1000, 1000, 0
+# 2, "MS ゴシック", 1000, 1000, 0
+# 3, "@MS 明朝", 1000, 1000, 0
+# 4, "@MS ゴシック", 1000, 1000, 0
+#
+#
+# TrueType Fonts for European Languages
+ 1, "cmr10"
+# 2, "cmr8"
+#
+%jfm_list
+# Definiton of JFM files and the parameters to use them
+#
+# 1) JFM name
+# Filename of JFM file excluding point number at the tail
+# ex. min10.tfm -> min goth10.tfm -> goth
+# 2) Vec Font
+# Number of vector font to use
+# 3) Long face/Flat face
+# 4) Slanted face
+# 5) Draw sw
+# Way of drawing
+# [Nomal mode][Fine mode]
+# f -> "fill edge"
+# o -> "trace outline"
+# n -> f + o
+# [Fine mode]
+# If a number is indicated after n,f, the fonts with the width by
+# smaller than the number will be created under File mode
+# ex. n24 1 - 24 dot => Fine mode
+# >= 25 dot => Normal mode
+# 6) thin:
+# tpic normal mode & fine mode : adjustment to fill edge
+# not tpic normal mode : adjustment of the width of lines
+# xfat : adjustment of the width of lines in horizontal direction
+# yfat : adjustment of the width of lines in vertical direction
+# The separater is ';'
+# 7) novec
+# If fonts with some size are not used by the definition here, indicate
+# their size by dots separated by ';'
+# 8) f_goth
+# poor man's gothic
+# 0 or void: Use it for the fonts goth or the ones indicated by -G:
+# 1: stop using poor man's gothic
+# 2: use poor man's gothic
+# 9) rot
+# rotation of fonts
+# 0 or void: up 1: right 2: down 3: left
+#
+#
+# 5), 6), 7) have no meaning for fonts using WinAPI under Windows95/NT
+# They have different meaning as follows
+# xfat: adjusting the position parallel to baseline
+# yfat: adjusting the position of baseline
+# 1000 corresponds to the box size of a character(possible from
+# -2000 to 2000)
+# thin: code table
+# 0: BaKoMa fonts 1: Impress's Fonts for WinTeX 2: same as in TeX
+#
+# Vec long thin
+# JFM Font /slant Draw xfat
+# name No. flat sw yfat novec f_goth rot
+#--------+----+--+--+----+--------+-------+------+-----
+ min, 2, a, a, n200, 100;0;0, , , 0
+ goth, 2, a, a, n200, 100;0;0, , 1, 0
+ tmin, 2, a, a, n200, 100;0;0, , , 1
+ tgoth, 2, a, a, n200, 100;0;0, , 1, 1
+# ztminmaa, 1, a, a, n200, 100;0;0, , , 0
+# ztminmba, 1, b, a, n200, 100;0;0, , , 0
+# ztminmca, 1, c, a, n200, 100;0;0, , , 0
+# ztminmda, 1, d, a, n200, 100;0;0, , , 0
+# ztminmea, 1, e, a, n200, 100;0;0, , , 0
+# ztminmga, 1, g, a, n200, 100;0;0, , , 0
+# ztminmha, 1, h, a, n200, 100;0;0, , , 0
+# ztminmia, 1, i, a, n200, 100;0;0, , , 0
+# ztminmja, 1, j, a, n200, 100;0;0, , , 0
+# ztminmab, 1, a, b, n200, 100;0;0, , , 0
+# ztminmac, 1, a, c, n200, 100;0;0, , , 0
+# ztminmad, 1, a, d, n200, 100;0;0, , , 0
+# ztminmae, 1, a, e, n200, 100;0;0, , , 0
+# ztminmaf, 1, a, f, n200, 100;0;0, , , 0
+# ztminmag, 1, a, g, n200, 100;0;0, , , 0
+# ztminmah, 1, a, h, n200, 100;0;0, , , 0
+# ztminmai, 1, a, i, n200, 100;0;0, , , 0
+# ztminmaj, 1, a, j, n200, 100;0;0, , , 0
+# ztminmak, 1, a, k, n200, 100;0;0, , , 0
+# ztminmal, 1, a, l, n200, 100;0;0, , , 0
+# ztminmam, 1, a, m, n200, 100;0;0, , , 0
+#
+# Europian Language TrueType font
+ edefault, 2, a, a, n, 0;0;0, , 1, 0
+#
+#end of dvioute.vfn
diff --git a/Master/dviout/UTILITY/null.vfn b/Master/dviout/UTILITY/null.vfn
new file mode 100644
index 00000000000..00ba3dc5c09
--- /dev/null
+++ b/Master/dviout/UTILITY/null.vfn
@@ -0,0 +1 @@
+%version = 2
diff --git a/Master/dviout/UTILITY/template b/Master/dviout/UTILITY/template
new file mode 100644
index 00000000000..f7b4bd45fb8
--- /dev/null
+++ b/Master/dviout/UTILITY/template
@@ -0,0 +1,88 @@
+# GEN_FONT.BAT作成用テンプレート サンプル
+# By 八雲 1994/5/15
+# modified by SHIMA 1996/12/27
+#
+# auto=no
+#
+# Printer's dpi
+#
+extra_size=360
+#
+#
+# Temporary batch-file name
+#
+gen_tmp=a:\gen_tmp.bat
+#
+#
+# Batch-file name for ungenerated fonts
+#
+gen_font=a:\gen_font.bat
+#
+#
+#### METAFONT \mode name definitions
+#
+# Atari 96x96 previewer
+mode_name=96:atarins
+#
+# BBN Bitgraph at 118dpi
+mode_name=118:bitgraph
+#
+# Epson LQ-500, 180x180dpi
+mode_name=180:lqlores
+#
+# Canon LBP-10
+mode_name=240:canonlbp
+#
+# Canon CX, SX, LBP-LX
+mode_name=300:CanonCX
+#
+# Epson Action Laser
+#mode_name=300:epsonact
+#
+# Canon BubbleJet 10ex
+mode_name=360:bjtenex
+#
+# Sun SPARCprinter
+mode_name=400:sparcptr
+#
+# NeXT 400dpi, Newgen
+#mode_name=400:nexthi
+#
+# CanonEX in LaserWriter Pro 630
+mode_name=600:canonex
+#
+#
+%1st
+#
+echo off
+#
+%2nd
+#
+# ^s METAFONT source file name (font name)
+# ^m font magnification
+# ^d font size ( dpi x magnification )
+# ^D dpi
+# ^e font extra_size
+# ^n METAFONT mode name
+# ^N METAFONT mode name for extra_size
+#
+REM For ^D dpi
+REM
+virmf &cmmf \mode=^n; mag=^m; nonstopmode; input ^s
+if not exist ^s.^dgf goto err
+gftopk ^s.^dgf ^s.pk
+gather -abi a:\tex\pkfont\dpi^d.gth ^s.pk
+del ^s.^dgf
+del ^s.pk
+#del ^s.log
+#
+#
+%3rd
+#
+copy *.tfm a:\tex\tfm
+del *.tfm
+echo *** Fonts generated! ***
+goto exit
+:err
+echo *** Failure! ***
+:exit
diff --git a/Master/dviout/UTILITY/template.pk0 b/Master/dviout/UTILITY/template.pk0
new file mode 100644
index 00000000000..10f52b56c94
--- /dev/null
+++ b/Master/dviout/UTILITY/template.pk0
@@ -0,0 +1,13 @@
+# GEN_FONT.BAT作成用テンプレート サンプル(for MakeTeXPK)
+# By 八雲 1994/ 5/15
+# modified by SHIMA 1996/12/27
+#
+%1st
+%2nd
+#
+# ex. MakeTeXPK ^s ^d ^D ^d/^D CanonCX
+#
+# The next uses the default defined by MAKETEXPK_MODE_... in texmf.cnf
+#
+MakeTeXPK ^s ^d ^D ^d/^D
+%3rd
diff --git a/Master/dviout/UTILITY/template.pks b/Master/dviout/UTILITY/template.pks
new file mode 100644
index 00000000000..73d739cf879
--- /dev/null
+++ b/Master/dviout/UTILITY/template.pks
@@ -0,0 +1,83 @@
+# GEN_FONT.BAT作成用テンプレート サンプル(for MakeTeXPK)
+# By 八雲 1994/ 5/15
+# modified by SHIMA 1996/12/27
+# modified by Otobe 1997/11/ 3
+#
+# auto=no
+# extra_size=180
+#
+# Temporary batch-file name
+# gen_tmp=gen_tmp.bat
+#
+#
+# Batch-file name for ungenerated fonts
+# gen_font=gen_font.bat
+#
+#
+#### METAFONT \mode name definitions
+#
+# Atari 96x96 previewer
+mode_name=96:atarins
+#
+# BBN Bitgraph at 118dpi
+mode_name=118:bitgraph
+#
+# NEC PC-PR201 series
+mode_name=160:nectzo
+#
+# Epson LQ-500, 180x180dpi
+mode_name=180:lqlores
+#
+# 204 x 196 G3fax
+mode_name=204:gtfax
+#
+# 204 x 196 G3fax landscape
+mode_name=196:gtfaxl
+#
+# 200 x 200 G3FAX
+mode_name=200:highfax
+#
+# Canon LBP-10
+mode_name=240:canonlbp
+#
+# Canon CX, SX, LBP-LX, HP Laserjet(Plus), LaserWrite Plus, QMS 410
+mode_name=300:CanonCX
+#
+# Epson Action Laser
+#mode_name=300:epsonact
+#
+# NEC PC-PR406LM
+mode_name=320:neclm
+#
+# Canon BubbleJet 10ex
+mode_name=360:bjtenex
+#
+# NeXT 400dpi, Newgen
+mode_name=400:nexthi
+#
+# Sun SPARCprinter
+# mode_name=400:sparcptr
+#
+# CanonEX in LaserWriter Pro 630
+mode_name=600:canonex
+#
+# HP LaserJet 4, QMS-860
+#mode_name=600:ljfour
+#
+# Ultre*setter (1200dpi)
+mode_name=1200:ultre
+#
+# Ultre*setter (2400dpi)
+mode_name=2400:supre
+#
+%1st
+%2nd
+#
+# ^s METAFONT source file name (font name)
+# ^d font size ( dpi x magnification )
+# ^D dpi
+# ^n METAFONT mode name
+#
+MakeTeXPK ^s ^d ^D ^d/^D ^n
+# mktexpk --dpi ^d --bdpi ^D --mag ^M --mfmode ^n ^s
+%3rd
diff --git a/Master/dviout/UTILITY/test_a4.tex b/Master/dviout/UTILITY/test_a4.tex
new file mode 100644
index 00000000000..5c434645eed
--- /dev/null
+++ b/Master/dviout/UTILITY/test_a4.tex
@@ -0,0 +1,118 @@
+% testpage.tex - created 20 July 1987
+% Copyright (C) 1987 by Leslie Lamport
+%
+% Test of how accurately printer reproduces dimensions specified
+% by LaTeX output.
+%
+% Revised by Stephen Gildea to:
+% make 10 tic marks instead of 9
+% add a long rule through the tics to show the exact edge of the paper
+% short tics on right-hand ruler positioned correctly
+% some comments added.
+%
+% Modified by SHIMA for A4 size (210mm x 297mm)
+% comments are in Japanese.
+% The original file_name is "testpage.tex" is changed to "test_a4.tex"
+% to avoid confusion.
+% Translated into English by Kohsaku HOTTA in 22 Dec 1999.
+% The file_name is changed to "test_a4e.tex".
+
+\documentclass{article}
+\pagestyle{empty}
+
+\setlength{\oddsidemargin}{0pt}
+\setlength{\evensidemargin}{0pt}
+\setlength{\marginparwidth}{1in}
+\setlength{\marginparsep}{0pt}
+
+\setlength{\topmargin}{0pt}
+\setlength{\headheight}{0pt}
+\setlength{\headsep}{0pt}
+\setlength{\topskip}{0pt}
+
+\setlength{\footskip}{0pt}
+
+%\setlength{\textheight}{9.5in}
+\setlength{\textheight}{9.69291in}
+
+%\setlength{\textwidth}{6.5in}
+\setlength{\textwidth}{6.26772in}
+
+\setlength{\unitlength}{1in}
+\newcounter{foo}
+
+\begin{document}
+\parindent 0pt
+\begin{picture}(0,0)
+\scriptsize
+%\put(0,-9){\framebox(6.5,9){}}
+\put(0,-9.69291){\framebox(6.26772,9.69291){}}
+% left ruler
+%\put(0,-4.5){\line(-1,0){2.5}}
+\put(0,-4.84645){\line(-1,0){2.5}}
+%\multiput(-.1,-4.6)(-.1,0){10}{\line(0,1){.2}}
+\multiput(-.1,-4.94645)(-.1,0){10}{\line(0,1){.2}}
+%\multiput(-.05,-4.55)(-.1,0){10}{\line(0,1){.1}}
+\multiput(-.05,-4.89645)(-.1,0){10}{\line(0,1){.1}}
+%\setcounter{foo}{1}\multiput(-.1,-4.35)(-.1,0){9}{\makebox
+% (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\setcounter{foo}{1}\multiput(-.1,-4.69645)(-.1,0){9}{\makebox
+ (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+% right ruler
+%\put(6.5,-4.5){\line(1,0){2.5}}
+\put(6.26772,-4.84645){\line(1,0){2.5}}
+%\multiput(6.6,-4.6)(.1,0){10}{\line(0,1){.2}}
+\multiput(6.36772,-4.94645)(.1,0){10}{\line(0,1){.2}}
+%\multiput(6.55,-4.55)(.1,0){10}{\line(0,1){.1}}
+\multiput(6.31772,-4.89645)(.1,0){10}{\line(0,1){.1}}
+%\setcounter{foo}{1}\multiput(6.36772,-4.35)(.1,0){9}{\makebox
+% (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\setcounter{foo}{1}\multiput(6.36772,-4.69645)(.1,0){9}{\makebox
+ (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+% top ruler
+%\put(3.25,0){\line(0,1){2.5}}
+\put(3.12386,0){\line(0,1){2.5}}
+%\multiput(3.15,.1)(0,.1){10}{\line(1,0){.2}}
+\multiput(3.02386,.1)(0,.1){10}{\line(1,0){.2}}
+%\multiput(3.2,.05)(0,.1){10}{\line(1,0){.1}}
+\multiput(3.07684,.05)(0,.1){10}{\line(1,0){.1}}
+%\setcounter{foo}{1}\multiput(3.4,.1)(0,.1){9}{\makebox
+% (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\setcounter{foo}{1}\multiput(3.27386,.1)(0,.1){9}{\makebox
+ (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+
+% bottom ruler
+%\put(3.25,-9.69291){\line(0,-1){2.5}}
+\put(3.12386,-9.69291){\line(0,-1){2.5}}
+%\multiput(3.15,-9.79291)(0,-.1){10}{\line(1,0){.2}}
+\multiput(3.02386,-9.79291)(0,-.1){10}{\line(1,0){.2}}
+%\multiput(3.2,-9.74291)(0,-.1){10}{\line(1,0){.1}}
+\multiput(3.07684,-9.74291)(0,-.1){10}{\line(1,0){.1}}
+%\setcounter{foo}{1}\multiput(3.4,-9.79291)(0,-.1){9}{\makebox
+% (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\setcounter{foo}{1}\multiput(3.27386,-9.79291)(0,-.1){9}{\makebox
+ (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\end{picture}
+\vfill
+\mbox{}\hfill
+\begin{minipage}{4in}
+%The frame on this page should be $6\frac{1}{2}'' \times 9''$. When
+%printed on $8\frac{1}{2}'' \times 11''$ paper, the frame should be one
+%inch from each edge of the paper.\\[10pt]
+%The rulers at the four edges will indicate how much of the page is
+%useable. The large ticks are $.1''$ apart.
+%%%%%
+This frame size is $159.2{\rm mm}\ \times\ 246.2{\rm mm}$.
+When printed on A4 size paper,
+the frame should be one inch from each edge of the paper,
+where one inch is equal to 25.4{\rm mm}.\\
+Please control the top lefthand corner of this frame
+should be one inch from the left and top edges of the paper.\\
+The ticks of the rulers at the four edges are 0.1 inch apart.
+%%%%%
+\end{minipage}
+\hfill\mbox{}
+
+\vfill
+\mbox{}
+\end{document}
diff --git a/Master/dviout/UTILITY/test_b5.tex b/Master/dviout/UTILITY/test_b5.tex
new file mode 100644
index 00000000000..70e025a1633
--- /dev/null
+++ b/Master/dviout/UTILITY/test_b5.tex
@@ -0,0 +1,125 @@
+% testpage.tex - created 20 July 1987
+% Copyright (C) 1987 by Leslie Lamport
+%
+% Test of how accurately printer reproduces dimensions specified
+% by LaTeX output.
+%
+% Revised by Stephen Gildea to:
+% make 10 tic marks instead of 9
+% add a long rule through the tics to show the exact edge of the paper
+% short tics on right-hand ruler positioned correctly
+% some comments added
+%
+% Modified by Kohsaku HOTTA for B5 size (182mm x 257mm) in 15 July 1995
+% Comments are in Japanese
+% The original file_name is "testpage.tex" is changed to "test_b5.tex" to avoid
+% confusion.
+
+\documentstyle{jarticle}
+\pagestyle{empty}
+
+\oddsidemargin 0pt
+\evensidemargin 0pt
+\marginparwidth 1in
+\marginparsep 0pt
+
+\topmargin 0pt
+\headheight 0pt
+\headsep 0pt
+\topskip 0pt
+
+\footheight 0pt
+\footskip 0pt
+
+%\textheight 8.0in
+\textheight 8.11811in
+%\textwidth 5.0in
+\textwidth 5.16535in
+
+\setlength{\unitlength}{1in}
+\newcounter{foo}
+
+\begin{document}
+
+\parindent 0pt
+\begin{picture}(0,0)
+\scriptsize
+
+%\put(0,-8.0){\framebox(5.0,8.0){}}
+\put(0,-8.11811){\framebox(5.16535,8.11811){}}
+
+% LEFT RULER
+%\put(0,-4.0){\line(-1,0){2.5}}
+\put(0,-4.05906){\line(-1,0){2.5}}
+%\multiput(-.1,-4.1)(-.1,0){10}{\line(0,1){.2}}
+\multiput(-.1,-4.15906)(-.1,0){10}{\line(0,1){.2}}
+%\multiput(-.05,-4.05)(-.1,0){10}{\line(0,1){.1}}
+\multiput(-.05,-4.10906)(-.1,0){10}{\line(0,1){.1}}
+%\setcounter{foo}{1}\multiput(-.1,-3.85)(-.1,0){9}{\makebox
+% (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\setcounter{foo}{1}\multiput(-.1,-3.90906)(-.1,0){9}{\makebox
+ (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+
+% RIGHT RULER
+%\put(5.0,-4.0){\line(1,0){2.5}}
+\put(5.16535,-4.05906){\line(1,0){2.5}}
+%\multiput(5.1,-4.1)(.1,0){10}{\line(0,1){.2}}
+\multiput(5.26535,-4.15906)(.1,0){10}{\line(0,1){.2}}
+%\multiput(5.05,-4.05)(.1,0){10}{\line(0,1){.1}} %fixed mit-erl!gildea 13Feb86
+\multiput(5.21535,-4.10906)(.1,0){10}{\line(0,1){.1}}
+%\multiput(5.05,-4.05)(.1,0){10}{\line(0,1){.1}}
+%\setcounter{foo}{1}\multiput(5.1,-3.85)(.1,0){9}{\makebox
+% (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\multiput(5.21535,-4.10906)(.1,0){10}{\line(0,1){.1}}
+\setcounter{foo}{1}\multiput(5.26535,-3.90906)(.1,0){9}{\makebox
+ (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+
+% TOP RULER
+%\put(2.5,0){\line(0,1){2.5}}
+\put(2.58268,0){\line(0,1){2.5}}
+%\multiput(2.4,.1)(0,.1){10}{\line(1,0){.2}}
+\multiput(2.48268,.1)(0,.1){10}{\line(1,0){.2}}
+%\multiput(2.45,.05)(0,.1){10}{\line(1,0){.1}}
+\multiput(2.53268,.05)(0,.1){10}{\line(1,0){.1}}
+%\setcounter{foo}{1}\multiput(2.65,.1)(0,.1){9}{\makebox
+% (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\setcounter{foo}{1}\multiput(2.73268,.1)(0,.1){9}{\makebox
+ (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+
+% BOTTOM RULER
+%\put(2.5,-8.0){\line(0,-1){2.5}}
+\put(2.58268,-8.11811){\line(0,-1){2.5}}
+%\multiput(2.4,-8.1)(0,-.1){10}{\line(1,0){.2}}
+\multiput(2.48268,-8.21811)(0,-.1){10}{\line(1,0){.2}}
+%\multiput(2.45,-8.05)(0,-.1){10}{\line(1,0){.1}}
+\multiput(2.53263,-8.16811)(0,-.1){10}{\line(1,0){.1}}
+%\setcounter{foo}{1}\multiput(2.65,-8.1)(0,-.1){9}{\makebox
+% (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\setcounter{foo}{1}\multiput(2.73263,-8.21811)(0,-.1){9}{\makebox
+ (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+
+\end{picture}
+
+\vfill
+\mbox{}\hfill
+\begin{minipage}{3in}
+
+%The frame on this page should be $6\frac{1}{2}'' \times 9''$. When
+%printed on $8\frac{1}{2}'' \times 11''$ paper, the frame should be one
+%inch from each edge of the paper.\\[10pt]
+%The rulers at the four edges will indicate how much of the page is
+%useable. The large ticks are $.1''$ apart.
+
+この枠のサイズは、$131.2{\rm mm}\ \times\ 206.2{\rm mm}$ であり、
+B5 サイズの用紙に印刷した場合、紙の各辺から \\
+ 1 inch = 25.4 mm 内側に枠が位置するはずです。 \\
+枠の左上端が、紙の左上端から、右に 1 inch、下に 1 inch の
+ところに来るよう調整して下さい。\\
+端の目盛りは、1 が 0.1 inch に対応します。
+
+\end{minipage}
+\hfill\mbox{}
+\vfill
+\mbox{}
+
+\end{document}
diff --git a/Master/dviout/UTILITY/test_b5e.tex b/Master/dviout/UTILITY/test_b5e.tex
new file mode 100644
index 00000000000..50268d052df
--- /dev/null
+++ b/Master/dviout/UTILITY/test_b5e.tex
@@ -0,0 +1,121 @@
+% testpage.tex - created 20 July 1987
+% Copyright (C) 1987 by Leslie Lamport
+%
+% Test of how accurately printer reproduces dimensions specified
+% by LaTeX output.
+%
+% Revised by Stephen Gildea to:
+% make 10 tic marks instead of 9
+% add a long rule through the tics to show the exact edge of the paper
+% short tics on right-hand ruler positioned correctly
+% some comments added.
+%
+% Modified by Kohsaku HOTTA for B5E size (176mm x 250mm) in 22 Dec 1999.
+% The original file_name is "testpage.tex" is changed to "test_b5e.tex"
+% to avoid confusion.
+
+\documentclass{article}
+\pagestyle{empty}
+
+\setlength{\oddsidemargin}{0pt}
+\setlength{\evensidemargin}{0pt}
+\setlength{\marginparwidth}{1in}
+\setlength{\marginparsep}{0pt}
+
+\setlength{\topmargin}{0pt}
+\setlength{\headheight}{0pt}
+\setlength{\headsep}{0pt}
+\setlength{\topskip}{0pt}
+
+\setlength{\footskip}{0pt}
+
+%\setlength{\textheight}{8.0in}
+\setlength{\textheight}{7.84252in}
+
+%\setlength{\textwidth}{5.0in}
+\setlength{\textwidth}{4.92913in}
+
+\setlength{\unitlength}{1in}
+\newcounter{foo}
+
+\begin{document}
+
+\parindent 0pt
+\begin{picture}(0,0)
+\scriptsize
+
+%\put(0,-8.0){\framebox(5.0,8.0){}}
+\put(0,-7.84252){\framebox(4.92913,7.84252){}}
+
+% LEFT RULER
+%\put(0,-4.0){\line(-1,0){2.5}}
+\put(0,-3.92126){\line(-1,0){2.5}}
+%\multiput(-.1,-4.1)(-.1,0){10}{\line(0,1){.2}}
+\multiput(-.1,-4.02126)(-.1,0){10}{\line(0,1){.2}}
+%\multiput(-.05,-4.05)(-.1,0){10}{\line(0,1){.1}}
+\multiput(-.05,-3.97126)(-.1,0){10}{\line(0,1){.1}}
+%\setcounter{foo}{1}\multiput(-.1,-3.85)(-.1,0){9}{\makebox
+% (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\setcounter{foo}{1}\multiput(-.1,-3.77126)(-.1,0){9}{\makebox
+ (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+
+% RIGHT RULER
+%\put(5.0,-4.0){\line(1,0){2.5}}
+\put(4.92913,-3.92126){\line(1,0){2.5}}
+%\multiput(5.1,-4.1)(.1,0){10}{\line(0,1){.2}}
+\multiput(5.02913,-4.02126)(.1,0){10}{\line(0,1){.2}}
+%\multiput(5.05,-4.05)(.1,0){10}{\line(0,1){.1}}
+\multiput(4.97913,-3.97126)(.1,0){10}{\line(0,1){.1}}
+%\setcounter{foo}{1}\multiput(5.1,-3.85)(.1,0){9}{\makebox
+% (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\setcounter{foo}{1}\multiput(5.02913,-3.77126)(.1,0){9}{\makebox
+ (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+
+% TOP RULER
+%\put(2.5,0){\line(0,1){2.5}}
+\put(2.46457,0){\line(0,1){2.5}}
+%\multiput(2.4,.1)(0,.1){10}{\line(1,0){.2}}
+\multiput(2.36457,.1)(0,.1){10}{\line(1,0){.2}}
+%\multiput(2.45,.05)(0,.1){10}{\line(1,0){.1}}
+\multiput(2.41457,.05)(0,.1){10}{\line(1,0){.1}}
+%\setcounter{foo}{1}\multiput(2.65,.1)(0,.1){9}{\makebox
+% (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\setcounter{foo}{1}\multiput(2.61457,.1)(0,.1){9}{\makebox
+ (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+
+% BOTTOM RULER
+%\put(2.5,-8.0){\line(0,-1){2.5}}
+\put(2.46457,-7.84252){\line(0,-1){2.5}}
+%\multiput(2.4,-8.1)(0,-.1){10}{\line(1,0){.2}}
+\multiput(2.36457,-7.94252)(0,-.1){10}{\line(1,0){.2}}
+%\multiput(2.45,-8.05)(0,-.1){10}{\line(1,0){.1}}
+\multiput(2.41457,-7.89252)(0,-.1){10}{\line(1,0){.1}}
+%\setcounter{foo}{1}\multiput(2.65,-8.1)(0,-.1){9}{\makebox
+% (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\setcounter{foo}{1}\multiput(2.61457,-7.94252)(0,-.1){9}{\makebox
+ (0,0){\arabic{foo}}\addtocounter{foo}{1}}
+\end{picture}
+
+\vfill
+\mbox{}\hfill
+\begin{minipage}{3in}
+%The frame on this page should be $6\frac{1}{2}'' \times 9''$. When
+%printed on $8\frac{1}{2}'' \times 11''$ paper, the frame should be one
+%inch from each edge of the paper.\\[10pt]
+%The rulers at the four edges will indicate how much of the page is
+%useable. The large ticks are $.1''$ apart.
+%%%%%
+This frame size is $125.2{\rm mm}\ \times\ 199.2{\rm mm}$.
+When printed on B5E size paper,
+the frame should be one inch from each edge of the paper,
+where one inch is equal to 25.4{\rm mm}.\\
+Please control the top lefthand corner of this frame
+should be one inch from the left and top edges of the paper.\\
+The ticks of the rulers at the four edges are 0.1 inch apart.
+%%%%%
+\end{minipage}
+\hfill\mbox{}
+\vfill
+\mbox{}
+
+\end{document}
diff --git a/Master/dviout/UTILITY/test_org.tex b/Master/dviout/UTILITY/test_org.tex
new file mode 100644
index 00000000000..b562fd1f961
--- /dev/null
+++ b/Master/dviout/UTILITY/test_org.tex
@@ -0,0 +1,36 @@
+\documentstyle{article}
+\pagestyle{empty}
+
+\oddsidemargin 0pt
+\evensidemargin 0pt
+\marginparwidth 1in
+\marginparsep 0pt
+
+\topmargin 0pt
+\headheight 0pt
+\headsep 0pt
+\topskip 0pt
+
+\footheight 0pt
+\footskip 0pt
+\textheight 6in
+\textwidth 6in
+
+\setlength{\unitlength}{1in}
+\newcounter{foo}
+\begin{document}
+\parindent 0pt
+\begin{picture}(0,0)
+\scriptsize
+
+\put(0,-1){\framebox(1,1){}}
+\end{picture}
+\vskip1.5in
+
+The above figure is a square of size 1 inch (= 25.4 mm) x 1 inch.
+
+Adjust the printed position so that the left upper vertex of the
+square locates at the 1 inch right and lower point from the left upper
+edge of the sheet.
+\enddocument
+
diff --git a/Master/dviout/chkfont.exe b/Master/dviout/chkfont.exe
new file mode 100755
index 00000000000..b5878f5ecff
--- /dev/null
+++ b/Master/dviout/chkfont.exe
Binary files differ
diff --git a/Master/dviout/convedit.exe b/Master/dviout/convedit.exe
new file mode 100755
index 00000000000..d7ac2e6423d
--- /dev/null
+++ b/Master/dviout/convedit.exe
Binary files differ
diff --git a/Master/dviout/dviout.hlp b/Master/dviout/dviout.hlp
new file mode 100644
index 00000000000..779ed720b85
--- /dev/null
+++ b/Master/dviout/dviout.hlp
Binary files differ
diff --git a/Master/dviout/dvioute.cnt b/Master/dviout/dvioute.cnt
new file mode 100644
index 00000000000..3bbab7e9b51
--- /dev/null
+++ b/Master/dviout/dvioute.cnt
@@ -0,0 +1,473 @@
+:Base dvioute.HLP
+:Title dviout
+1 Contents=CONTENTS
+1 Outline
+2 Specifications=IDH_SHIYOU
+2 Distribution=IDH_HAIFU
+2 dviout User's Group=IDH_USERSCLUB
+2 Known Problems=IDH_BUGS
+2 Attached Programs=IDH_FUZOKU
+2 Supplement=IDH_THANKS
+2 Uninstall=IDH_UNINSTALL
+2 Preview=IDH_PREVIEW
+2 HyperTeX=IDH_EHYPERTEX
+2 String Copy=IDH_PICKSTRING
+2 String Search=IDH_ESEARCH
+2 Presentation Mode
+2 Presentation Mode=IDH_PRESENTATION
+3 cover sheet=IDH_COVER
+3 pause specials=IDH_PAUSE
+3 key/mouse=IDH_PRESENKEY
+2 Embedding into DVI file
+3 Embedding into DVI file=IDH_IMBED
+3 Extended DVI file=IDH_DVIEXT
+3 tar file=IDH_TAR
+3 dviout specials=IDH_DVIOUTSP
+3 source specials=IDH_SRCSPECIAL
+3 Font/Image Embedding=IDH_ETF
+2 Move
+3 Move within the file=IDH_MOVE
+3 Move to other files=IDH_FILES
+3 Jump by giving Page Number=IDH_INPUTPAGE
+2 Printing
+2 Printing
+3 Print Dialog=IDH_PRINT
+3 Page selection
+4 Page selection=IDH_PSELECTION
+3 Page Option
+4 Page Option=IDH_PAGEOPTION
+4 Page Macro=IDH_PAGEMACRO
+3 Number of Copies Specification
+4 Number of Copies Specification=IDH_PCOPY
+3 Dual Page Printing
+4 Dual Page Printing=IDH_FUKUROPRT
+4 Examples Using Printing Options=IDH_OPTPRINT
+3 Page Printing Order
+4 Page Printing Order=IDH_PORDER
+3 Reduce/Magnify Printing Function
+4 Reduce/Magnify Printing Function=IDH_PREDUCE
+3 Printing by dviprt
+4 Printing by dviprt=IDH_USEDVIPRT
+4 Example of -dviprt: Settings=IDH_EXAMPRT
+4 CFG File=IDH_PRTCFG
+4 LBP Driver=IDH_LBP
+4 Reading in Printer Control Codes=IDH_CTRPRT
+3 Output to Files
+4 Output to Files=IDH_PFILE
+3 Pause at Each Page Function
+4 Pause at Each Page Function=IDH_PPOSE
+3 Job Unite/Divide
+4 Job Unite/Divide=IDH_PJOB
+3 Cancel During Print Data Output
+4 Cancel During Print Data Output=IDH_POUTCANCEL
+2 Start and Exit
+2 Start and Exit
+3 Start and Exit=IDH_STARTEND
+3 no more dviout=IDH_NOMORE
+2 Link to Other Programs
+2 Link to Other Programs
+3 Link to Other Programs=IDH_OTHERP
+3 Examples Using DDE=IDH_USEDDE
+2 Install
+2 Install
+3 How to install dviout=IDH_INSTALL
+3 Setting the Resolution
+4 Setting the ResolutionIDH_SETDPI
+3 Setting the Font Path
+4 Setting the Font Path=IDH_SETPK
+4 Examples of -TEXPK: Settings=IDH_SETTEXPK
+3 Adjusting the Display Scale
+3 Adjusting the Display Scale=IDH_DISPSCALE
+3 Adjusting the Print Position
+3 Adjusting the Print Position=IDH_SETLM
+3 Associating dvi files to dviout
+3 Associating dvi files to dviout=IDH_EXTDVI
+3 Automatic Parameter Installation Function
+3 Automatic Parameter Installation Function=IDH_PARAINST
+1 User Interface
+1 User Interface=IDH_USERINTERF
+2 Menu Bar
+2 Menu Bar
+3 Menu Bar=IDH_MENU
+3 File Menu=IDH_FILEMENU
+3 Jump Menu=IDH_JUMPMENU
+3 Search Menu=IDH_SEARCHMENU
+3 Display Menu=IDH_DISPLAYMENU
+3 View Menu=IDH_VIEWMWNU
+3 Presentation Menu=IDH_PRESENTATIONMENU
+3 Option Menu=IDH_OPTIONMENU
+3 Help Menu=IDH_HELPMENU
+2 Information Display
+2 Information Display
+3 Information Display=IDH_INFO
+3 Information Related to Files and Displays=IDH_INFORMATION
+3 Font Information=IDH_FONTINFO
+3 Buffer Information=IDH_BUFERINFO
+3 System Information=IDH_SYSINFO
+3 Key Function List=IDH_KEYINFO
+3 Parameter List=IDH_PARAINFO
+3 Output of Parameter Setting=IDH_PARAOUT
+3 Character Information=IDH_CHARACTER
+1 Property Sheets
+1 Property Sheets
+2 Property Sheets=IDH_PPSHEETS
+2 [CONTENTS]
+3 [CONTENTS]=IDH_PCONTENTS
+3 [Save]=IDH_PSAVE
+3 [Restore]=IDH_RESTORE
+3 [OK]=IDH_POK
+3 [Cancel]=IDH_PCANCEL
+3 [Apply]=IDH_PAPPLY
+3 [Default]=IDH_Default
+3 [Help]=IDH_PHELP
+3 current mode=IDH_PCMODE
+2 [Resolution]
+2 [Resolution]
+3 [Resolution]=IDH_PRESOLUTION
+2 [Display]
+2 [Display]
+3 [Display]=IDH_PDISPLAY
+3 gamma correction=IDH_GAMMA
+3 gray scale=IDH_GRAYSCALE
+3 HVscale=IDH_HVSCALE
+3 reverse Display=IDH_REVDISPLAY
+2 [Font]
+2 [Font]
+3 [Font]=IDH_PFONT
+3 [Guess]=IDH_GUESS
+3 Handling Nonexistent Fonts=IDH_NOFONT
+3 Font Glyph File=IDH_FONTGRIPH
+3 Font Metric File=IDH_FONTMETRIC
+3 tfm File=IDH_TFM
+3 jfm File=IDH_JFM
+3 FLI Font Library=IDH_FLI
+3 European Language TrueType Font=IDH_TRUETYPE
+3 GTH Font Library=IDH_DTH
+3 FAR Font Library=IDH_FAR
+3 -F: Specification=IDH_FEXP
+3 Checking Fonts
+4 Checking Fonts=IDH_CHECKFONT
+4 cmr10=IDH_CMR10
+4 line10=IDH_LINE10
+4 msam10=IDH_MSAM10
+4 lcircle10=IDH_LCIRCLE10
+4 dcr10=IDH_DCR10
+4 eufm10=IDH_EUFM10
+4 min10=IDH_MIN10
+4 tmin10=IDH_TMIN10
+2 [Font2]
+2 [Font2]
+3 [Font2]=IDH_PFONT2
+3 Automatic Font Generation
+4 Automatic Font Generation=IDH_GENFONT
+4 Font Creation Template=IDH_GENFONTTMP
+2 [WinJFont]
+2 [WinJFont]
+3 [WinJFont]=IDH_PWINJFONT
+3 [WinJFont] TrueType Font=IDH_WJTRUETYPE
+3 [WinJFont] H scale=IDH_WJHSCALE
+3 [WinJFont] V scale=IDH_WJVSCALE
+3 [WinJFont] [Define]=IDH_WJDEFINE
+3 [WinJFont] [Remove]=IDH_WJREMOVE
+3 [Change Font]=IDH_CHANGEFONT
+3 [Add Font]=IDH_ADDFONT
+3 [WinJFont] jfm/tfm=IDH_WJJFM
+3 [WinJFont] Flat Type=IDH_WJHEI
+3 [WinJFont] Slanted Type=IDH_WJSHA
+3 [WinJFont] Orientation=IDH_WJMUKI
+3 [WinJFont] H position=IDH_WJHPOSITION
+3 [WinJFont] V position=IDH_WJVPOSITION
+2 [JFont2]
+2 [JFont2]
+3 [JFont2]=IDH_PJFONT2
+3 -ntt: Specification=IDH_NTTEXP
+2 [Key]
+2 [Key]
+3 [Key]=IDH_PKEY
+3 [Key] Define=IDH_KEYDEFINE
+3 [Key] Clear=IDH_KEYCLEAR
+3 [Key] Search=IDH_KEYSEARCH
+3 [Key] All Clear=IDH_KEYALLCLEAR
+3 [Key] Function=IDH_KEYFUNCTION
+3 [Key] Key=IDH_KEYKEY
+3 Key Symbol=IDH_KEYSYM
+2 [Search]
+2 [Search]=IDH_PSEARCH
+2 [HyperTeX]
+2 [HyperTeX]
+3 [HyperTeX]=IDH_PHYPERTEX
+3 HyperTeX specials=IDH_HYPERTEXSPECIAL
+2 [Common]
+2 [Common]=IDH_PLOUPE
+2 [Graphic]
+2 [Graphic]
+3 [Graphic]=IDH_PGRAPHIC
+3 tpic specials=IDH_TPICSPECIAL
+3 Image Date File
+4 Image Date File=IDH_GAZOUDATA
+4 Image Date File speicials=IDH_GSPECIALS
+4 PostScript special parameters=IDH_PSPARAMETER
+4 Example of Using PostScript special=IDH_POSTSCRIPTEX
+4 Ghostscript=IDH_GHOSTSCRIPT
+4 BMP File=IDH_BMPFILE
+2 [Printer]
+2 [Printer]=IDH_PPRINTER
+2 [Paper]
+2 [Paper]=IDH_PPAPER
+2 [System]
+2 [System]=IDH_PSYSTEM
+2 [REGISTRY]
+2 [REGISTRY]
+3 [REGISTRY]=IDH_PREGISTRY
+3 Registry=IDH_REGISTRY
+3 [Auto Load]=IDH_RROAD
+3 [Ignore]=IDH_RIGNORE
+3 [REGISTRY] List Box=IDH_REGLIST
+3 [REGISTRY] [Save]=IDH_RSAVE
+3 [REGISTRY] [Restore]=IDH_RRESTORE
+3 [REGISTRY] [All Set]=IDH_ALLSET
+3 [REGISTRY] [All Clear]=IDH_RCLEAR
+3 Selected mode
+4 Selected mode=IDH_REGMODE
+4 Current Name:=IDH_REGNAME
+4 Current mode:=IDH_REGCURRENT
+4 Default mode:=IDH_REGDEFAULT
+4 Current Print:=IDH_REGPRINT
+1 Q&A
+1 Q&A
+2 Preview
+3 Slow display of the first page=IDH_QV1
+3 Slow page move=IDH_QV2
+3 Want to reverse the direction of the page motion by the arrow of the tool bar=IDH_LUPDWN
+3 Using a button on the tool bar to go chage in Landscape style=IDH_QV10
+3 Too large or too small display scale=IDH_QV3
+3 Blurred or faint characters in the preview view=IDH_QV4
+3 Want to guarantee a preview view that is as large as possible=IDH_QV5
+3 Check for the update of the dvi file and the preview is updated to match=IDH_QV6
+3 An afterimage remains when the Loupe moves and the flickering becomes evident=IDH_QV7
+3 The display paper is too bright=IDH_BRIGHT
+3 Landscape page is displayed Portrait=IDH_QO22
+3 When magnified, colors are not assigned to the string found by the "Search"=IDH_SDPI
+3 The colors of the strings found by the "Search" are unclear and do not change=IDH_QV8
+3 String copy changes symbols to strange characters=IDH_SFONT
+3 Faint colors appear on the outlines of colored characters=IDH_QV9
+3 Preview window flickers by scrolling=IDH_QV15
+3 How to display the outline of a whole page=IDH_QV11
+3 Using mouse while previewing=IDH_QV12
+3 How to know a position or a length while previewing=IDH_QV13
+3 How to prepare a dvi file for a Presentation=IDH_QPRESENT
+2 Font
+3 Font metric file and Font glyph file=IDH_FONTGRIPH
+3 Automatic font location setting=IDH_GUESS
+3 Size adjustment of the Japanese font=IDH_QF1
+3 Adjustments of the base line positions of the European fonts and Japanese fonts=IDH_QF2
+3 Use Times New Roman or non-default TrueType Japanese fonts=IDH_QF14
+3 Embed fonts into DVI file=IDH_DVIFONT
+3 What is the precedence of the Japanese fonts?=IDH_QF11
+3 Uses slanted, flat, and long fonts=IDH_QF3
+3 How to get the information of the using font?=IDH_QF13
+3 Uses the color characters=IDH_SCOLOR
+3 The font with a long name such as lcircle10 or lcirclew10 is not found=IDH_QF4
+3 The automatic generation of a nonexistent European language font=IDH_QF6
+3 Handling nonexistent fonts=IDH_NOFONT
+3 High-resolution, large fonts will be used=IDH_QF8
+3 Want to use TrueType Japanese fonts with fonts in a format of "the Shotai Club"=IDH_QF10
+3 Will TrueType Japanese fonts be used in the non-Japanese Windows=IDH_QF12
+3 A Windows Japanese font is used by NTT JTeX=IDH_QO3
+3 The Windows TrueType Japanese font settings were erased=IDH_QF9
+3 The European language TrueType display looks odd=IDH_QF5
+3 Want to use rotated strings=IDH_ROTPIC
+2 Printing
+3 Want to adjust the irregular printing positions=IDH_PPRINTER
+3 The printed sizes are irregular=IDH_QP1
+3 Printing takes too much time=IDH_QP2
+3 "Copies:" in the number of copies specification in the print dialog is disabled=IDH_PCOPY
+3 Want to print the page checked in preview or the range=IDH_QP4
+3 Preview is correct but the printing result is wrong=IDH_QP10
+3 Want to use different parameters when printing than those used during the preview=IDH_QP6
+3 What are the differences with the types of possible printing methods?=IDH_QP7
+3 Want to print by the console version dviprt or by another program=IDH_USEDVIPRT
+3 Embed the printer control codes for the built-in driver=IDH_CTRPRT
+3 The printing by the built-in dviout driver is poor=IDH_QP9
+3 Want to use TrueType Japanese fonts in printing by dviout's LBP driver=IDH_QP5
+3 What is the paper size when enlarging or reducing and printing by an LBP?=IDH_QP8
+3 Send the dviout file document by fax=IDH_FAX
+3 In a fax transmission, each page is divided into multiples parts and transmitted=IDH_PJOB
+2 Parameters
+3 The defaults are the parameters changed on the property sheet=IDH_QS1
+3 Want to use parameters during printing that differ from the parameters during previewing=IDH_QP6
+3 How to start with a different mode=IDH_MODE
+3 Output of the parameter settings=IDH_PARAOUT
+3 Parameter setting examples=IDH_SAMPLPARA
+3 Want to start without reading in the settings written in the Registry=IDH_STARTEND
+3 Want to copy the parameter settings to another computer=IDH_QS2
+3 Form of the parameters settings that can be read=IDH_QS3
+3 Want to read parameters from the file =IDH_QS4
+3 Edit function when setting or saving parameters=IDH_QS5
+3 Setting the parameters shared by different machines=IDH_QS6
+3 Want to appropriately use multiple parameter settings=IDH_QS7
+3 The parameters were changed, but did not act as expected=IDH_QS9
+3 Default parameter file is ignored=IDH_QS10
+3 Want to delete the contents of the Registry and reinstall=IDH_Q8
+3 Automatic parameter install function=IDH_PARAINST
+2 Image data
+3 Read in the image data file=IDH_GAZOUDATA
+3 specials for image data files=IDH_GSPECIALS
+3 Failure in the image display used by PostScript=IDH_QO9
+3 EPSF figure is over-clipped=IDH_GCLIP
+3 The size read in of the image data file is incorrect=IDH_QO1
+3 Color image data is handled=IDH_QO2
+3 The colors displayed for color image data are strange=IDH_QO17
+3 Displaying color images is extremely slow=IDH_GFIT
+3 Loupe doesn't zoom; display is jaggy=IDH_GFIT
+3 Parts of the lines in the image being previewed disappear=IDH_QO16
+3 Want to also use color Ghostscript images in black and white=IDH_QO14
+3 Using the LaTeX2e graphics pakage=IDH_QO18
+3 Using PSfrag package=IDH_PSFRAG
+3 tpic specials are used=IDH_TPICSPECIAL
+3 Sizes of characters or figures in WMF are strange=IDH_QO29
+3 The displayed page is saved as a EMF or BMP file etc.=IDH_QO7
+2 Operations on Windows95/98/NT
+3 dviout is registered on the desktop=IDH_QO5
+3 Prohibiting multiple dviout invocation=IDH_MULTI
+3 Associating dvi files with a suitable icon=IDH_EXTDVI
+3 Starting dviout by double-clicking on dvi files=IDH_EXTDVI
+3 dviout is used to link to another program such as an editor=IDH_OTHERP
+3 What is the current directory for dviout for Windows?=IDH_CURDIR
+3 Want to specify the dviout location as the reference in each file specification=IDH_QO21
+3 Changing dviout installation directory (folder)=IDH_QO26
+3 History of DVI files and folders=IDH_FOLDER
+3 Starting from the first/last page of a selected DVI file=IDH_FOLDER
+2 Error Messages
+3 NO_FONT: ***=IDH_QE1
+3 Unpack_Error: ***=IDH_QE2
+3 Cannot resolve Fonts=IDH_QE10
+3 Warning: Cannot find cmr10.tfm for TT Font=IDH_QE3
+3 Ghostscript generates Unknown Device error=IDH_QE4
+3 Not enough memory=IDH_QE8
+3 Since this program performs illegal processing, it is forcibly terminated =IDH_QE7
+3 The warning message window is complicated=IDH_QE9
+2 Other ploblems
+3 The result of a string search is incorrect=IDH_QE6
+3 Known problems=IDH_BUGS
+3 dviout stalls when generating fonts or starting Ghostscript=IDH_QO23
+3 dviout generates errors when startup=IDH_QO25
+3 The settings conformed to the description, but the operation was poo=IDH_QO11
+3 "Help Topics" is only displayed by keywords, and a table of contents is not output=IDH_QO13
+2 Other questions
+3 How to define a function such as the page jump to a key or a button=IDH_QO10
+3 What is the button on the tool bar with the shape of a smiley face=IDH_QO4
+3 Deleting dvi files from the history list=IDH_QO24
+3 In the TeX for Windows by Impress, dviout is used when previewing or printing=IDH_QO6
+3 What is HyperTeX?=IDH_EHYPERTEX
+3 A dvi file on the Internet is displayed by dviout=IDH_QO8
+3 Consult words or sentences by a dictionary or execute URL in a preview window=IDH_QO27
+3 What files/environment variables does dviout use=IDH_QO19
+3 What if doing Option->Install multiple times=IDH_QO20
+3 Can dviout recognize the paper size=IDH_QO22
+3 Original extensions by dviout=IDH_QO28
+3 How does dviout display a page?=IDH_QO30
+3 Want to display more information when adjusting the parameters=IDH_QO15
+3 How to extend dviout?=IDH_QO12
+3 Source Code=IDH_SOURCE
+1 Parameters
+1 Parameters
+2 List of Parameters=IDH_PARALIST
+2 Default parameters at the start=IDH_PARAMETER
+2 Example of the setting of parameters=IDH_SAMPLPARA
+2 Output the settings of parameters=IDH_PARAOUT
+2 Automatic parameters install function=IDH_PARAINST
+2 -A:=IDH_A
+2 -area:=IDH_AREA
+2 -base:=IDH_BASE
+2 -bb:=IDH_BB
+2 -bf:=IDH_BF
+2 -BM:=IDH_BM
+2 -BMP:=IDH_BMP
+2 -box:=IDH_BOX
+2 -br:=IDH_BR
+2 -bright:=IDH_BRIGHT
+2 -Browser:=IDH_BROWSER
+2 -button:=IDH_BUTTON
+2 -c:=IDH_C
+2 -cmode:=IDH_CMODE
+2 -color:=IDH_COLOR
+2 -dpi:=IDH_HDPI
+2 -dpiv:=IDH_VDPI
+2 -dviprt:=IDH_DVIPRT
+2 -e:=IDH_E
+2 -edge:=IDH_CUTEDGE
+2 -F:=IDH_F
+2 -FB:=IDH_FB
+2 -file:=IDH_FILE
+2 -Fkeep:=IDH_FKEEP
+2 -Fod:=IDH_FOD
+2 -ftt:=IDH_FTT
+2 -G:=IDH_GG
+2 -g:=IDH_G
+2 -gbox:=IDH_GBOX
+2 -gclip:=IDH_GCLIP
+2 -gdat:=IDH_GDAT
+2 -gen:=IDH_GEN
+2 -gfit:=IDH_GFIT
+2 -GIF:=IDH_GIF
+2 -gow:=IDH_GOW
+2 -GS:=IDH_GS
+2 -gsize:=IDH_GSIZE
+2 -gsrc:=IDH_GSRCSPECIAL
+2 -gsx:=IDH_GSX
+2 -hbuf:=IDH_HBUF
+2 -HC:=IDH_HC
+2 -hname:=IDH_HNAME
+2 -href:=IDH_HREF
+2 -HS:=IDH_HS
+2 -hyper:=IDH_HYPER
+2 -hyperoff:=IDH_HYPEROFF
+2 -isp:=IDH_ISP
+2 -J:=IDH_J
+2 -Jbt:=IDH_JBT
+2 -JC:=IDH_JC
+2 -Jgt:=IDH_JGT
+2 -Jfm:=IDH_IJFM
+2 -L:=IDH_PL
+2 -LM:=IDH_LM
+2 -log:=IDH_LOG
+2 -macro:=IDH_MACRO
+2 -mag:=IDH_MAG
+2 -mode:=IDH_MODE
+2 -multi:=IDH_MULTI
+2 -ntt:=IDH_NTT
+2 -nttF:=IDH_NTTF
+2 -OX:=IDH_OX
+2 -OY:=IDH_OY
+2 -renew:=IDH_RENEW
+2 -RM:=IDH_RM
+2 -S:=IDH_S
+2 -scale:=IDH_SCALE
+2 -sdpi:=IDH_SDPI
+2 -search:=IDH_SEARCH
+2 -Set:=IDH_SET
+2 -sFont:=IDH_SFONT
+2 -spi:=IDH_SPI
+2 -src:=IDH_SRC
+2 -t:=IDH_T
+2 -TEXFLI:=IDH_TEXFLI
+2 -TEXFONTS:=IDH_TEXFONTS
+2 -TEXKNJ:=IDH_TEXKNJ
+2 -TEXPK:=IDH_TEXPK
+2 -TEXPKD:=IDH_TEXPKD
+2 -TEXROOT:=IDH_PTEXROOT
+2 -TEXSUBF:=IDH_SUBFONT
+2 -texhelp:=IDH_TEXHELP
+2 -TM:=IDH_TM
+2 -tpic:=IDH_TPIC
+2 -ttf:=IDH_TTF
+2 -varf:=IDH_VARF
+2 -virtual:=IDH_VIRTUAL
+2 -VC:=IDH_VC
+2 -VS:=IDH_VS
+2 -vfn:=IDH_VFN
+2 -Wshow:=IDH_WSHOW
+2 -y:=IDH_Y
+1 Terminology
+1 Terminology=IDH_YOUGO
diff --git a/Master/dviout/dvioute.hlp b/Master/dviout/dvioute.hlp
new file mode 100644
index 00000000000..5f9ddfd630d
--- /dev/null
+++ b/Master/dviout/dvioute.hlp
Binary files differ
diff --git a/Master/dviout/install.par b/Master/dviout/install.par
new file mode 100755
index 00000000000..f3c8ad5ef6e
--- /dev/null
+++ b/Master/dviout/install.par
@@ -0,0 +1,2 @@
+dpi=300
+gen="`mktexpk --mfmode / --dpi ^d --bdpi ^D --mag ^M ^s"
diff --git a/Master/dviout/optcfg.exe b/Master/dviout/optcfg.exe
new file mode 100755
index 00000000000..2bd41939dbe
--- /dev/null
+++ b/Master/dviout/optcfg.exe
Binary files differ
diff --git a/Master/dviout/rawprt.exe b/Master/dviout/rawprt.exe
new file mode 100755
index 00000000000..5d48758e8d7
--- /dev/null
+++ b/Master/dviout/rawprt.exe
Binary files differ
diff --git a/Master/dviout/readme.txt b/Master/dviout/readme.txt
new file mode 100644
index 00000000000..03c3a2f71e4
--- /dev/null
+++ b/Master/dviout/readme.txt
@@ -0,0 +1,634 @@
+ dviout for Windows Ver.3.18(Windows95/98/Me/NT/2000/XP)
+
+ January 15, 2006 by SHIMA
+
+ (See 00readme.txt, install.txt, files.txt in English)
+
+ dviout for Windows は、Windows95/98/Me および、WindowsNT/2000/XP用の TeX の
+device driver(Screen & Printer driver)です。
+
+ 従来のMS-DOS版の dviout/dviprt Ver.2.43.2 の機能を元にしております。
+
+ 以前の版からバージョンアップを行う際は、7.0 以下の項を参照してください。
+
+
+ ********** 目次 **********
+
+ 0.Ver.3.10 以降の主要な拡張箇所
+ 1. 仕様
+ 2. インストール
+ 3. MS-DOS版との相違
+ 4. 関連プログラム
+ 5. アンインストール
+ 6. サポート
+ 7. Ver.3.0 以降からのバージョンアップ
+ 8. 今後の改良と発展
+ 9. Safe start
+ 10. Windows NTでの問題点
+
+
+0. *** Ver.3.10 以降の主要な拡張箇所 ***
+
+・TeX -> TeX Help (Alt+H X)によるTeXの原稿作成補助機能で,エディタへの直接
+ 入力をサポート
+
+・CID コード -> Unicode 変換を Adobe-Japan1-6 対応に
+
+・\special{dviout `+<levels>} をサポート
+
+以上は、Ver.3.18 における新規の機能です。
+
+
+・TeX -> TeX Help (Alt+H X)によるTeXの原稿作成補助機能
+
+以上は、Ver.3.17 における新規の機能です。
+
+
+・CID コード -> Unicode 変換をサポート
+
+・Continuous Renew 機能
+
+・印刷ダイアログでのdviprt機能のカストマライズ
+
+・グリッド線表示
+
+・グラフィックエディタへのジャンプ機能
+
+・指定した非対応specialsの無視機能
+
+・矩形領域のPDF画像出力機能
+
+以上は、Ver.3.16 における新規の機能です。
+
+
+・subfonts 対応
+
+・手の形のマースカーソルの時も Alt+F, Alt+J 等が有効
+
+・パラメータファイルへのメニュー形式インタフェース
+(Option → Choose Parameters, ユーザが編集/追加可能)
+
+・日本語フォント簡易変更機能(Option → Change Japanese fonts)
+
+・プレゼンテーションモードでの、メニュー形式機能設定
+
+・source specials で、マウスの左ボタンのダブルクリックに対応
+
+・メニューバーのサブメニューに、割り当てキーを自動表示
+
+・小ヒント集をヘルプメニューに追加(Help -> Tips on dviout -- 和文/欧文)
+
+・color specials, tpic specials を使ったDVIファイルのページ独立性の修正
+
+以上は、Ver.3.15 における新規の機能です。
+
+
+・source special+文字列検索機能(エディタからpreview画面へのジャンプ)
+
+・印刷ページ指定オプション(印刷ダイアログの [Option] ボタン)
+
+・縦方向2頁同時表示/全頁連続スクロール機能
+
+・プレゼンテーションモードでの線描画機能
+
+・OpenType フォント対応
+
+・CTRL+SHIFT+矢印キー による紙面の上下左右への微小位置補正
+
+・EMF/BMP画像形式での矩形領域のクリップボードへのコピー
+
+以上は、Ver.3.14 における新規の機能です。
+
+
+・必要なフォント/画像ファイルの自動切り出しとDVIファイルへの埋めこみ
+
+・初期設定のDVIファイルへの埋めこみ
+
+・画面の切り出し画像出力
+
+以上は、Ver.3.13 における新規の機能です。
+
+
+・プロポーショナル和文TrueTypeフォント
+
+・オンデマンド・フォント検索
+
+・Virtual fonts 使用の際の高速化
+
+・PSfrag対応
+
+・min*, goth*, tmin*, tgoth*, jis, jisg, jis-v, jisg-v, newmin, newgoth の
+ jfm ファイルのメトリック情報を dviout に内蔵。
+
+以上は、Ver.3.12 における新規の機能です。
+
+
+・任意のファイル(dviout が使う画像ファイル、パラメータファイル、フォントファ
+ イルなどや他のプログラムのためのファイル)のDVIファイルへの埋め込み
+ sample\sample.dvi がその例です。
+
+・tar形式中のDVIファイルや画像ファイル、フォントファイルのサポート
+
+・プレゼンテーション・モード
+ sample\sli*.dvi がサンプルです。sample\sample.dvi の中からジャンプできます。
+ 新設された pause specials や dviout specials が役立ちます。
+
+・キーマクロ
+
+・dviout specials, pause specials
+ sample\sample.dvi に解説があります。
+
+・source specials および srctex, convedit
+ source specials とは、DVIファイルの現在描いている場所が元のTeXファイルのどこ
+ にあたるかの情報、すなわち元のファイル名と行番号の情報をDVIファイルに埋め込
+ んだものです。
+ これを使って、dviout と TeX ファイルのエディタとの間の相互ジャンプ機能が実現
+ されます。
+ MikTeX & yap でサポートされているものと互換です。
+
+ TeXコンパイラを -help というパラメータで起動すると、そのTeXコンパイラが
+ source special をサポートしているかどうか分かります。たとえば
+
+ platex -help
+
+ としたとき、Option: として
+
+ -src-specials Insert source specials into the DVI file.
+ -src-specials=WHERE Insert source specials in certain places of
+ the DVI file. WHERE is a comma-separated value
+ list: cr display hbox math par parend vbox.
+
+ という項があれば OK で、
+
+ platex foo
+
+ とする代わりに
+
+ platex -src foo
+
+ とすれば、各段落の冒頭に source specials の入った DVI が生成されます。
+ source specials をサポートしたTeX コンパイラを用いなくても、付属の srctex で
+
+ srctex platex foo
+
+ とすることで対応されますが、できればサポートされたTeXコンパイラをお使いくだ
+ さい。
+
+ エディターとの交信手続きの設定については、Help の source specials の項を参照
+ してください(目次 -> 概要 -> DVIファイルへの埋め込み ->source specials)。
+
+・EMF(Enhanced Windows MetaFile)形式でのページ出力
+
+・gzip で圧縮された画像ファイルやDVIファイルの取り込み
+ それに伴い、dviout.def が更新されました。
+ なおこの取り込みには gzip -d ... または gunzip ... が動作することが必要です。
+
+・フォルダの履歴
+ メニューバーからファイルを選ぶ時に、SHIFTキーを押していると、フォルダが開き
+ ます。
+
+
+1. ********** 仕様 **********
+
+・使用可能なTeX: 通常の欧文のTeX(含NTTJTeX), アスキーの日本語pTeX,
+ Omega(-j), lambda(j)
+
+・新機能: gray scale表示, ルーペ機能, 文字列サーチ機能, 文字列コピー機能,各機
+ 能およびマクロのキーへの自由な割り当て, 矩形領域のBMP/EMF/BMCやPDF/PNG/EPS
+ などのファイル形式画像出力, フォントの所在の設定の推測機能, 任意のファイル
+ のDVIファイルへの埋め込み, tar(+gzipped)形式ファイルのサポート, プレゼンテー
+ ション・モード, 使用フォントや画像の必要データの抜き出しとそれのDVIファイへ
+ の自動埋め込み(⇒ TeX環境なしで表示や印刷が可能), グリッド線表示機能,グ
+  ラフィックエディターへのジャンプ機能
+
+・拡張機能: tpic specials, PostScript specials, EPS/PS/WMF/EMF/PBM/BMP/BMC形
+ 式画像および PNG/JPEG/TIFF/PCD/PPMなど各種形式画像, およびそれをgzipで圧縮
+ したファイルの取り込み, 文字列の色付け, 回転やスケール変換, \psflag,
+ PSfrag, HyperTeX specials, dviout specials, pause special, source special
+
+・印刷機能: Windows95/98/Me/NT/2000/XP がサポートしているプリンタでの印刷
+ (カラ ーに対応)やFAX送信、独自の内蔵プリンタドライバによる出力、および、
+ dviout以外の印刷プログラムの制御機能の3種類の印刷方法をサポート。
+ 袋綴じ印刷, 縮小/拡大印刷機能, ページ指定マクロ
+
+・欧文フォント, および, NTTJTeXの和文フォント: PK, PXL1001, PXL1002, PXL1003
+ フォーマットのフォント, TrueTypeフォント, OpenTypeフォント
+ PostScriptフォント
+ Virtualフォント
+ subfonts
+ 独自のPKDフォントディレクトリファイル
+ Unicode
+ METAFONTによる不足フォントの自動生成機能
+ 必要フォントや画像ファイルのDVIファイルへの自動埋めこみ機能
+
+・フォントライブラリ: FARフォントライブラリ, GTHフォントライブラリ, FLIフォ
+ ントライブラリ
+
+・アスキーpTeX および NTTJTeX の和文フォント: JXL4フォント, ビットマップフォ
+ ントおよびそれを独自の形式に圧縮したもの, 「書体倶楽部」形式のフォント,
+ Windows 3.1 や Windows95/98/Me/NT/2000/XP のTrueType和文フォント,
+ Virtualフォント
+
+注意 1. PostScript画像を取り込むには, Ghostscriptが必要です。
+ 2. JPEG/TIFF/PCD/PPM など各種画像取り込に対応するには, Susie plug-in が
+ 必要です。
+ 3. PostScriptフォントを使うには, それに対応した mktexpk, gsftopk, dvipsk
+ および Ghostscript(gswin32c in PATH)が必要です.
+ 4. PNGなどの画像出力に対応するには、対応するABC出力プラグインが必要です。
+ 5. 矩形領域のPDF形式画像変換には,dvipdfmx 20040204以降が必要です。
+
+
+2. ********** インストール **********
+
+ プログラムとヘルプファイルをインストールします。それらは、同一ディレクトリ
+(フォルダー)である限り、どこに入れてもかまいませんが、アンインストールや
+バージョンアップを考慮すると、dviout用のディレクトリ(フォルダー)を作成し
+て、そこに dviout for Windows と関連ファイルを入れておくとよいでしょう。
+ただし、パス名に空白文字を含むようなディレクトリは、ほかのTeX関連のファイル
+の場合と同様、避けたほうが無難でしょう。
+
+ dviout for Windows のパッケージが d:\tex315w.zip であった場合は、コマンド
+プロンプト(MS-DOS Window のプロンプト)から、たとえば以下のようにします。
+
+ >mkdir \dviout
+ >cd \dviout
+ >unzip d:\tex315w
+
+ このとき、\dviout に展開された dviout.exe と dviout.hlp, dviout.cnt のみ
+が、dviout for Windows 側で最低限必要なファイルです。
+
+ その他には、欧文のフォントファイル(PKフォント、またはWindowsに登録された
+TrueTypeフォント + 対応するtfmファイル)が必要です。和文の文字には Windows の
+TrueType和文フォントを使うことが出来ます。また、欧文フォントの自動生成機能
+を使うには、-gen: を TeX のフォント生成機能に合わせて設定しますが、特殊な設
+定が必要な場合はtemplateファイルで対応します(それのサンプルは、MakeTeXPK用
+のものなどいくつかが utility\ に入っています)。
+
+ 最初に dviout.exe を起動すると、最低限必要な環境設定をするプログラムを実行
+するかどうか、尋ねられます。通常の環境でプリンタ用の欧文PKフォントがディスク
+にインストール済ならば、あるいは最近の標準的なTeXのシステムがインストールされ
+ていれば(このときは、環境変数 TEXMFMAIN, TEXMFCNF が設定されているはず)この
+初期設定プログラムを実行することにより、dviout が使用できる状態になります。
+ただし、プリンタ(すなわちインストールしてある欧文PKフォント)の解像度(dpi)
+を知っておく必要があります。
+
+ 初期設定プログラムで設定したパラメータは、後からいつでも変更可能です。
+また、メニューバーから Option -> Install を選択すれば、初期設定プログラムを
+再実行することもできます。
+
+ 初期設定プログラムを使いたくない場合は、以下のようにすることも可能です。
+
+1. Option -> Setup Paremeters...-> Resolution で dpi: にその解像度(dots per
+ inch)を設定し、更新(A) と Save を押す。
+
+2. Font のシートに移動して、Guess ボタンを押す。フォントの検索の終了(最近の
+ 通常の環境が検知されれば,その設定を選べば OK)後、更新(A) と Save を押す。
+
+ では、dviout.exe と dviout.hlp, dviout.cnt が、同一のディレクトリにあるこ
+とを確かめ、dviout.exe を起動してみましょう(コマンドライン、あるいは、エク
+スプローラなどからのマウスクリック)。
+
+ メニューバーから
+
+ Help -> Help Topics -> 目次 -> 目次 -> インストール
+
+とたどっていけば、インストール(フォントの解像度とその所在、アイコン登録や
+dviファイルのdvioutへの関連づけなどの設定)の説明が参照できます。
+
+ そのほか、インストールの際やその後の疑問の点、dvioutの数多くの機能について
+は、Help -> Help Topics -> 目次 の 概要 や Q&A などが参考になるでしょう。
+
+ 欧文フォントがインストール済みでなくて、mktexpk で自動作成していく場合は、
+[Guess]でデフォルト設定を選択するか、あるいは、dvioutの起動の前に基本解像度の
+cmr10 と lcircle10 のPKフォントのみを mktexpk で作成しておけば、初期設定プログ
+ラムを利用できるでしょう。このときは、mktexpk の動かし方を、Option ->
+Setup Parameters -> Font2 -> gen: に登録します。通常は[gen:]ボタンで自動設定
+されます。特殊な設定をする場合は、例えば、LIPS III 用のPKフォントを作成する設
+定は、gen: に
+
+ `mktexpk ^s ^d ^D ^M cx
+
+などと書き、[Save]と[Ok]を押しておきます。なお、mktexpk にパスが通っていないと
+きは、フルパス名で書きます(こちらを推奨で、[gen:]ボタンではそうなります)。
+
+ Windowsに登録された欧文TrueTypeフォントを使用する場合は、Option ->
+Setup Paramaters -> Font -> TEXROOT: TEXPK: に対応する tfm ファイルの所在を
+付け加えて、[Save]と[Ok]を押します。このとき対応する tfm ファイルは、^s.tfm
+で表します。
+
+
+3. ********** MS-DOS版との相違 *********
+
+ MS-DOS版では、プレビューを dviout が、印刷を dviprt が受け持ち、通常は両者
+で異なる解像度のフォントを用意しました。dviout for Windows は、プレビューと印
+刷の両方の機能を持っています。また、解像度の高い印刷用のフォントを、濃淡をつ
+けて縮小して(gray scale, anti-aliasing)プレビューに用いることができます。
+
+ たとえば、印刷用の 300dpi のフォントを 1/4 に縮小して 75dpi の gray scale
+で用いることにより、75dpi のフォントを準備して使った場合に比べ、より奇麗に表
+示できます。高速な CPU を用い、メモリーも十分にあれば、600dpi 以上の印刷用
+フォントをプレビューに用いても、速度低下は少ないと思います。
+
+ インストール時に設定すべき最低限のパラメータは、dviout/dviprt の時の
+-dpi と -TEXPK にあたるものです(-TEXPK: については、自動推測+設定機能を
+用いると便利です)。
+
+ アスキーのpTeXのときの和文フォントは、デフォルトでは、Windowsの和文TrueType
+(MS 明朝、MS ゴシック)が用いられます。
+
+ そのほか、和文JGフォントは、利用者が少ないのと、機能が完全でない点があった
+のでサポートをはずしました。
+
+
+4. ********** 関連プログラム **********
+
+ dviout for Windows では WindowsAPIを使った印刷をサポートしていますが、コン
+ソール版のdviprtやdvipsk などの外部プログラムによる印刷もコントロール可能です。
+付属の rawprt.exe はプリンタへのリダイレクトにあたることを、Windowsのプログラ
+ムとして安全に行うものです。
+
+ propw は、Windowsで使用可能な和文(Proportional) TrueTypeフォントのjfmファイ
+ルを生成するプログラムです。font\newjfm.txt や font\winttf.zip のドキュメント
+を参照してください。具体的には、付属の propw.exe と pttfonts.map を使って
+
+ > propw pttfonts.map
+
+とすると、pttfonts.map のリストにある和文Proportional TrueTypeフォント(必要
+なら表に追加すればよい)で Windows にインストールされているものの jfm ファイル
+が作成されます。
+
+ PostScriptで記述された画像データを PostScript specials によって取り込むには、
+raw PBM、またはmonochrome BMP(カラー画像を扱うには、256色や1677万色などのカ
+ラーBMP)出力をサポートした Ghostscript が必要です。
+
+ PNG/JPEG/TIFF/PCD/PPM など各種画像に対応するには, Susie plug-in が必要です。
+付属のbmc.exeはLaTeX2eのgraphics packageで画像サイズを知るための拡張子 .bb の
+ファイルを作成する機能があります。
+
+ HyperTeXによって dviout からインターネットにアクセスするには、WWW Browser が
+必要です。WWW Browser(インターネットエクスプローラなど)と併用することにより、
+インターネット上のdviファイルをプレビューすることもできます。
+
+ インプレスの TeX for Windows で、dviout for Windows を用いることができます。
+また、それ用に開発されたエディターなどの各種マクロなども使用できるでしょう。
+詳しくは、Help -> Help Topics -> Q&A -> そのほか を参照してください。
+
+
+
+5. ********** アンインストール **********
+
+ dviout for Windows を起動して、Option -> Uninstall を実行すると、レジストリ
+への dviout for Windows からの書き込みがすべて消去されます。その後、インスト
+ールした dviout for Windows 関連のファイル(特定のディレクトリにまとめて入れて
+おくとよい)をすべて削除します。
+
+ dviout for Windows は、Windows やそのシステムディレクトリに(特に指定しな
+い限り)、ファイルをインストールせず、そこにあるファイルを変更することはあり
+ません。
+
+ なお、他のインストーラつきのパッケージなどによって独自の方法でインストール
+された場合は、この限りではありませんので、それに付属のドキュメントなどを参照
+してください。
+
+
+
+6. ********** サポート **********
+
+ 正式公開版は
+
+ ftp://akagi.ms.u-tokyo.ac.jp/pub/TeX/dviout/
+
+から、入手可能です。
+
+ dviout for Windows のバージョンアップは、基本的には、dviout.exe,
+dviout(e).hlp, dviout(e).cnt を新しいものに置き換えるのみです(アンインストー
+ルしてしまうと、設定が受け継がれませんので、ご注意ください)。それ以外に必要
+なことがあれば readme.txt の 7 の項などに書かれています。付属のファイルが更
+新されたり、追加される場合もあります。
+
+ 最新版およびそのソースファイル、あるいは、バグなどの情報は、以下から得るこ
+とができます(1997年3月の時点)。
+
+・ http://akagi.ms.u-tokyo.ac.jp/ftp-j.html#TeX
+・ dviout User's 倶楽部(Mailing List [cf. Help -> Contents])
+
+ バグなどの連絡先は
+
+ dviout-admin@akagi.ms.u-tokyo.ac.jp
+
+です。連絡いただいた mail は、差出人などが分かる部分を削除して、dviout User's
+倶楽部の Mailing List
+
+ dviout@akagi.ms.u-tokyo.ac.jp
+
+に転載する場合がありますので、ご了承下さい。ただしインストールなどに関する質
+問を dviout-admin などの個人宛に頂いても、返事を出すことは困難なのでご了承く
+ださい。このような質問は、dviout User's 倶楽部 にてお願いいたします。
+
+
+
+7. ********** Ver.3.0 以降からのバージョンアップ **********
+
+ Ver.3.0 March 14, 1997
+ dviout for Windows の最初の正式公開版
+
+以降に、新たに加わった主な機能は
+
+・ dviprtのプリンタドライバを内蔵(特に、LIPS III/IV, ESC/Pageで高速)
+・ カラー画像、カラー文字をサポート
+・ LaTeX2e の graphics package を用いての dvips用に出力されたdviファイルに対応
+・ フォントファイルの所在を推測し、設定する機能
+・ Virtual fonts, 欧文TrueType fonts, OpenType fonts, subfonts に対応
+・ オンデマンドフォント検索
+・ Microsoft IntelliMouse(「まわるマウス」)に対応
+・ プレビュー画面から文字列の取得(dvi2tty的な機能)
+・ プレビュー画面から矩形領域を指定して画像出力(BMP, PNG, EMF etc.)
+・ プレゼンテーションモード
+・ source specials (dviout と editor との間での連携ジャンプ機能)
+・ dviout specials による dviout の種々のコントロール
+・ 使用フォントや画像,初期化パラメータなどをDVIファイルに取り込む機能
+・ TeXの原稿作成補助機能
+
+です。
+
+ また、Ver.3.0 公開後発見され現在では修正されているバグは、history.txt に
+書かれている
+
+ 186, 188, 192, 195, 203, 205, 208, 209, 211, 212, 213, 218, 220, 257, 258,
+ 271, 273, 276, 299, 302, 311, 318, 320, 350, 383, 384, 395, 406, 589, 658
+
+が主なものです。
+
+7.0.1. Ver.3.15 または、それ以前の版からバージョンアップ
+ -dviprt: が未定義の場合、印刷ダイアログで dviprtをチェックすると、dvipdfm(x)
+による PDF ファイルへの変換がなされるようになった(従来は、コマンド版 dviprt
+による印刷が定義されていた)。従来の機能にするには、以下のように定義しておけば
+よい。
+
+-dviprt=echo^-O=^t^>>^^f;dviprt^-=^f^^q^^p;copy^^t^sprn^/b;del^^t^Zdviprt(default)
+
+7.0.2. Ver.3.14 または、それ以前の版からバージョンアップ
+ -ftt: で参照されるフォントマップファイルの添付版 ttfonts.map は、dviout.exe
+の存在するディレクトリでなくて、そのサブディレクトリ map に置くのをデフォルト
+にしました。dviout.exe にある *.map ファイルは削除してください(あるいは、必要
+なら、サブディレクトリ map にコピー)。また、添付版への追加は map\$user.map へ
+書くことを勧めます(今後のバージョンアップなどでも保たれる)。
+
+7.0.3.Ver.3.12 より前の版からバージョンアップ
+ フォントの検索をOn demandで行う(実際にそれを使う文字が現れるまで、検索しな
+い)機能を追加し、そのがデフォルトになりました。従来通り起動時に検索するには、
+[Font2] の OnDemand(Fod:) を OFF にしてください。
+
+ GRAPHIC\latex2e\dviout.def が一部修正されましたので、古いものと入れ替えてく
+ださい(最近のTeXでは、通常 %texmfmain%\tex\latex\config\ に置く)。
+
+ 和文フォントの文字サイズは、今まで高さを基準としていましたが、幅基準に変えま
+した。通常使われている min*, jis*, rml や付属の長体・平体などでは、実際は従来
+と結果が変わることはありません。
+
+
+7.0.4.Ver.3.11 より前の版からのバージョンアップ
+ Ver.3.10 に付属していた SAMPLE\ の中の sample.emf, *.wmc, *.bmp は不要なの
+で削除できます。
+
+ MS-DOS版 dviprt で使われていたプリンタ・コンフィギュレーションファイルとその
+ソースファイルは、dviout for Windows の dviprt モードで標準でサポートしている
+プリンタ以外の時のみ用いられるものですが、現在ほとんど使われていません。そのた
+めこれらのファイル SRC\*.src, CFG\*.cfg は、prtcfg.zip, prtsrc.zip としてまと
+めてパックし、ディレクトリ CFGに 入れました。このため SRC\*.src や CFG\*.cfg、
+およびディレクトリ SRC は不要なので削除できます。
+
+ HYPERTEX\myhyper.sty に正しくないところがあり、修正されましたので注意。
+
+7.0.5. Ver.3.07 またはそれ以前の版からのバージョンアップ
+ Windowsのprinter dviverを用いた(すなわち、印刷のダイアログで dviprt の項
+のチェックを外した状態での)デフォルトの印刷方式が変わり、特に最近のプリンタ
+を使ったTrueType fontsでの印刷が高速化されます。従来の方が高速であったり、う
+まく印刷できない場合は、Option -> Setup Parameters -> [Graphic] の color
+specials の右側の項を auto mode(rep) に変更すると、従来の方法での印刷となり
+ます。
+
+7.0.6.Ver.3.06 またはそれ以前の版からのバージョンアップ
+
+ dviprt 機能を使った LIPS III/LIPS IV による印刷機能で、紙面の上部の印刷不
+可能領域を 5.3mm 程度減らしました。従って、これを用いていた場合、-TM: の設定
+(Option -> Setup parameters... -> Printer Top)の設定値を 53 程度減らしてくだ
+さい。印刷の位置を test_a4.dvi などを使って再調整してください。
+
+
+7.0.7.Ver.3.06 より前の版からのバージョンアップ
+
+ LaTeX2eのgraphic packagesでdviout用出力を指定している場合は、dviout.defを
+このパッケージに付属のものに入れ替えてください(graphicx.sty の存在場所、た
+とえば、$texmf\tex\latex\packages\graphics などに入っていることが多い)。
+
+
+ Ver.3.02 より以前の版に上書きインストールした場合、以下の問題点の生じるこ
+とがありますので、以下の各項を参照してください。
+
+
+7.1. 文字列サーチで見つかった文字列に色が付かない。
+
+ 文字列サーチで見つかった文字列の色付け指定のデフォルト設定がうまくいってい
+ない場合(Option -> Setup Parameters... -> Search で、Color: が box fill,
+white になっている場合)、Option -> Setup Parameters... -> Search で、
+[Restore] を押すなどでして、好みの指定をして [Save] と、[更新] を押し、さらに、
+[REGISTRY] のシートで、Search に + の印がついていることを確かめて、ここで再び
+[Save] を押します)。
+
+
+7.2. dviout.ini, dviout.vfn
+
+ 開発途中の版で使われていた dviout.ini, dviout.vfn は、不要となりました。
+互換性のためこれらもサポートしていますが、混乱をさけるため、ファイル名を、
+それぞれ dviout0.ini, dviout0.vfn としてあります(0 は、ゼロ)。
+
+ dviout.ini (or dviout.par) が dviout のディレクトリ、あるいは、Windows の
+ディレクトリに存在すれば、自動的にそれを読み込んでしまうので、注意してくだ
+さい。
+
+
+7.3. Ver.3.01a-8より前の版からのバージョンアップ
+
+7.3.1. Ver.3.01a-8 または、それ以前の版からの Version UP
+
+ Windows のドライバを用いて印刷を行っていた場合 Ver.3.01a-9 では、-LM: -RM:
+の設定でなく、ドライバのデフォルトの位置補正の設定をデフォルトにしました。
+従来の位置補正を有効にするには、Property Sheets -> [PRINTER] で、Use default
+for the system driver のチェックをはずして、[Save], [OK]を押してください。
+また、[REGISTRY] のプロパティーシートで(デフォルトで読み込むパラメータとして
+-area: に + 印を付けて)、[Save] を押してください。
+
+7.3.2. Ver.3.01a-1 または、それ以前の版からの Version UP
+
+ -GIF: が、フラグ型パラメータから、整数型変数に変わりました。Postscript画
+像のカラーの設定が、起動時のデフォルトにできないときは、[REGISTRY]のプロパ
+ティーシートで(デフォルトで読み込むパラメータとして -GIF: に + 印を付けて)、
+[Save] を押してください。[Graphic] のシートでGhostscriptの出力を256色BMPな
+どと変更し、それをデフォルトとする場合にも、[Save] を忘れずに押してください。
+
+
+
+8. ********** 今後の改良と発展 **********
+
+ 以下のようなものが考えられます。
+
+ 1. ユーザが外部ファイルで自由に specials を定義可能なマクロ言語
+ 2. GUIの改良、インストーラ
+ 3. DLL, OLE2などの導入
+ 4. HyperTeX によるマニュアル
+ 5. kpathsea のサポート
+
+上記を含めて、今後とも有志のご協力をお願いいたします。
+
+
+9. ********** Safe start **********
+
+ dviout が基本的なパラメータなどの保存のために使用しているregistry(DISK上
+のある領域)が、何らかの理由で破壊されてしまうと、dviout が正常に起動しなく
+なる可能性があります。このような場合は、コマンドラインから
+
+ dviout -NULL
+
+として dviout を起動すると、registry からデータを読むこと無しに、dviout を起
+動させることができます。この後、Option -> Setup parameters から、registry に
+書かれたパラメータをチェック/検証したり、Option -> Uninstall で、dviout が
+設定した全ての registry の書き込みを消去することができます。
+
+なお、dviout.exe にパスが通っていないときは、コマンドラインに dviout.exe の
+フルパス名を指定してください。
+
+
+10. ********** Windpws NT での問題点 **********
+
+ 従来から Windows NT のTrueType和文フォントのサポートルーチン(API)にはバグ
+がありましたが、それを dviout側で対処していました。サービスパック3のパッチ
+をあてた状況では、より深刻なバグに発展したようで、縦書きの和文フォントを読
+み出そうとすると、カーネルがフリーズするという深刻な事態が発生するという報
+告を受けました。
+
+ Windows API の GetGlyphOutline() 関数でフォントを読み出す際に、2行2列の
+行列で文字の変形を行うことが出来ますが、淺山氏の調査によると これが単位行列
+でないとシステムがフリーズしてしまうようです。デフォルトの縦書きフォントに
+は対応しましたが、縦横のサイズ変更や斜体などを指定すると、このエラーが生じ
+ると予想されます。
+
+ 和文のTrueType Fontの展開を、Windows NT のシステム側で行わずに、dvioutの
+内蔵ルーチンに置き換えると、このエラーは起きません。具体的には、たとえば、
+付属の dviout.vf0 を修正して、横書きの和文フォントは Windowsのシステムに任
+せ、縦書きの和文フォントのみをdvioutの内蔵ルーチンに任せるように書き直して、
+そのファイルをdvioutのProperty Sheetの [JFont2] の -vfn: に設定すれば OK で
+す。
+
+ なお、内蔵のTrueTypeフォント展開ルーチンでは、小さな文字の場合に品質が劣
+るなどの欠点があります。また、松田氏の作成した ttindex.exe を用いて、DOS窓
+などから
+
+ >ttindex c:\windows\fonts\msmincho.ttf
+ >ttindex c:\windows\fonts\msgothic.ttf
+
+などのようにして、利用する和文TrueTypeフォントのインデックスファイルを作成
+しておく必要があります。
+
+ かなり深刻で致命的なバグでしたが、修正のパッチが公開されたようですので、
+それを用いてください。