Debian Codegraph @

texmf-dist/tex/generic/tex4ht/slides.4ht

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 % slides.4ht 2009-05-21-09:32 %
3 % Copyright (C) 1999--2009 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.3c 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.3c or later is part of all distributions %
12 % of LaTeX version 2005/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 % [email protected] %
25 % http://www.cse.ohio-state.edu/~gurari %
26 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27 \immediate\write-1{version 2009-05-21-09:32}
28
29 \def\btn:s{%
30 \advance\c@slide by -1
31 \edef\prevCutAt{\RefFile{\jobname-sl\the\c@slide.\:html}}%
32 \ifx\prevCutAt\space \let\prevCutAt=\empty \fi
33 \advance\c@slide by 2
34 \edef\nextCutAt{\RefFile{\jobname-sl\the\c@slide.\:html}}%
35 \ifx\nextCutAt\space \let\nextCutAt=\empty \fi
36 }
37 \append:def\slide{\expandafter\ifx \csname slide:\endcsname\relax \else
38 \NextFile{\jobname-sl\the\c@slide .\:html}%
39 \HPage{\a:slidename}%
40 \bgroup\btn:s \default:bts{}{tail}%
41 \egroup
42 \fi}
43 \pend:def\endslide{\expandafter\ifx \csname slide:\endcsname\relax \else
44 \bgroup \btn:s
45 \pend:def\b:crsbt{\Link-{}{tail\FileName}\EndLink}%
46 \default:bts{tail}{}%
47 \egroup\EndHPage{}\fi}
48 \NewConfigure{slidename}{1}
49 \Configure{slidename}{\the\c@slide}
50 \pend:def\maketitle{\bgroup
51 \gHAdvance\:mpNum by 1
52 \HAssign\minipageNum=\:mpNum \relax
53 %
54 \pend:def\@title{\a:ttl}\append:def\@title{\b:ttl}%
55 \pend:def\@date{\a:date}\append:def\@date{\b:date}%
56 \pend:def\@author{\a:author}\append:def\@author{\b:author}%
57 \a:mktl }
58 \append:def\maketitle{\b:mktl \egroup }
59 \NewConfigure{maketitle}[4]{\c:def\a:mktl{#1}\c:def\b:mktl{#2}%
60 \c:def\a:ttl{#3}\c:def\b:ttl{#4}}
61 \NewConfigure{author date}[4]{%
62 \c:def\a:author{#1}\c:def\b:author{#2}%
63 \c:def\a:date{#3}\c:def\b:date{#4}}
64 \long\def\:tempc{\@roman \c@enumiii}
65 \ifx \theenumiii\:tempc
66 \def\:tempc{\a:enumiii\@roman\c@enumiii\b:enumiii}
67 \HLet\theenumiii\:tempc
68 \fi
69 \NewConfigure{enumiii}{2}
70
71 \Hinput{slides}
72 \endinput
73