summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ktv-texdata
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ktv-texdata')
-rw-r--r--Master/texmf-dist/tex/latex/ktv-texdata/ktv-buildnum.sty26
-rw-r--r--Master/texmf-dist/tex/latex/ktv-texdata/ktv-texdata.sty305
2 files changed, 331 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ktv-texdata/ktv-buildnum.sty b/Master/texmf-dist/tex/latex/ktv-texdata/ktv-buildnum.sty
new file mode 100644
index 00000000000..d97925ffee1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ktv-texdata/ktv-buildnum.sty
@@ -0,0 +1,26 @@
+\ProvidesPackage{ktv-buildnum}[2003/10/10 v1.5 KTV, Build Number]
+\def\bld@ext{.ktvnum}
+\def\bld@ext@old{.xka}
+\def\builnumfile{\jobname}
+\AtBeginDocument{
+ \newwrite\bld@ostream
+ \newcount\buildnum
+ \IfFileExists{\builnumfile\bld@ext}%
+ {\@@input\builnumfile\bld@ext\relax}%
+ {\buildnum=0}
+ \IfFileExists{\builnumfile\bld@ext@old}
+ {%\begingroup
+ \newcount\tmp@cnt \tmp@cnt=\buildnum
+ \@@input\builnumfile\bld@ext@old\relax
+ \ifnum\tmp@cnt>\buildnum
+ \global\buildnum=\tmp@cnt
+ \fi
+ %\endgroup
+ }{}
+ \advance\buildnum1 %
+ \immediate\openout\bld@ostream\builnumfile\bld@ext %
+ \immediate\write\bld@ostream{\string\buildnum=\the\buildnum}%
+ \immediate\closeout\bld@ostream{}%
+}
+\endinput
+% END OF FILE \ No newline at end of file
diff --git a/Master/texmf-dist/tex/latex/ktv-texdata/ktv-texdata.sty b/Master/texmf-dist/tex/latex/ktv-texdata/ktv-texdata.sty
new file mode 100644
index 00000000000..757e7659ec2
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ktv-texdata/ktv-texdata.sty
@@ -0,0 +1,305 @@
+%%
+%% This is file `ktv-texdata.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ktv-texdata.dtx (with options: `package')
+%%
+%% IMPORTANT NOTICE:
+%%
+%% For the copyright see the source file.
+%%
+%% Any modified versions of this file must be renamed
+%% with new filenames distinct from ktv-texdata.sty.
+%%
+%% For distribution of the original source see the terms
+%% for copying and modification in the file ktv-texdata.dtx.
+%%
+%% This generated file may be distributed as long as the
+%% original source files, as listed above, are part of the
+%% same distribution. (The sources need not necessarily be
+%% in the same archive or directory.)
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{ktv-texdata}
+[2003/10/06 v05.34 KTV, Data Manager]
+\RequirePackage{verbatim}
+\def\@@xdetail{\marginpar{{\bf\@xenv}\@xlbl}}
+\DeclareOption{detailon}{\let\@xdetail\@@xdetail}
+\DeclareOption*{\let\@xdetail\relax}
+\ExecuteOptions{detailon}
+\ProcessOptions
+\def\b@sy{}
+\def\if@xNIL#1;{\ifx\relax#1\relax}
+\def\usr@xenv{}
+\def\usr@xlbl{}
+\def\@multact{\futurelet\@tchar\chk@multact}
+\def\chk@multact{%
+ \ifx(\@tchar
+ \let\@txen\opt@multact
+ \else
+ \let\@txen\nop@multact
+ \fi
+ \@txen}
+\def\opt@multact(#1)#2{%
+ \def\usr@xenv{#1}%
+ \@xmultarg{#2}}
+\def\nop@multact#1{%
+ \def\usr@xenv{\@@xenv}
+ \@xmultarg{#1}}
+\let\@action\relax
+\def\@@MINUS{MINUS}
+\def\@@PLUS{PLUS}
+\def\@@ZERO{ZERO}
+\def\@xmultarg#1{\@@xmultarg#1,@@@,}
+\def\@endlbl{@@@}
+\def\@@xmultarg#1,{%
+ \def\@xtempi{#1}
+ \ifx\@endlbl\@xtempi
+ % do nothing
+ \else\@@@xmultarg#1,
+ \expandafter\@@xmultarg
+ \fi}
+\def\@@@xmultarg{\futurelet\@tchar\chk@@@xmultarg}
+\def\chk@@@xmultarg{% 2003/05/14
+ \ifx-\@tchar\relax
+ \let\@txen\@@MINUS
+ \else\ifx+\@tchar\relax
+ \let\@txen\@@PLUS
+ \else
+ \let\@txen\@@ZERO
+ \fi
+ \fi
+\csname\@txen\@action\endcsname}
+\gdef\c@mm@nt{%
+ \begingroup
+ \catcode`\^^M=12 %
+ \x@comment}
+{\catcode`\^^M=12 \endlinechar=-1 %
+\gdef\x@comment#1^^M{%
+ \def\@xtest{#1}%
+ \ifx\@xtest\exx
+ \let\@txen=\endgroup
+ \else
+ \let\@txen\x@comment
+ \fi
+ \@txen}}
+\newif\if@xhint
+\newwrite\@xfhint
+\immediate\openout\@xfhint=\jobname.KTVhint
+{\catcode`\%=12
+\immediate\write\@xfhint{%% File created automatically by `ktv-texdata'.}
+\immediate\write\@xfhint{%% DONOT EDIT THIS FILE MANUALLY.}}
+\newcount\c@bxx
+\newenvironment{hint}{% begin-part of `hint'
+\if@xhint
+ \let\exx\relax
+ \c@bxx=\csname c@\@xenv\endcsname%
+ \advance\c@bxx by-1 %
+ \immediate\write\@xfhint{\string\setcounter{\@xenv}{\the\c@bxx}}
+ \immediate\write\@xfhint{\string\bxx(\@xenv)\@xlbl;}
+ \let\do\@makeother\dospecials\catcode`\^^M\active%
+ \def\verbatim@processline{%
+ \immediate\write\@xfhint{\the\verbatim@line}}%
+ \expandafter\verbatim@start
+\else
+ \def\exx{\exx}%
+ \expandafter\comment
+\fi}%
+{%
+\noexpand\exx
+\if@xhint
+ \immediate\write\@xfhint{\string\exx}
+\fi}
+\def\@bxx#1;{%
+ \@bxxarg#1;%
+ \@bxxdone}
+\def\@bxy#1;{%
+ \@bxxarg#1;%
+ \@bxydone}
+\def\@ball#1;{%
+ \@bxxarg#1;%
+ \@bdone@kern}
+\def\@bnone#1;{%
+ \@xhintfalse
+ \def\exx{\exx}
+ \expandafter\c@mm@nt}
+\def\@bnonebut#1;{%
+ \@bxxarg#1;%
+ \expandafter\ifx\csname\@xenv\@xlbl\endcsname\relax
+ \@xhintfalse
+ \def\exx{\exx}
+ \expandafter\c@mm@nt
+ \else
+ \expandafter\let\csname\@xenv\@xlbl\endcsname\relax
+ \expandafter\@bdone@kern
+ \fi}
+\def\@ballbut#1;{%
+ \@bxxarg#1;
+ \expandafter\ifx\csname\@xenv\@xlbl\endcsname\relax
+ \expandafter\@bdone@kern
+ \else
+ \expandafter\let\csname\@xenv\@xlbl\endcsname\relax
+ \@xhintfalse
+ \def\exx{\exx}
+ \expandafter\c@mm@nt
+ \fi}
+\def\@xenv{}
+\def\@xhed{}
+\def\@xlbl{}
+\def\@@xenv{}
+\def\@@xhed{}
+\def\@bxxarg{\futurelet\@tchar\chk@bxxarg}
+\def\chk@bxxarg{%
+ \ifx(\@tchar
+ \let\@txen\env@bxxarg
+ \else
+ \let\@txen\nop@bxxarg
+ \fi
+ \@txen}
+\def\env@bxxarg(#1)#2;{%
+ \edef\@xenv{#1}%
+ \@@bxxarg#2;}
+\def\nop@bxxarg#1;{%
+ \edef\@xenv{\@@xenv}%
+ \@@bxxarg#1;}
+\def\@@bxxarg{\futurelet\@tchar\chk@@bxxarg}
+\def\chk@@bxxarg{%
+ \ifx[\@tchar
+ \let\@txen\hed@@bxxarg
+ \else
+ \let\@txen\nop@@bxxarg
+ \fi
+ \@txen}
+\def\hed@@bxxarg[#1]#2;{%
+ \edef\@xhed{#1}%
+ \edef\@xlbl{#2}}
+\def\nop@@bxxarg#1;{%
+ \edef\@xhed{\@@xhed}%
+ \edef\@xlbl{#1}}
+\def\@bxxdone{%
+ \expandafter\ifx\csname\@xenv\@xlbl\endcsname\relax
+ \@xhintfalse
+ \def\exx{\exx}
+ \expandafter\c@mm@nt
+ \else
+ \expandafter\let\csname\@xenv\@xlbl\endcsname\relax
+ \expandafter\@bdone@kern
+ \fi}
+\def\@bdone@kern{%
+ \@xhinttrue%
+ \def\exx{\end{\@xenv}}
+ \expandafter\if@xNIL\@xhed;
+ \def\@txen{%
+ \begin{\@xenv}\@xdetail}
+ \else
+ \def\@txen{%
+ \begin{\@xenv}[\@xhed]\@xdetail}
+ \fi
+ \@txen}
+\def\@bxydone{\@bxy@kern(\@xenv){\@xlbl}}
+\def\@bxy@id{@}
+\def\@bxy@kern(#1)#2{%
+ \edef\@xtempi{#1#2}
+ \ifx\@bxy@id\@xtempi
+ \def\@bxy@id{@}
+ \expandafter\@bdone@kern
+ \else
+ \@xhintfalse
+ \def\exx{\exx}
+ \expandafter\c@mm@nt
+ \fi}
+\def\@xspec@i(#1)#2{
+ \let\bxx\@bxy
+ \edef\@bxy@id{#1#2}
+ \input \@xlib}
+\def\PLUS@@@setflag+#1,{%
+ \expandafter\let\csname\usr@xenv#1\endcsname\b@sy}
+\def\MINUS@@@setflag-#1,{%
+ \expandafter\let\csname\usr@xenv#1\endcsname\relax}
+\def\ZERO@@@setflag#1,{%
+ \expandafter\let\csname\usr@xenv#1\endcsname\b@sy}
+\def\PLUS@@@killflag+#1,{%
+ \expandafter\let\csname\usr@xenv#1\endcsname\relax}
+\def\MINUS@@@killflag-#1,{%
+ \expandafter\let\csname\usr@xenv#1\endcsname\b@sy}
+\def\ZERO@@@killflag#1,{%
+ \expandafter\let\csname\usr@xenv#1\endcsname\relax}
+\def\PLUS@@@xspec+#1,{%
+ \@xspec@i(\usr@xenv){#1}}
+\def\MINUS@@@xspec-#1,{}
+\def\ZERO@@@xspec#1,{%
+ \@xspec@i(\usr@xenv){#1}}
+\def\@xlib{}
+\def\@@xlib{}
+\def\@openlib#1;{%
+ \if@xNIL#1;
+ \expandafter\if@xNIL\@xlib;
+ % do nothing
+ \else
+ \def\@@xlib{\@xlib}
+ \fi
+ \else
+ \def\@@xlib{#1}
+ \fi
+ \input \@@xlib}
+\def\xspec{%
+ \def\@action{@@@xspec}%
+ \@multact}
+\def\xlib#1;{%
+ \edef\@xlib{#1}}
+\let\xopenlib\@openlib
+\def\xkill{%
+ \let\bxx\@bxx
+ \def\@action{@@@killflag}%
+ \@multact}
+\def\xkillall{%
+ \let\bxx\@bnone}
+\def\xkillallbut{%
+ \let\bxx\@bnonebut
+ \def\@action{@@@setflag}%
+ \@multact}
+\def\xget{%
+ \let\bxx\@bxx
+ \def\@action{@@@setflag}%
+ \@multact}
+\def\xgetall{%
+ \let\bxx\@ball}
+\def\xgetallbut{%
+ \let\bxx\@ballbut
+ \def\@action{@@@setflag}%
+ \@multact}
+{\catcode`\%=12
+\gdef\xhintready{
+ \begingroup\catcode`\%=12
+ \immediate\write\@xfhint{\string\endinput}
+ \immediate\write\@xfhint{%% END OF FILE %%}
+ \endgroup\immediate\closeout\@xfhint}}
+\def\xopenhint{%
+ \xhintready
+ \xgetall
+ \xlib \jobname.KTVhint;
+ \xopenlib;}
+\def\xenv(#1){%
+ \edef\@@xenv{#1}}
+\def\xdetailon{%
+ \let\@xdetail\@@xdetail}
+\def\xdetailoff{%
+ \let\@xdetail\relax}
+\def\nil@section#1{}
+\AtBeginDocument{%
+ \let\old@section\section
+ \let\old@subsection\subsection
+ \let\old@subsubsection\subsubsection}
+\def\xdisablesection{%
+ \let\section\nil@section%
+ \let\subsection\nil@section%
+ \let\subsubsection\nil@section}
+\def\xenablesection{%
+ \let\section\old@section%
+ \let\subsection\old@subsection%
+ \let\subsubsection\old@subsubsection}
+\let\bxx\@bxx
+\endinput
+%%
+%% End of file `ktv-texdata.sty'.