~ubuntu-branches/debian/sid/tex4ht/sid

« back to all changes in this revision

Viewing changes to texmf/tex/generic/tex4ht/fancyvrb.4ht

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2005-04-05 14:14:41 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050405141441-x4dojdgz3frkfyet
Tags: 20050402.1817-1
* New upstream release (2005-04-02-18:17). Closes: #299934.
* See README.src, README.validate, README.Debian and copyright
  for information on minor changes.
* This upload fixes a some .htf files. Closes: #295109.
* Updated the description to reflect recent changes.
* Fixed some typos in src/tex4ht-mkht.tex and consequently
  in the mk4ht script.
* Updated the man page to include mk4ht. 
* Updated the description of options for the scripts in the man page.
  Put more information in the man page about the way the system works.
  Closes: #219348, #219347.
* Added debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
2
% fancyvrb.4ht                          2005-03-27-10:43 %
 
3
% Copyright (C) 1997--2005       Eitan M. Gurari         %
 
4
%                                                        %
 
5
% This work may be distributed and/or modified under the %
 
6
% conditions of the LaTeX Project Public License, either %
 
7
% version 1.3 of this license or (at your option) any    %
 
8
% later version. The latest version of this license is   %
 
9
% in                                                     %
 
10
%   http://www.latex-project.org/lppl.txt                %
 
11
% and version 1.3 or later is part of all distributions  %
 
12
% of LaTeX version 2003/12/01 or later.                  %
 
13
%                                                        %
 
14
% This work has the LPPL maintenance status "maintained".%
 
15
%                                                        %
 
16
% This Current Maintainer of this work                   %
 
17
% is Eitan M. Gurari.                                    %
 
18
%                                                        %
 
19
% If you modify this program your changing its signature %
 
20
% with a directive of the following form will be         %
 
21
% appreciated.                                           %
 
22
%            \message{signature}                         %
 
23
%                                                        %
 
24
%                             gurari@cse.ohio-state.edu  %
 
25
%                 http://www.cse.ohio-state.edu/~gurari  %
 
26
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
27
\immediate\write-1{version 2005-03-27-10:43}
 
28
 
 
29
 
 
30
   \pend:def\FV@FormattingPrep{\let\fv:color\empty
 
31
  \ifx \color\:UnDef\else\Configure{color}{\xdef\fv:color}\fi
 
32
}
 
33
\append:def\FV@FormattingPrep{\a:fancyvrb
 
34
   \ifx \FV@BeginListFrame\relax\else
 
35
   \tmp:dim=\FV@FrameRule \edef\HSize{\the\tmp:dim}%
 
36
   \a:fancyvrbframe
 
37
\fi
 
38
\ifx \FV@LeftListFrame\relax\else
 
39
   \tmp:dim=\FV@FrameRule \edef\HSize{\the\tmp:dim}%
 
40
   \b:fancyvrbframe
 
41
\fi
 
42
\ifx \FV@EndListFrame\relax\else
 
43
   \tmp:dim=\FV@FrameRule \edef\HSize{\the\tmp:dim}%
 
44
   \c:fancyvrbframe
 
45
\fi
 
46
\ifx \FV@RightListFrame\relax\else
 
47
   \tmp:dim=\FV@FrameRule \edef\HSize{\the\tmp:dim}%
 
48
   \d:fancyvrbframe
 
49
\fi
 
50
%
 
51
   \bgroup
 
52
  \ifx \fv:color\empty \else{
 
53
     \let\HColor\fv:color \a:fancyvrbcolor
 
54
  }\fi
 
55
  \ifx \FancyVerbFillColor\relax \else
 
56
     \:fvcolor \b:fancyvrbcolor \FancyVerbFillColor!*?: %
 
57
  \fi
 
58
  \ifx \FancyVerbRuleColor\relax \else
 
59
     \:fvcolor \c:fancyvrbcolor \FancyVerbRuleColor!*?: %
 
60
  \fi
 
61
\egroup
 
62
\let\FV@BeginListFrame\relax
 
63
\let\FV@LeftListFrame\relax
 
64
\let\FV@RightListFrame\relax
 
65
\let\FV@EndListFrame\relax
 
66
%
 
67
}
 
68
\def\FV@ListProcessLine#1{%
 
