2 Sep 2002 07:37
Re: dvipng with preview-latex
<David.Kastrup <at> t-online.de>
2002-09-02 05:37:37 GMT
2002-09-02 05:37:37 GMT
Jan-Ake Larsson schrieb:
> > Since I now have dvipng installed on my machine, is it
> possible yet
> > to have preview-latex use it?
>
> Nope. But David has been constructing a new framework for
> fitting in
> different renderers like dvipng/latexpdf/younameit (but
> he is away
> right now).
More like "is still brooding over the right semantics and implementing
bits and pieces. This is not easy to get good.
Email access from here is a drag. While people pooh-poohed my attempts
of hooking up 10Base2 to their hub ("it only has a BNC Uplink", as if
Thin Ethernet made differences like that), that part worked fine. But
somewhere after the cable connection things become s l o w.
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
I hope you have a loaded gun at your disposal? Whoever has write
permissions to /usr/local/bin would probably also have write
permission to the config file for Dvips and could easily disable the
default automatic printing operation there without screwing
everything up for everybody else. By the way, the above invocation
also is bad apart from all of the obvious unfortunate implications:
you should be rather writing
"$ <at> "
instead of
$*
so as to avoid having the Shell reinterpret the command line
arguments in case they contain any special characters.
This may seem like a minor quibble, but if you don't watch stuff like
that, pranksters doing things like
mkdir -p "/tmp/
-rf
/etc"
can cause serious damage with uncleanly written system cleanup
scripts.
But as there is no preview-latex-praise list, this one has to do.
I sucessfully installed preview-latex on
21.4 (patch 9) \"Informed Management (Windows [3])\" XEmacs Lucid
(the cygwin, not the native version)
Problems arose, when configure didn't like the fact that I don't have
a 'texhash' (my TeX is MikTeX) and stopped with an 'error: /bin/true'.
Interestingly, the very same /bin/true exists and is well some lines
earlier:
configure:1857: checking for install-info
configure:1888: result: /bin/true
But anyway, an 'ln -s /bin/true /usr/local/bin/texhash' solved this
problem.
The next obstacle was the fact, that as my dvips is from MikTeX, it
really didn't like the /cygdrive/c/... paths. It accepts forward
slashes instead of the backslashes, though, so I created a little
shell-script preview-dvips.sh:
#!/bin/sh
dvips `echo $ <at> | sed "s|/cygdrive/[a-z]||g"`
RSS Feed