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

« back to all changes in this revision

Viewing changes to texmf/tex/generic/tex4ht/amsthm.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
% amsthm.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
\def\qed:sym{%
 
31
  \leavevmode\Picture+[Q.E.D.]{}\o:qedsymbol:\EndPicture
 
32
  \SavePicture\qed:sym[Q.E.D.] }
 
33
\def\:temp{\qed:sym }
 
34
\MathSymbol\mathop{qedsymbol}
 
35
 
 
36
 
 
37
\def\:temp{\ShowRefstepAnchor\o:@begintheorem:}
 
38
\HLet\@begintheorem\:temp
 
39
\ifx \deferred@thm@head\:UnDef\else
 
40
   \expandafter\dth@everypar\expandafter{%
 
41
     \the\dth@everypar
 
42
     \edef\:temp{\the\ht:everypar}\ifx \:temp\empty
 
43
        \ht:everypar{\HtmlPar}\ShowPar
 
44
     \fi
 
45
   }%
 
46
   \def\deferred@thm@head#1{%
 
47
  \if@inlabel \indent \par \fi 
 
48
  \if@nobreak
 
49
    \adjust@parskip@nobreak
 
50
  \else
 
51
    \addpenalty\@beginparpenalty
 
52
    \addvspace\@topsep
 
53
    \addvspace{-\parskip}%
 
54
  \fi
 
55
  \global\@inlabeltrue
 
56
  \ht:everypar\dth@everypar
 
57
  \let\sv:newtheorem=\b:newtheorem \let\b:newtheorem=\empty
 
58
  \item[\normalfont#1]%
 
59
  \let\b:newtheorem=\sv:newtheorem \b:newtheorem \ignorespaces
 
60
}
 
61
 
 
62
\fi
 
63
\def\:temp#1{%
 
64
   \def\:temp{#1}%
 
65
   \edef\:temp{\expandafter\eorem:syle  \meaning\:temp!*?: }%
 
66
   \expandafter\let\expandafter\@tmp:sv\csname th@\:temp\endcsname
 
67
   \def\:tempa##1{%
 
68
      \expandafter\append:def\csname th@##1\endcsname{%
 
69
         \expandafter\let\csname th@##1\endcsname=\@tmp:sv
 
70
         \let\thm:headnl=\thmheadnl
 
71
         \pend:def\thmheadnl{\let\thmheadnl\thm:headnl \b:newtheorem}%
 
72
         \append:def\thmheadnl{\expandafter
 
73
             \ht:everypar\expandafter{\the\ht:everypar
 
74
             \ht:everypar{\HtmlPar}}}}}%
 
75
   \expandafter\:tempa\expandafter{\:temp}%
 
76
   \let\sv:trivlist=\trivlist
 
77
   \def\trivlist{\let\trivlist\sv:trivlist \let\sv:trivlist\:unDef
 
78
      \a:newtheorem \trivlist}%
 
79
   \aftergroup\c:newtheorem
 
80
   \:thm{#1}}
 
81
\HLet\@thm\:temp
 
82
\HRestore\@endtheorem
 
83
\bgroup
 
84
\def\bgroup{\catcode`\\=0 \catcode`\t=11 }
 
85
\catcode`\/=0
 
86
\catcode`\@=12
 
87
\catcode`\h=12
 
88
\catcode`\\=12
 
89
/catcode`/t=12
 
90
/edef~{/def/noexpand/eorem:syle##1\th@##2 !*?: {##2}}
 
91
/bgroup
 
92
\expandafter\egroup ~
 
93
\long\def\:temp[#1]{\par\a:proof
 
94
    \csname o:\string\proof :\endcsname[#1]\b:proof}
 
95
\expandafter\HLet\csname \string\proof \endcsname=\:temp
 
96
\append:def\endproof{\c:proof}
 
97
\NewConfigure{proof}{3}
 
98
 
 
99
 
 
100
\Hinput{amsthm}
 
101
\endinput
 
102