69
    \hbox{\c:fancyvrb \anc:lbl r{FancyVerbLine}\FV@LeftListNumber
 
70
      \FV@LeftListFrame \e:fancyvrb \FancyVerbFormatLine{#1}\f:fancyvrb
 
71
      \FV@RightListFrame \csname FV@RightListNumber\endcsname
 
72
          \d:fancyvrb}}
 
73
\def\FV@EndList{\FV@ListProcessLastLine  \FV@EndListFrame
 
74
  \IgnorePar\b:fancyvrb\par\@endparenv
 
75
  \endgroup   \@endpetrue}
 
76
\def\FV@StepLineNo{%
 
77
  \FV@SetLineNo
 
78
  \def\FV@StepLineNo{\SkipRefstepAnchor\refstepcounter{FancyVerbLine}}%
 
79
  \FV@StepLineNo}
 
80
\begingroup
 
81
\catcode`\^^M=\active%
 
82
\gdef\FVC@Verb#1{%
 
83
  \begingroup%
 
84
    \FV@UseKeyValues%
 
85
    \let\a:fancyvrb\empty\FV@FormattingPrep%
 
86
    \FV@CatCodes%
 
87
    \outer\def^^M{}%
 
88
    \catcode`#1=12%
 
89
    \def\@tempa{\def\FancyVerbGetVerb####1####2}%
 
90
    \expandafter\@tempa\string#1{\mbox{\a:verb##2\b:verb}\endgroup}%
 
91
    \FancyVerbGetVerb\FV@EOL}%
 
92
\endgroup
 
93
\def\FV@UseVerb#1{\mbox{\FV@UseKeyValues
 
94
   \let\a:fancyvrb\empty \FV@FormattingPrep
 
95
   \a:verb #1\b:verb}}
 
96
\def\:fvcolor#1{\def\a:color##1##2!*?: {%
 
97
   \Configure{SetHColor}#1{##1}}}
 
98
\define@key{FV}{framerule}{%
 
99
  \@tempdima=#1\relax
 
100
  \edef\FV@FrameRule{\number\@tempdima sp\relax}%
 
101
  {\Advance:\fancyvrbNo by 1   \tmp:dim=\FV@FrameRule
 
102
   \edef\HSize{\the\tmp:dim}%
 
103
   \e:fancyvrbframe}}
 
104
\define@key{FV}{framesep}{%
 
105
  \@tempdima=#1\relax
 
106
  \edef\FV@FrameSep{\number\@tempdima sp\relax}%
 
107
  {\Advance:\fancyvrbNo by 1    \tmp:dim=\FV@FrameSep
 
108
   \edef\HSize{\the\tmp:dim}%
 
109
   \f:fancyvrbframe}}
 
110
\def\FV@BVerbatimBegin{%
 
111
  \begingroup
 
112
    \let\a:fancyvrb\empty \IgnorePar
 
113
    \FV@UseKeyValues
 
114
    \FV@BeginVBox
 
115
    \let\FV@ProcessLine\FV@BProcessLine
 
116
    \FV@FormattingPrep
 
117
    \FV@ObeyTabsInit \a:BVerbatimInput
 
118
}%
 
119
\def\FV@BVerbatimEnd{\b:BVerbatimInput \FV@EndVBox\endgroup}
 
120
\def\FV@BProcessLine#1{\hbox{\FancyVerbFormatLine
 
121
   {\c:BVerbatimInput#1\d:BVerbatimInput}}}
 
122
\NewConfigure{BVerbatimInput}{4}
 
123
\pend:def\V@@footnotetext{%
 
124
   \let\FNmark\@thefnmark
 
125
   \begingroup
 
126
   \ifnum \FNnum>\fn:txt
 
127
      \gHAssign\fn:txt\FNnum
 
128
      \def\@makefnmark{\hbox{\ExitHPage{\a:footnote}}}%
 
129
      \b:footnote \def\end:fverb{\c:footnote}%
 
130
   \else
 
131
      \a:footnotetext \b:footnotetext \let\end:fverb\c:footnotetext
 
132
   \fi
 
133
   \:gobbleII}
 
134
\append:def\V@@@footnotetext{\end:fverb\endgroup}
 
135
 
 
136
   \NewConfigure{fancyvrb}{6}
 
137
\NewConfigure{fancyvrbcolor}{3}
 
138
\NewConfigure{fancyvrbframe}{6}
 
139
 
 
140
 
 
141
\Hinput{fancyvrb}
 
142
\endinput
 
143