Package: texgd
Version: 3.28-6.1
texgd takes from the environment variable 'texgd_texheader' 'the name of
a TeX file to be prepended before the formula' (cited from man page).
This works well if and only if this file name ends in '.tex'. There is
no reason for this restriction. It prevents effectively using mktemp to
create this header file (see script below).
Note that texgd will produce a result nevertheless, but behaves as if
the texgd_texheader variable had been empty (i.e. the indicated header
file is not included).
Consider the following script, which works well with the first
'TMPHEADER=...' line commented and second not, but not with the first
line active and the second not:
#!/bin/bash
# eqn2png: wrapper around texgd to process multiple equations
# usage: eqn2png example.tex
#TMPHEADER=`mktemp` || exit 1 # can't have .tex extension in template
TMPHEADER=/tmp/header.tex # potential security problem
# without this, the pagenumber appears (far away) as part of the equation...
echo '\nopagenumbers' > "$TMPHEADER"
# bits taken from /usr/share/doc/texgd/examples/, see also man-page
wims_fontdir=/usr/lib/wims/public_html/mathfonts
tmp_fontdir=/tmp/mathfonts
if [ -d ${wims_fontdir} ]; then
if [ ! -d ${tmp_fontdir} ]; then cp -R ${wims_fontdir} /tmp; fi
else
if [ ! -d ${tmp_fontdir} ]; then mkdir ${tmp_fontdir}; fi
fi
for f in "$@" ; do
out=`basename "$f" tex`png
echo "converting $f to $out"
texgd_src=$(cat "$f") \
texgd_tmpdir=/tmp \
texgd_fontdir=${tmp_fontdir} \
texgd_outfile=$out \
texgd_texheader="$TMPHEADER" \
texgd_style='$$' \
texgd_density=1 \
texgd_compressratio='3' \
texgd
done
# end eqn2png
Various system information:
Current installation: Debian Etch, up-to-date as of 2005-11-18,
[`uname -a`]:
Linux kuroko 2.6.12n #1 Sun Sep 18 23:59:18 CEST 2005 i686 GNU/Linux
TeTeX 2.0.2c-9
wims related packages _not_ installed
Installed packages possibly related to TeX:
[`dpkg-query -l '*tex*'|grep '^ii'`]:
ii cweb-latex 1.1.1-14 LaTeX support for CWEB.
ii gettext 0.14.5-2 GNU
Internationalization utilities
ii gettext-base 0.14.5-2 GNU
Internationalization utilities for the b
ii gftp-text 2.0.18-11 colored FTP client
using GLib
ii html2text 1.3.2a-3 An advanced HTML to
text converter
ii jadetex 3.13-6 generator of
printable output from SGML or X
ii latex-beamer 3.06-1 LaTeX class to
produce presentations
ii latex-ucs 20041017-1 support for using
UTF-8 input encoding in La
ii latex-ucs-uninames 20041017-1 full unicode
character names for latex-ucs
ii latex-xcolor 2.00-2 Easy
driver-independent TeX class for color
ii liblocale-gettext-perl 1.05-1 Using libc functions
for internationalizatio
ii libtext-charwidth-perl 0.04-3 get display widths of
characters on the term
ii libtext-iconv-perl 1.4-2 converts between
character sets in Perl
ii libtext-wrapi18n-perl 0.06-4 internationalized
substitute of Text::Wrap
ii libtextwrap1 0.1-3 text-wrapping library
with i18n - runtime
ii tetex-base 2.0.2c-9 Basic library files
of teTeX
ii tetex-bin 2.0.2-31 The teTeX binary files
ii tetex-doc 2.0.2c-9 The documentation
component of the Debian te
ii tetex-extra 2.0.2c-9 Additional library
files of teTeX
ii texgd 3.28-6.1 allows to convert
short TeX expressions in g
ii texi2html 1.76-3 Convert Texinfo files
to HTML
do not hesitate to ask for details,
sincerely,
Adrian Daerr
p.s.
merry christmas and happy new year!
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]