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 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
|
texdoctk v.0.5.1
texdoctk is a Perl/Tk-based frontend for easy access of package documentation
for the TeX typesetting system on Unix platforms. It includes the following
files:
texdoctk - the program source
texdoc-100.dat - the database containing the information about the
accessible documentation files for teTeX-texmf
v.1.0.0
texdoc-102.dat - the database containing the information about the
accessible documentation files for teTeX-texmf
v.1.0.1 and 1.0.2
texdocrc.defaults - the system-wide default specification for viewer
and printer settings
texdoctk.1 - manpage (contribution by Adrian Bunk)
README - this file
The current version is 0.5.1.
REQUIREMENTS
The program is written in Perl/Tk; it requires Perl 5 and Perl/Tk 8.x. It is
known to run with Perl 5.004_04 or higher and PerlTk 800.015.
The database files texdoc-10x.dat are made for the teTeX distribution,
teTeX v.1.0.x. Most of it might work with teTeX 0.9 as well, though.
Note that the program is *not* a viewer, but an interface to access a document
with the appropriate viewer. Thus, you need to have appropriate viewers for
the different formats to actually read the files. Documentations are available
as .dvi, .ps, .pdf, .html or plain text; some packages are only documented in
the .sty files. For plain text files (.txt, .sty etc.), texdoctk's own text
viewer can be used (default).
If you want to print the documentations, you will need converters to turn
non-PS files into PostScript. Here are some suggestions:
dvi->ps: dvips (is part of teTeX)
http://www.radicaleye.com/dvips.html
pdf->ps: pdf2ps
http://www.cs.wisc.edu/~ghost
Acrobat Reader
http://www.adobe.com
html->ps: html2ps
http://www.tdb.uu.se/~jan/html2ps.html
plain text->ps: a2ps
http://www-inf.enst.fr/~demaille/a2ps/
To increase the font size automatically for high-resolution screen, the program
xwininfo is used; texdoctk will work without as well, though.
INSTALLATION
The program texdoctk can be copied into any directory where programs are stored
on your system, e.g. into /usr/local/bin or, probably more adequate, into
/usr/local/teTeX/bin. You may need to change the first line of the code if
for some reason your Perl executable is not called "perl"; you will also have
to change the perl call in the sub viewslc as well.
The database files texdoc-10x.dat and the configuration file texdocrc.defaults
must then be put into a subdirectory of the main texmf directory called
texdoctk. If you want to customize the database file for your local system,
copy the appropriate database file texdoc-10x.dat for your texmf version to
texdoc-local.dat in the same directory. Make sure to run texhash after
installation.
Set the defaults in texdocrc.defaults according to your system; you can
replace the settings which are specified in the shipped file, but do not
uncomment variables for items which are not available or applicable for you,
but just leave the value empty by specifying nothing.
The individual users can define their own preferences by copying the system
texdocrc.defaults to ~/.texdocrc and assign new values to the items to be
changed.
If you meet the requirements concerning the teTeX distribution, I assume that
the texdoc-10x.dat file should work without failures; if you have another
distribution or if your texmf/doc tree is somehow modified, it may happen that
a file is not found in spite of the program trying to find it elsewhere. You
will have to edit the file then, but make sure to keep the right format for
the entries:
<package-name>;Short description for listbox (opt. <package-name>);path in doc directory;optional keywords
(without breaking the line!). If the documentation is included in the .sty file
instead of a proper documentation file, the optional keywords should start with
-?- directly after the semicolon, where ? is 0, 1, 2 or 3; these are flags
which indicate in which part of the .sty the instructions are placed. See the
database file for more details if necessary.
The documentation is grouped into 17 categories; the 18th button of the main
panel is inactive by default. If you have special documents which do not fit
into any of the categories, you can append an 18th block to texdoc-local.dat
with the respective entries.
In the settings window you see a checkbox in the html->ps and text->ps
converter menus for switching on/off output redirect. This is due to the fact
that some converters do not write their output into a file but to stdout by
default, so a redirect is needed, e.g.
a2ps myfile.txt >myfile.ps
DISCLAIMER
texdoctk v.0.5.1 (April 21, 2001) - GUI for TeX documentation access
Copyright (C) 2000,2001 Thomas Ruedas
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
ACKNOWLEDGEMENTS
Thomas Esser included the program in the contrib area of teTeX.
He provided me with informations about changes in the texmf tree and made a
number of very useful suggestions.
Reinhard Kotucha and Andreas Werner made very valuable comments and suggestions
to enhance v.0.3.0, especially about the special treatment of Netscape.
Reinhard Kotucha also made many useful suggestions and provided patches for
v.0.4.0; unfortunately, I could not implement all these ideas yet.
Hans Fredrik Nordhaug made some suggestions, e.g. concerning local texmf trees,
and reported several bugs in different releases; he also contributed
fixes/patches.
Adrian Bunk also has reported a bug and contributed a small manpage for the
program. He made a Debian GNU/Linux package of texdoctk.
Michael Sanders reminded me to set the permissions right in the tarball.
As this is my first application written in PerlTk, it happened that I could
not solve every problem with my book and the other documentation, but had to
ask for help on comp.lang.perl.tk. Paul R. Andersen and Stephen O. Lidie have
given helpful replies and examples for me to try out.
TO DO LIST
Unfortunately, I didn't have time to implement all suggestions made by the
aforementioned people; I hope that I can do that at some later time:
- widget placement in topic toplevels becomes ugly when the toplevel is
stretched or shrunk; should be made more elegant
- make accessible personal branches of the TeX tree
- raise existing texdoctk window instead of possibly running texdoctk twice;
(this seems to be difficult, because it requires interprocess communication
which is kind of unsafe and requires the use of perl -T)
Possible further long-term enhancements:
- maybe use Williams Catalogue for automatically building database during
installation
- refined printing facility
- make portable for use with fpTeX (Fabrice Popineau actually has already taken
care of this)
BUGS
Netscape error output will be written to stderr even if the quiet mode was set,
because I didn't manage to start it with the "inline" perl script.
Widget placement in topic toplevels becomes ugly when the toplevel is stretched
or shrunk.
The font in the frame labels of the Settings menu are not forced to the default
font; this will become visible e.g. at hi-res screens, where the label font is
not scaled up.
Please let me know if you find bugs or have suggestions for improvements.
HISTORY/CHANGES
v.0.5.1 April 21, 2001
- Enhanced right-button search function so that compressed doc files
are also found.
- Fixed a bug in the documentation finding subroutine reported by H.F.
Nordhaug: the compression determination block in sub finddoc was
broken.
- Improved treatment of entering an empty string in the search:
this is now explicitly treated as demand for display of the whole
database, instead of search for a null string.
- Automatic selection of list item in listbox if it contains only one
element; this will frequently happen in search results. In this
context, the autoview flag (option -a) has been introduced in the
texdocrc.defaults and the Settings menu: if it is chosen, the
appropriate viewer will be started automatically in the case of
one-item listboxes.
- Made <Ctrl-q>, <Ctrl-s>, <Ctrl-t> and <Ctrl-h> definitions active in
all widgets; thus, you don't need to type <Ctrl-q> in the main window
to quit, for example. Introduced new global key binding for raising
the main window (<Ctrl-m>).
- Fixed a braindead typo in the texdoc-*.dat files (too dumb to tell).
- Some small changes/updates in the Help text; the button and window
are now named "Help/About".
- Added an emacs perl-mode directive at the end, mostly for my
convenience.
v.0.5.0a April 19, 2001
- Fixed bug in texdoc-102.dat reported by H.F.Nordhaug: correct path
for multirow is latex/multirow/multirow.sty (instead of
latex/misc/multirow.sty, as in texdoc-100.dat)
v.0.5.0 April 18, 2001
- For some packages, the only documentation is included in the .sty
file itself. This documentation is now made accessible by extracting
the comments/instructions, writing them into a temporary text file
and calling the text file viewer on it. Thus 38 additional
documentation files are made accessible now.
- implementation of a suggestion by Hans Fredrik Nordhaug: contents of
the local texmf tree ($TEXMFLOCAL) can be included now. Arbitrary
inclusion of additional private texmf trees is not yet possible,
though.
- Two fixes/improvements in the databases by R.Kotucha were made
(concerning epslatex and the MetaPost tutorial)
- R.Kotucha suggested the use of the program xwininfo to determine
screen resolution and switch to a larger font size at hi-res screens.
He provided a patch for this, which I added after a slight
adaptation.
- auto-determination of Perl's path (stolen from some script by Thomas
Esser, IIRC)
- If a beta release of teTeX is used, the teTeX-1.0.2 database will be
used as a default instead of the 1.0.0 database
- introduced new message type with transient windows
- fatal error messages if essential config/database files are not found
- some syntax cosmetics
v.0.4.0 June 11, 2000
- implementation of several suggestions by Reinhard Kotucha and
Andreas Werner:
* More than 1 document can now be viewed at one time, because the
viewers now run as background processes. They are not killed when
texdoctk itself is quit.
If Netscape is your browser, HTML documents are now loaded into
an existing Netscape window; no new Netscape will be started. This
is to be a bit economic with system resources.
* The Search button resp. <Ctrl-s> now switches on/off the search
entry widget; this is to avoid that multiple entry widgets come up,
because that doesn't make much sense.
* If no TXT_VIEWER is defined, the environment variable $PAGER will
be used, if defined (but see below).
- bugs/fixes and suggestions reported by Hans Fredrik Nordhaug:
* $j for loop in sub srchstr was too short:
$j<$maxind[$i] --> $j<$maxind[$i]+1
* misplaced last SRCH in keywords branch of sub srchstr: last SRCH
had to be put into inner if block
* added support of zip compression format
- bug/fix reported by Adrian Bunk:
* ambiguous use of redirection flag/sign hor html and text->ps
conversion
- own text viewer for plain text documentation files; this is now the
default in the original texdocrc.defaults
- kpsewhich instead of find is used for rescue file search
- temporary files generated when printing or possibly decompressing (as
in Debian) now get different names to prevent overwriting files which
are still in use
- main, settings, and help windows made non-resizable
- suppressed availability of listbox selection to X selection
- document selection toplevel windows will be raised now instead of
being opened twice or more times if they are already open
- uniform font for all text-containing widgets explicitly set; I had
some weird font configuration when running texdoctk under a CDE
- environment
v.0.3.0 March 11, 2000
- first full public release
- implementation of some suggestions by Thomas Esser:
use of kpsewhich, changes in directory and database configuration
implemented cd to file directory to ensure rendering of graphics
made viewer message output suppression really quiet
better layout of help window
v.0.2 March 7, 2000
- first public release (preliminary)
v.0.1 - private trial version, does not exist anymore
AUTHOR
Thomas Ruedas
ruedas@geophysik.uni-frankfurt.de
http://www.geophysik.uni-frankfurt.de/~ruedas/progs.html
|