| 1 |
texdoctk v.0.5.3 |
| 2 |
|
| 3 |
texdoctk is a Perl/Tk-based frontend for easy access of package documentation |
| 4 |
for the TeX typesetting system on Unix platforms. It includes the following |
| 5 |
files: |
| 6 |
|
| 7 |
texdoctk - the program source |
| 8 |
texdoctk.dat - the database containing the information about the |
| 9 |
accessible documentation files for teTeX-texmf |
| 10 |
texdocrc.defaults - the system-wide default specification for viewer |
| 11 |
and printer settings |
| 12 |
texdoctk.1 - manpage |
| 13 |
README.texdoctk - this file |
| 14 |
The current version is 0.6.0. |
| 15 |
|
| 16 |
REQUIREMENTS |
| 17 |
The program is written in Perl/Tk; it requires Perl 5 and Perl/Tk 8.x. It is |
| 18 |
known to run with Perl 5.004_04 or higher and PerlTk 800.015. |
| 19 |
The database file texdoctk.dat is made for the teTeX distribution. |
| 20 |
Note that the program is *not* a viewer, but an interface to access a document |
| 21 |
with the appropriate viewer. Thus, you need to have appropriate viewers for |
| 22 |
the different formats to actually read the files. Documentations are available |
| 23 |
as .dvi, .ps, .pdf, .html or plain text; some packages are only documented in |
| 24 |
the .sty files. For plain text files (.txt, .sty etc.), texdoctk's own text |
| 25 |
viewer can be used (default). If a document format is not known, texdoctk |
| 26 |
will by default assume that it is plain text and use the text file viewer; |
| 27 |
this behaviour can be switched off in the Settings menu. |
| 28 |
If you want to print the documentations, you will need converters to turn |
| 29 |
non-PS files into PostScript. Here are some suggestions: |
| 30 |
dvi->ps: dvips (is part of teTeX) |
| 31 |
http://www.radicaleye.com/dvips.html |
| 32 |
pdf->ps: pdf2ps |
| 33 |
http://www.cs.wisc.edu/~ghost |
| 34 |
Acrobat Reader |
| 35 |
http://www.adobe.com |
| 36 |
html->ps: html2ps |
| 37 |
http://user.it.uu.se/~jan/html2ps.html |
| 38 |
plain text->ps: a2ps |
| 39 |
http://www-inf.enst.fr/~demaille/a2ps/ |
| 40 |
To increase the font size automatically for high-resolution screen, the program |
| 41 |
xwininfo is used; texdoctk will work without as well, though. |
| 42 |
|
| 43 |
INSTALLATION |
| 44 |
The program texdoctk can be copied into any directory where programs are stored |
| 45 |
on your system, e.g. into /usr/local/bin or, probably more adequate, into |
| 46 |
/usr/local/teTeX/bin. It assumes that you have the env command in /usr/bin/ |
| 47 |
available to determine the location of the Perl executable; therefore, you may |
| 48 |
need to change the first line of the code if this is not the case for your |
| 49 |
system or if for some reason your Perl executable is not called "perl"; you |
| 50 |
will also have to change the perl call in the sub viewslc as well. |
| 51 |
The database file texdoctk.dat and the configuration file texdocrc.defaults |
| 52 |
must then be put into a subdirectory of the main texmf directory called |
| 53 |
texdoctk. If you want to include information for your local system, |
| 54 |
generate a file texdoctk-local.dat. Make sure to run texhash after |
| 55 |
installation. See the manpage for more info. |
| 56 |
Set the defaults in texdocrc.defaults according to your system; you can |
| 57 |
replace the settings which are specified in the shipped file, but do not |
| 58 |
uncomment variables for items which are not available or applicable for you, |
| 59 |
but just leave the value empty by specifying nothing. |
| 60 |
The individual users can define their own preferences by copying the system |
| 61 |
texdocrc.defaults to ~/.texdocrc and assign new values to the items to be |
| 62 |
changed. They can also establish an additional personal database for packages |
| 63 |
they might have installed in their respective $HOME; this database must be |
| 64 |
called texdoctk-pers.dat and reside in $HOMETEXMF/texdoctk/. |
| 65 |
If you meet the requirements concerning the teTeX distribution, I assume that |
| 66 |
the texdoctk.dat file should work without failures; if you have another |
| 67 |
distribution or if your texmf/doc tree is somehow modified, it may happen that |
| 68 |
a file is not found in spite of the program trying to find it elsewhere. You |
| 69 |
will have to edit the file then, but make sure to keep the right format for |
| 70 |
the entries: |
| 71 |
<package-label>;Short description for listbox (opt. <package-name>);path in doc directory;optional keywords |
| 72 |
(without breaking the line!). If the documentation is included in the .sty file |
| 73 |
instead of a proper documentation file, the optional keywords should start with |
| 74 |
-?- directly after the semicolon, where ? is 0, 1, 2 or 3; these are flags |
| 75 |
which indicate in which part of the .sty the instructions are placed. See the |
| 76 |
database file and/or the manpage for more details if necessary. |
| 77 |
The documentation is grouped into 17 categories; the 18th button of the main |
| 78 |
panel is inactive by default. If you have special documents which do not fit |
| 79 |
into any of the categories, you can create a block with a new name in |
| 80 |
texdoctk-local.dat or texdoctk-pers.dat with the respective entries. |
| 81 |
In the settings window you see a checkbox in the html->ps and text->ps |
| 82 |
converter menus for switching on/off output redirect. This is due to the fact |
| 83 |
that some converters do not write their output into a file but to stdout by |
| 84 |
default, so a redirect is needed, e.g. |
| 85 |
a2ps myfile.txt >myfile.ps |
| 86 |
|
| 87 |
DISCLAIMER |
| 88 |
texdoctk v.0.6.0 (Sep 23, 2004) - GUI for TeX documentation access |
| 89 |
Copyright (C) 2000-2004 Thomas Ruedas |
| 90 |
This program is free software; you can redistribute it and/or modify |
| 91 |
it under the terms of the GNU General Public License as published by |
| 92 |
the Free Software Foundation; either version 2 of the License, or |
| 93 |
(at your option) any later version. |
| 94 |
This program is distributed in the hope that it will be useful, |
| 95 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 96 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 97 |
GNU General Public License for more details. |
| 98 |
You should have received a copy of the GNU General Public License |
| 99 |
along with this program; if not, write to the Free Software |
| 100 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 101 |
|
| 102 |
ACKNOWLEDGEMENTS |
| 103 |
Thomas Esser included the program in the teTeX distribution of TeX and Friends. |
| 104 |
He provided me with informations about changes in the texmf tree and made a |
| 105 |
number of very useful suggestions. He also has coordinated and kept track of |
| 106 |
several additions from other contributors, who fixed bugs and added extensions |
| 107 |
e.g. for use under Win32 systems. |
| 108 |
Reinhard Kotucha and Andreas Werner made very valuable comments and suggestions |
| 109 |
to enhance v.0.3.0, especially about the special treatment of Netscape. |
| 110 |
Reinhard Kotucha also made many useful suggestions and provided patches for |
| 111 |
v.0.4.0; unfortunately, I could not implement all these ideas yet. |
| 112 |
Hans Fredrik Nordhaug made some suggestions, e.g. concerning local and |
| 113 |
personal texmf trees, and reported several bugs in different releases; he also |
| 114 |
contributed fixes/patches. |
| 115 |
Adrian Bunk also has reported a bug and contributed a small manpage for the |
| 116 |
program. He made a Debian GNU/Linux package of texdoctk. |
| 117 |
Michael Sanders reminded me to set the permissions right in the tarball. |
| 118 |
As this is my first application written in PerlTk, it happened that I could |
| 119 |
not solve every problem with my book and the other documentation, but had to |
| 120 |
ask for help on comp.lang.perl.tk. Paul R. Andersen and Stephen O. Lidie have |
| 121 |
given helpful replies and examples for me to try out. |
| 122 |
Fabrice Popineau, and possibly others who I don't know, have provided |
| 123 |
portability to Win32 platforms for use with fpTeX. Staszek Wawrykiewicz helped |
| 124 |
making it ready for use with new TeXLive editions. |
| 125 |
Paul Szabo pointed out a potential security risk related to the way names of |
| 126 |
temporary files are generated. |
| 127 |
|
| 128 |
TO DO LIST |
| 129 |
Unfortunately, I didn't have time to implement all suggestions made by the |
| 130 |
aforementioned people; I hope that I can do that at some later time: |
| 131 |
- widget placement in topic toplevels becomes ugly when the toplevel is |
| 132 |
stretched or shrunk; should be made more elegant |
| 133 |
- raise existing texdoctk window instead of possibly running texdoctk twice; |
| 134 |
(this seems to be difficult, because it requires interprocess communication |
| 135 |
which is kind of unsafe and requires the use of perl -T) |
| 136 |
Possible further long-term enhancements: |
| 137 |
- maybe use Williams Catalogue for automatically building database during |
| 138 |
installation |
| 139 |
- refined printing facility |
| 140 |
|
| 141 |
BUGS |
| 142 |
Netscape error output will be written to stderr even if the quiet mode was set, |
| 143 |
because I didn't manage to start it with the "inline" perl script. |
| 144 |
Widget placement in topic toplevels becomes ugly when the toplevel is stretched |
| 145 |
or shrunk. |
| 146 |
The font in the frame labels of the Settings menu are not forced to the default |
| 147 |
font; this will become visible e.g. at hi-res screens, where the label font is |
| 148 |
not scaled up. |
| 149 |
Please let me know if you find bugs or have suggestions for improvements. |
| 150 |
|
| 151 |
HISTORY/CHANGES |
| 152 |
v.0.6.0 Sep 23, 2004 |
| 153 |
- Unknown document formats will be opened as plain text with the text |
| 154 |
file viewer by default; the Settings menu was given a new button to |
| 155 |
toggle this behaviour. |
| 156 |
- Allow for texmf-dist and texmf-doc trees for compliance with teTeX 3 |
| 157 |
and TeXLive. |
| 158 |
- Made an attempt to allow for additional personal user's databases to |
| 159 |
be located in $HOMETEXMF, following a long-standing suggestion of |
| 160 |
H.F.Nordhaug. Additional local and personal databases do not need |
| 161 |
to be copies of the system database; instead their contents will be |
| 162 |
appended to the entries of the default list. |
| 163 |
- Fixed a bug with the handling of the local texmf tree reported by |
| 164 |
Sebastian Luque. |
| 165 |
- Updated this README and the manpage. |
| 166 |
v.0.5.2 May 20, 2004 |
| 167 |
- Changed the name generation of temporary files to something random |
| 168 |
in order to address a potential security risk pointed out by Paul |
| 169 |
Szabo. |
| 170 |
- Replaced -q option for enabling "quiet" behaviour by -v option for |
| 171 |
enabling "verbose" behaviour; quiet behaviour is now the default and |
| 172 |
was extended to suppress the popup of Warning windows (popmsg level |
| 173 |
1). |
| 174 |
- Added a possibility to have the Settings menu write the user's |
| 175 |
~/.texdocrc (older suggestion by R.Kotucha). NB: It is not intended |
| 176 |
to write the system-wide texdocrc.defaults, because it does not set |
| 177 |
$TEXDOCPATH and $LOCALDOCPATH. |
| 178 |
- Button colours are made configurable through the texdocrc files or |
| 179 |
the Settings menu. This is intended to fix a problem H.F.Nordhaug |
| 180 |
reported with users of newer versions of the KDE, where some button |
| 181 |
colours suddenly where messed up. - Validity of entered colours |
| 182 |
is checked if X11's showrgb program is available. |
| 183 |
- DVIPS_OPTS, PDFPS_OPTS and PRINT_OPTS in texdocrc.defaults are now |
| 184 |
obsolete, but still supported. It seemed more reasonable to treat |
| 185 |
the contents of DVIPS_CONV, PDFPS_CONV and PRINT_CMD as command lines |
| 186 |
(which actually would have already been possible all the time). The |
| 187 |
same is true for the viewer variables. |
| 188 |
- Command line options can now be grouped (i.e. -av instead of -a -v). |
| 189 |
- Cursor changes from arrow to watch in some tasks, to indicate a |
| 190 |
process which takes a bit of time. |
| 191 |
- fixed some glitches in databases: semicolons at the end of the |
| 192 |
pdfTeX-related entries; corrected description of ltxtable (hint by |
| 193 |
Rolf Niepraschk) and changed its position; corrected description of |
| 194 |
AMSguide (AMS TeX instead of AMS LaTeX) (hint by H.F.Nordhaug) |
| 195 |
- several additions by other contributors, for instance support for |
| 196 |
Win32 systems |
| 197 |
v.0.5.1 April 21, 2001 |
| 198 |
- Enhanced right-button search function so that compressed doc files |
| 199 |
are also found. |
| 200 |
- Fixed a bug in the documentation finding subroutine reported by H.F. |
| 201 |
Nordhaug: the compression determination block in sub finddoc was |
| 202 |
broken. |
| 203 |
- Improved treatment of entering an empty string in the search: |
| 204 |
this is now explicitly treated as demand for display of the whole |
| 205 |
database, instead of search for a null string. |
| 206 |
- Automatic selection of list item in listbox if it contains only one |
| 207 |
element; this will frequently happen in search results. In this |
| 208 |
context, the autoview flag (option -a) has been introduced in the |
| 209 |
texdocrc.defaults and the Settings menu: if it is chosen, the |
| 210 |
appropriate viewer will be started automatically in the case of |
| 211 |
one-item listboxes. |
| 212 |
- Made <Ctrl-q>, <Ctrl-s>, <Ctrl-t> and <Ctrl-h> definitions active in |
| 213 |
all widgets; thus, you don't need to type <Ctrl-q> in the main window |
| 214 |
to quit, for example. Introduced new global key binding for raising |
| 215 |
the main window (<Ctrl-m>). |
| 216 |
- Fixed a braindead typo in the texdoc-*.dat files (too dumb to tell). |
| 217 |
- Some small changes/updates in the Help text; the button and window |
| 218 |
are now named "Help/About". |
| 219 |
- Added an emacs perl-mode directive at the end, mostly for my |
| 220 |
convenience. |
| 221 |
v.0.5.0a April 19, 2001 |
| 222 |
- Fixed bug in texdoc-102.dat reported by H.F.Nordhaug: correct path |
| 223 |
for multirow is latex/multirow/multirow.sty (instead of |
| 224 |
latex/misc/multirow.sty, as in texdoc-100.dat) |
| 225 |
v.0.5.0 April 18, 2001 |
| 226 |
- For some packages, the only documentation is included in the .sty |
| 227 |
file itself. This documentation is now made accessible by extracting |
| 228 |
the comments/instructions, writing them into a temporary text file |
| 229 |
and calling the text file viewer on it. Thus 38 additional |
| 230 |
documentation files are made accessible now. |
| 231 |
- implementation of a suggestion by Hans Fredrik Nordhaug: contents of |
| 232 |
the local texmf tree ($TEXMFLOCAL) can be included now. Arbitrary |
| 233 |
inclusion of additional private texmf trees is not yet possible, |
| 234 |
though. |
| 235 |
- Two fixes/improvements in the databases by R.Kotucha were made |
| 236 |
(concerning epslatex and the MetaPost tutorial) |
| 237 |
- R.Kotucha suggested the use of the program xwininfo to determine |
| 238 |
screen resolution and switch to a larger font size at hi-res screens. |
| 239 |
He provided a patch for this, which I added after a slight |
| 240 |
adaptation. |
| 241 |
- auto-determination of Perl's path (stolen from some script by Thomas |
| 242 |
Esser, IIRC) |
| 243 |
- If a beta release of teTeX is used, the teTeX-1.0.2 database will be |
| 244 |
used as a default instead of the 1.0.0 database |
| 245 |
- introduced new message type with transient windows |
| 246 |
- fatal error messages if essential config/database files are not found |
| 247 |
- some syntax cosmetics |
| 248 |
v.0.4.0 June 11, 2000 |
| 249 |
- implementation of several suggestions by Reinhard Kotucha and |
| 250 |
Andreas Werner: |
| 251 |
* More than 1 document can now be viewed at one time, because the |
| 252 |
viewers now run as background processes. They are not killed when |
| 253 |
texdoctk itself is quit. |
| 254 |
If Netscape is your browser, HTML documents are now loaded into |
| 255 |
an existing Netscape window; no new Netscape will be started. This |
| 256 |
is to be a bit economic with system resources. |
| 257 |
* The Search button resp. <Ctrl-s> now switches on/off the search |
| 258 |
entry widget; this is to avoid that multiple entry widgets come up, |
| 259 |
because that doesn't make much sense. |
| 260 |
* If no TXT_VIEWER is defined, the environment variable $PAGER will |
| 261 |
be used, if defined (but see below). |
| 262 |
- bugs/fixes and suggestions reported by Hans Fredrik Nordhaug: |
| 263 |
* $j for loop in sub srchstr was too short: |
| 264 |
$j<$maxind[$i] --> $j<$maxind[$i]+1 |
| 265 |
* misplaced last SRCH in keywords branch of sub srchstr: last SRCH |
| 266 |
had to be put into inner if block |
| 267 |
* added support of zip compression format |
| 268 |
- bug/fix reported by Adrian Bunk: |
| 269 |
* ambiguous use of redirection flag/sign hor html and text->ps |
| 270 |
conversion |
| 271 |
- own text viewer for plain text documentation files; this is now the |
| 272 |
default in the original texdocrc.defaults |
| 273 |
- kpsewhich instead of find is used for rescue file search |
| 274 |
- temporary files generated when printing or possibly decompressing (as |
| 275 |
in Debian) now get different names to prevent overwriting files which |
| 276 |
are still in use |
| 277 |
- main, settings, and help windows made non-resizable |
| 278 |
- suppressed availability of listbox selection to X selection |
| 279 |
- document selection toplevel windows will be raised now instead of |
| 280 |
being opened twice or more times if they are already open |
| 281 |
- uniform font for all text-containing widgets explicitly set; I had |
| 282 |
some weird font configuration when running texdoctk under a CDE |
| 283 |
- environment |
| 284 |
v.0.3.0 March 11, 2000 |
| 285 |
- first full public release |
| 286 |
- implementation of some suggestions by Thomas Esser: |
| 287 |
use of kpsewhich, changes in directory and database configuration |
| 288 |
implemented cd to file directory to ensure rendering of graphics |
| 289 |
made viewer message output suppression really quiet |
| 290 |
better layout of help window |
| 291 |
v.0.2 March 7, 2000 |
| 292 |
- first public release (preliminary) |
| 293 |
v.0.1 - private trial version, does not exist anymore |
| 294 |
|
| 295 |
AUTHOR |
| 296 |
Thomas Ruedas |
| 297 |
[email protected] |
| 298 |
http://www.geophysik.uni-frankfurt.de/~ruedas/progs.html |