summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/dprogress/dprogress.sty
blob: a5f75bb1f9eede39e27f328eedd242bd8a451a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
%%
%% This is file `dprogress.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% dprogress.dtx  (with options: `package')
%% 
%% dprogress: Output more dprogress information while compiling latex
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2008 by Brian Amberg <latex@brian-amberg.de>
%% 
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.2 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.2 or later is part of all distributions of LaTeX version
%% 1999/12/01 or later.
%% 
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{dprogress}
    [2008/02/21 v0.1 .dtx dprogress]
 \newcommand{\dprogress@Display}[3]{%
   \typeout{#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1#1}%
   \typeout{#1 #2: #3}%
   \typeout{}
 }
  \ifdefined\align
    \message{\string\foo\space is defined}%
      \let\dprogress@OldAlign\align
      \renewcommand{\align}{%
        \typeout{}%
        \typeout{= Equation: \theequation}%
        \typeout{}%
        \dprogress@OldAlign%
      }
  \else
    \message{Progress: the align command is not defined, not overriding. If you use amsmath, be sure to include dprogress as the last file}%
  \fi
  \ifdefined\part
    \let\dprogress@OldPart\part
    \renewcommand{\part}{%
      \@ifstar
      \dprogress@DisplayPartStar%
      \dprogress@DisplayPartNoStar%
    }
    \newcommand{\dprogress@DisplayPartNoStar}[1]{%
      \dprogress@Display{*}{Part \thepart}{#1}
      \dprogress@OldPart{#1}%
    }
    \newcommand{\dprogress@DisplayPartStar}[1]{%
      \dprogress@Display{*}{Part \thepart}{#1}
      \dprogress@OldPart*{#1}%
    }
  \else
    \message{Progress: the part command is not defined, not overriding. Be sure to include dprogress as the last file, if your document uses this command.}%
  \fi
  \ifdefined\chapter
    \let\dprogress@OldChapter\chapter
    \renewcommand{\chapter}{%
      \@ifstar
      \dprogress@DisplayChapterStar%
      \dprogress@DisplayChapterNoStar%
    }
    \newcommand{\dprogress@DisplayChapterNoStar}[1]{%
      \dprogress@Display{*}{Chapter \thechapter}{#1}
      \dprogress@OldChapter{#1}%
    }
    \newcommand{\dprogress@DisplayChapterStar}[1]{%
      \dprogress@Display{*}{Chapter \thechapter}{#1}
      \dprogress@OldChapter*{#1}%
    }
  \else
    \message{Progress: the chapter command is not defined, not overriding. Be sure to include dprogress as the last file, if your document uses this command.}%
  \fi
  \ifdefined\section
    \let\dprogress@OldSection\section
    \renewcommand{\section}{%
      \@ifstar
      \dprogress@DisplaySectionStar%
      \dprogress@DisplaySectionNoStar%
    }
    \newcommand{\dprogress@DisplaySectionNoStar}[1]{%
      \dprogress@Display{*}{Section \thesection}{#1}
      \dprogress@OldSection{#1}%
    }
    \newcommand{\dprogress@DisplaySectionStar}[1]{%
      \dprogress@Display{*}{Section \thesection}{#1}
      \dprogress@OldSection*{#1}%
    }
  \else
    \message{Progress: the section command is not defined, not overriding. Be sure to include dprogress as the last file, if your document uses this command.}%
  \fi
  \ifdefined\subsection
    \let\dprogress@OldSubSection\subsection
    \renewcommand{\subsection}{\@ifstar
      \dprogress@DisplaySubSectionStar%
      \dprogress@DisplaySubSectionNoStar%
    }
    \newcommand{\dprogress@DisplaySubSectionNoStar}[1]{%
      \dprogress@Display{+}{Subsection \thesubsection}{#1}
      \dprogress@OldSubSection{#1}%
    }
    \newcommand{\dprogress@DisplaySubSectionStar}[1]{%
      \dprogress@Display{+}{Subsection \thesubsection}{#1}
      \dprogress@OldSubSection*{#1}%
    }
  \else
    \message{Progress: the subsection command is not defined, not overriding. Be sure to include dprogress as the last file, if your document uses this command.}%
  \fi
  \ifdefined\subsubsection
    \let\dprogress@OldSubSubSection\subsubsection
    \renewcommand{\subsubsection}{\@ifstar
       \dprogress@DisplaySubSubSectionStar%
       \dprogress@DisplaySubSubSectionNoStar%
    }
    \newcommand{\dprogress@DisplaySubSubSectionNoStar}[1]{%
      \dprogress@Display{-}{Subsubsection \thesubsection}{#1}
      \dprogress@OldSubSubSection{#1}%
    }
    \newcommand{\dprogress@DisplaySubSubSectionStar}[1]{%
      \dprogress@Display{-}{Subsubsection \thesubsection}{#1}
      \dprogress@OldSubSubSection*{#1}%
    }
  \else
    \message{Progress: the subsubsection command is not defined, not overriding. Be sure to include dprogress as the last file, if your document uses this command.}%
  \fi
\endinput
%%
%% End of file `dprogress.sty'.