summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/fancyvrb.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/fancyvrb.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/fancyvrb.4ht143
1 files changed, 143 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/fancyvrb.4ht b/Master/texmf-dist/tex/generic/tex4ht/fancyvrb.4ht
new file mode 100644
index 00000000000..d5aaf1f32ac
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/tex4ht/fancyvrb.4ht
@@ -0,0 +1,143 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% fancyvrb.4ht 2005-10-23-04:19 %
+% Copyright (C) 1997--2005 Eitan M. Gurari %
+% %
+% This work may be distributed and/or modified under the %
+% conditions of the LaTeX Project Public License, either %
+% version 1.3 of this license or (at your option) any %
+% later version. The latest version of this license is %
+% in %
+% http://www.latex-project.org/lppl.txt %
+% and version 1.3 or later is part of all distributions %
+% of LaTeX version 2003/12/01 or later. %
+% %
+% This work has the LPPL maintenance status "maintained".%
+% %
+% This Current Maintainer of this work %
+% is Eitan M. Gurari. %
+% %
+% If you modify this program your changing its signature %
+% with a directive of the following form will be %
+% appreciated. %
+% \message{signature} %
+% %
+% gurari@cse.ohio-state.edu %
+% http://www.cse.ohio-state.edu/~gurari %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\immediate\write-1{version 2005-10-23-04:19}
+
+
+ \pend:def\FV@FormattingPrep{\let\fv:color\empty
+ \ifx \color\:UnDef\else\Configure{color}{\xdef\fv:color}\fi
+}
+\append:def\FV@FormattingPrep{\a:fancyvrb
+ \ifx \FV@BeginListFrame\relax\else
+ \tmp:dim=\FV@FrameRule \edef\HSize{\the\tmp:dim}%
+ \a:fancyvrbframe
+\fi
+\ifx \FV@LeftListFrame\relax\else
+ \tmp:dim=\FV@FrameRule \edef\HSize{\the\tmp:dim}%
+ \b:fancyvrbframe
+\fi
+\ifx \FV@EndListFrame\relax\else
+ \tmp:dim=\FV@FrameRule \edef\HSize{\the\tmp:dim}%
+ \c:fancyvrbframe
+\fi
+\ifx \FV@RightListFrame\relax\else
+ \tmp:dim=\FV@FrameRule \edef\HSize{\the\tmp:dim}%
+ \d:fancyvrbframe
+\fi
+%
+ \bgroup
+ \ifx \fv:color\empty \else{
+ \let\HColor\fv:color \a:fancyvrbcolor
+ }\fi
+ \ifx \FancyVerbFillColor\relax \else
+ \:fvcolor \b:fancyvrbcolor \FancyVerbFillColor!*?: %
+ \fi
+ \ifx \FancyVerbRuleColor\relax \else
+ \:fvcolor \c:fancyvrbcolor \FancyVerbRuleColor!*?: %
+ \fi
+\egroup
+\let\FV@BeginListFrame\relax
+\let\FV@LeftListFrame\relax
+\let\FV@RightListFrame\relax
+\let\FV@EndListFrame\relax
+%
+}
+\def\FV@ListProcessLine#1{%
+ \hbox{\c:fancyvrb \anc:lbl r{FancyVerbLine}\FV@LeftListNumber
+ \FV@LeftListFrame \e:fancyvrb \FancyVerbFormatLine{#1}\f:fancyvrb
+ \FV@RightListFrame \csname FV@RightListNumber\endcsname
+ \d:fancyvrb}}
+\def\FV@EndList{\FV@ListProcessLastLine \FV@EndListFrame
+ \IgnorePar\b:fancyvrb\par\@endparenv
+ \endgroup \@endpetrue}
+\def\FV@StepLineNo{%
+ \FV@SetLineNo
+ \def\FV@StepLineNo{\SkipRefstepAnchor\refstepcounter{FancyVerbLine}}%
+ \FV@StepLineNo}
+\begingroup
+\catcode`\^^M=\active%
+\gdef\FVC@Verb#1{%
+ \begingroup%
+ \FV@UseKeyValues%
+ \let\a:fancyvrb\empty\FV@FormattingPrep%
+ \FV@CatCodes%
+ \outer\def^^M{}%
+ \catcode`#1=12%
+ \def\@tempa{\def\FancyVerbGetVerb####1####2}%
+ \expandafter\@tempa\string#1{\mbox{\a:verb##2\b:verb}\endgroup}%
+ \FancyVerbGetVerb\FV@EOL}%
+\endgroup
+\def\FV@UseVerb#1{\mbox{\FV@UseKeyValues
+ \let\a:fancyvrb\empty \FV@FormattingPrep
+ \a:verb #1\b:verb}}
+\def\:fvcolor#1{\def\a:color##1##2!*?: {%
+ \Configure{SetHColor}#1{##1}}}
+\define@key{FV}{framerule}{%
+ \@tempdima=#1\relax
+ \edef\FV@FrameRule{\number\@tempdima sp\relax}%
+ {\Advance:\fancyvrbNo by 1 \tmp:dim=\FV@FrameRule
+ \edef\HSize{\the\tmp:dim}%
+ \e:fancyvrbframe}}
+\define@key{FV}{framesep}{%
+ \@tempdima=#1\relax
+ \edef\FV@FrameSep{\number\@tempdima sp\relax}%
+ {\Advance:\fancyvrbNo by 1 \tmp:dim=\FV@FrameSep
+ \edef\HSize{\the\tmp:dim}%
+ \f:fancyvrbframe}}
+\def\FV@BVerbatimBegin{%
+ \begingroup
+ \let\a:fancyvrb\empty \IgnorePar
+ \FV@UseKeyValues
+ \FV@BeginVBox
+ \let\FV@ProcessLine\FV@BProcessLine
+ \FV@FormattingPrep
+ \FV@ObeyTabsInit \a:BVerbatimInput
+}%
+\def\FV@BVerbatimEnd{\b:BVerbatimInput \FV@EndVBox\endgroup}
+\def\FV@BProcessLine#1{\hbox{\FancyVerbFormatLine
+ {\c:BVerbatimInput#1\d:BVerbatimInput}}}
+\NewConfigure{BVerbatimInput}{4}
+\pend:def\V@@footnotetext{%
+ \let\FNmark\@thefnmark
+ \begingroup
+ \ifnum \FNnum>\fn:txt
+ \gHAssign\fn:txt\FNnum
+ \def\@makefnmark{\hbox{\ExitHPage{\a:footnote}}}%
+ \b:footnote \def\end:fverb{\c:footnote}%
+ \else
+ \a:footnotetext \b:footnotetext \let\end:fverb\c:footnotetext
+ \fi
+ \:gobbleII}
+\append:def\V@@@footnotetext{\end:fverb\endgroup}
+
+ \NewConfigure{fancyvrb}{6}
+\NewConfigure{fancyvrbcolor}{3}
+\NewConfigure{fancyvrbframe}{6}
+
+
+\Hinput{fancyvrb}
+\endinput
+