[OS X TeX] latexdb & texshop
Peter Dyballa
Peter_Dyballa at Web.DE
Thu Oct 13 04:44:54 EDT 2005
Am 13.10.2005 um 07:46 schrieb Ingo Reich:
> #!/bin/bash
> latexdb "$1"
> dvipdfm "$1"
>
> But now dvipdfm looks for "example.tex.dvi" instead of "example.dvi",
> and gets stuck.
>
As Claus already emphasised: "$1" has a value of "name.tex." So you
should better try:
Name = `basename "$1" .tex`
latexdb "$Name" # if .tex is necessary make it $1 again
dvipdfm "$Name"
(dvipdfm "`basename \"$1\" .tex`" would worm too in bash)
And maybe here's too an explanation why TeXShop stops to work: you are
only handling the filename without its path component. In the beginning
TeXShop might have open ~/Library/texmf/unerledigte Arbeit/Dings.tex
and then this turns into Dings.tex. I may look as puzzled as TeXShop
then ...
My AppleScript understanding is obviously very limited. Particularly I
wonder how things like #NAMEPATH#, #TEXPATH#, and #DVIPATH# can appear
from inside a Were-Rabbit's silk-hat. I too feel that the sequence of
statements in the script isn't well elaborated and could need some new
order and comments.
--
Mit friedvollen Grüßen
Pete === -Q
==<__/% >>
_____________(_)____ at _____________________________
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the MacOSX-TeX
mailing list