Debian Codegraph @

texmf-dist/doc/latex/progress/progress.tex

raw
1 \documentclass{article}
2 \usepackage[english]{babel}
3 \usepackage[T1]{fontenc}
4 \usepackage[latin1]{inputenc}
5 \usepackage{url}
6 \usepackage[draft, subsection]{progress}
7 \setlength{\parindent}{0mm}
8 \setlength{\parskip}{2mm}
9 \reversemarginpar
10 \begin{document}
11 \title{Progress}
12 \author{Kasper B.\ Graversen\\\url{[email protected]} }
13 \date{v1.10, 29.06.2003}
14 \maketitle
15 %\tableofcontents
16
17 % shortcuts for the margin notes...
18 \newcommand{\margincommanda}[1]{\marginpar{{\scriptsize \texttt{\textbackslash{}#1}}}}
19 \newcommand{\margincommandb}[1]{\marginpar{{\scriptsize \texttt{#1}}}}
20
21
22 % change layout of progress meters
23 \renewcommand{\ProgressDocOutput}[1]{\vskip-0.6cm\ProgressDrawBar{#1}\vskip 0.4cm}
24 \ProgressGfxXSize = 1725
25 \ProgressGfxYSize = 12
26
27
28
29
30
31
32
33
34 \begin{abstract}
35 Progress is a package which when compiling \LaTeX{} documents,
36 generates a HTML file giving an overview of the documents state (of how finished its parts are).
37 \end{abstract}
38
39
40 \section{Version history}
41 \progress{10}
42 \begin{tabular}{llp{8.4cm}}
43 29.06-2003 & v1.10 & $\circ$ Enabled graphical output \\
44 & & $\circ$ New options \texttt{textonly}, \texttt{textgfx} \\
45 & & $\circ$ New commands \verb|\ProgressGfxXSize|, \par \verb|\ProgressGfxYSize| \verb|\ProgressDocOutput| \\
46 \\
47 11.06-2003 & v1.00 & $\circ$ Improved documentation (this document) \\
48 & & $\circ$ Added \verb|\ProgressReportName| command to control report filename.\\
49 & & $\circ$ Small bugfix.\\
50 \\
51 03.05-2003 & v0.80 & $\circ$ Initial release \\
52 \end{tabular}
53
54 \bigskip
55 If you enjoy using this package, please write me an email stating so. It's always nice to know someone is using your work, and it'll probably encourage me to keep updating the package \verb|;-)|
56
57
58
59 \section{Introduction}
60 \progress{20}
61 When working on larger documents, or in collaboration with other people, it's nice to have an overview of the documents' state. By inserting progress estimates throughout the document, this package is able to generate a HTML file which gives such an overview. Additionally the package enables you to include the estimates in the document, so readers are aware of the state of what they are reading.
62
63
64 \section{Usage}
65 \progress{30}
66 In the top of you document you must determine how detailed you want the overview. It can be compared to the table of contents list, where you can determine its verbosity. You have to choose whether you want to see only chapters, chapters--sections, chapters--subsections or chapters--subsubsections. For this you must use either of these options \margincommandb{chapter}\texttt{chapter}, \margincommandb{section}\texttt{section}, \margincommandb{subsection}\texttt{subsection}, or \margincommandb{subsubsection}\texttt{subsubsection}. If you are using the ``article'' documentclass, the progress adapts to the fact, that chapters do not exist.
67
68 Secondly, you must choose whether the document is a draft (progress estimates are included in the document), or whether the document is ready for the final print. For this you must use either of these arguments\margincommandb{draft} \texttt{draft} or \texttt{final}. If \margincommandb{final} you use the \texttt{final} option, no progress estimates are included in the document, and no progress report is generated.
69
70 Thirdly, you must choose the output of the ``progress information'' inserted into the document. Should it be graphical, textural or both. Option \margincommandb{textonly} \texttt{textonly} gives a textural representation. Option \margincommandb{textgfx} \texttt{textgfx} gives a a graphical progress bar and textural representation. Finally not specifying anything gives a graphical progress bar.
71
72 \bigskip
73 An example usage:\\
74 \verb| \usepackage[subsubsection, draft]{progress}|
75 \vskip 0.3cm
76 Which denotes to include all levels for the overview, and a graphical bar shown in the margin denoting the progress.
77
78 Throughout \margincommanda{progress} the document use \verb|\progress{|$n$\verb|}| after each \textbackslash\texttt{chapter}, \textbackslash\texttt{section},... where $n$ is a number between $-100$ to $100$. Use the numbers $-100$ to $-1$ to denote severe problems has been encountered (see the table below).
79
80 The meaning of this number is described in the generated HTML file and below. You can easily change the meaning by hacking the sty file.
81
82 \medskip
83
84 \begin{tabular}{rp{10cm}}
85 \hline
86 $<$ 0 & Means the same as above 0, but indicate that the author is stuck and needs consultance with co-author(s)\\
87 $0-50$ & Unfinished\\
88 $51-70$& 1st draft - can have ``rough edges''\\
89 & Focus: main form, contents, major points.\\
90 $71-80$& 2nd draft.\\
91 & Focus: section consistency internally within the chapter, errors, misunderstandings, disagreements, missing points, missing references, additions, readability.\\
92 $81-90$& 3rd draft\\
93 & Focus: chapter consistency externally within the report, agreement with contents, form, last check if points have been left out, readability.\\
94 $91-99$& Deliverable.\\
95 95 & Deliverable, all quotes checked.\\
96 96 & Deliverable, BibTeX references checked.\\
97 97 & Deliverable, punctuation checked.\\
98 98 & Deliverable, thesaurus consulted.\\
99 99 & Deliverable, whole document spelling checked.\\
100 100 & Finished\\
101 \hline
102 \end{tabular}
103
104
105 \section{Customizations issues}
106 \progress{40}
107 We have now shown the general usage. More advanced users probably would like a bit more control, thus below, we present various aspects of customizing the effects of `progress'.
108
109 \subsection{Customizing progress output filename}
110 \progress{50}
111 You can customize the name of the HTML progress report, by changing the definition of \margincommanda{ProgressReportName} \verb|\ProgressReportName|.
112
113 \medskip
114 The default definition is: ``\verb|\jobname\YYYYMMDDdate.html|''
115
116
117
118 which when compiling the file ``foo.tex'' on \today{}, the resulting filename is ``foo\YYYYMMDDdate .html''. You can use any macro you want, but the most obvious ones are:
119
120 \verb|\jobname| returns the name of the file being compiled by \LaTeX{}.
121
122 \verb|\YYYYMMDDdate|\margincommanda{YYYYMMDDdate} results in the current date of the form ``YearMonthDay''. There are 3 different date formats defined in the package:
123 \verb|\YYYYMMDDdate|,
124 \verb|\DDMMYYYYdate|\margincommanda{DDMMYYYYdate}
125 and \verb|\MMDDYYYYdate|\margincommanda{MMDDYYYYdate}
126
127 If you prefer to have only one progress file you can change the output file to not contain any dates, hence it will always overwrite the old progress report file. This is easily done by inserting
128
129 \verb| \renewcommand{\ProgressReportName}{\jobname.html}|
130
131
132
133 \subsection{Customizing textural output in dvi/pdf file}
134 \progress{60}
135 You can change what is being written in the report, when a \verb|\progress| is met. This is done by changing the command \margincommanda{ProgressDocOutput} \verb|\ProgressDocOutput|. The command takes as argument a number, denoting the percentage complete.
136 If you want to mix text and a graphical progress bar, the command \margincommanda{ProgressDrawBar} \verb|\ProgressDrawBar{55}| draws a bar, where 55 is the argument to the command. An example of a text-only re-definition is
137
138 \verb| \renewcommand{\ProgressDocOutput}[1]{\marginpar{progress is #1\%}}|
139
140
141
142
143
144
145
146
147 \subsection{Customizing graphic progress bar size}
148 \progress{70}
149 The graphical progress bars' size can be changed. In this document, I have experimented, by letting the progress bar be as wide as the textlines, which gives another effect than having a small gauge in the margin. The size of the bar can be changed by changing the values of \margincommanda{ProgressGfxXSize } \verb|\ProgressGfxXSize| and \margincommanda{ProgressGfxYSize} \verb|\ProgressGfxYSize|.
150 The definitions used for this document is
151
152 \begin{verbatim}
153 \renewcommand{\ProgressDocOutput}[1]{%
154 \vskip-0.6cm\ProgressDrawBar{#1}\vskip 0.4cm}
155 \ProgressGfxXSize = 1725
156 \ProgressGfxYSize = 12
157 \end{verbatim}
158
159
160
161
162
163 \section{Compability issues}
164 \progress{80}
165
166 The package works by redefining the \verb|\chapter|, \verb|\section|, etc. commands, so when encountered, information will be written in the HTML file. For this reason, this package does not work with \TeX{} documents, or `exotic' extensions, as they do not define such commands. I have tested the package only with the ``book'', ``report'', and ``article'' documentstyles, and they worked fine. Further I've tested progress with the package `hitec', which is an altered ``article'' cls which also worked fine.
167
168
169
170 \section{Thanks}
171 \progress{90}
172
173 Thanks to Robin Fairbairns for helping me sorting things out ;-)
174
175 Thanks to Dan Luecking for some definitions
176
177 Also thanks to David Bausum for his free 'trept' ``\TeX{}: Reference and Examples'' information material.
178
179 And finally, thanks to everyone keeping \LaTeX{} alive (be it package writers or people who introduce this wonderful world to other people).
180
181
182 \section{Example document}
183 \progress{100}
184 For the inexperienced user, here is a example document, which shows you how to use the progress package
185
186 \begin{verbatim}
187 \documentclass{report}
188 \usepackage[draft,subsubsection]{progress}
189 \begin{document}
190 \chapter{foo}
191 \progress{29}
192 ...
193 \section{bar}
194 \progress{33}
195 ...
196 \end{document}
197 \end{verbatim}
198 \end{document}
199