Debian Codegraph @

texmf-dist/source/generic/tex4ht/common.tex

raw
1 % $Id: common.tex 411 2018-06-11 13:12:17Z michal_h21 $
2 % A few common TeX definitions for literate sources. Not installed in runtime.
3 %
4 % Copyright 2009-2017 TeX Users Group
5 % Copyright 1996-2009 Eitan M. Gurari
6 %
7 % This work may be distributed and/or modified under the
8 % conditions of the LaTeX Project Public License, either
9 % version 1.3c of this license or (at your option) any
10 % later version. The latest version of this license is in
11 % http://www.latex-project.org/lppl.txt
12 % and version 1.3c or later is part of all distributions
13 % of LaTeX version 2005/12/01 or later.
14 %
15 % This work has the LPPL maintenance status "maintained".
16 %
17 % The Current Maintainer of this work
18 % is the TeX4ht Project <http://tug.org/tex4ht>.
19 %
20 % If you modify this program, changing the
21 % version identification would be appreciated.
22
23 \newcount\tmpcnt \tmpcnt\time \divide\tmpcnt 60
24 \edef\temp{\the\tmpcnt}
25 \multiply\tmpcnt -60 \advance\tmpcnt \time
26
27 \edef\version{\the\year-\ifnum \month<10 0\fi
28 \the\month-\ifnum \day<10 0\fi\the\day
29 -\ifnum \temp<10 0\fi \temp
30 :\ifnum \tmpcnt<10 0\fi\the\tmpcnt}
31
32 % a fixed-string version that can be enabled for debugging.
33 %\edef\versionDebug{000-00-00-00:00}
34 %\let\version\versionDebug
35
36 % #1 is the first year for Eitan. The last year is always 2009. RIP.
37 \def\CopyYear.#1.{#1-2009}
38
39 % command for write to terminal and the log file
40 % this version is used in the .4ht files build
41 % identical command is defined also in tex4ht-sty.tex,
42 % it is used in TeX document compilation
43 \def\writesixteen#1{\immediate\write1616{#1}}