[OS X TeX] Carbon Emacs settings.

Andrea Riciputi ariciputi at pito.com
Tue Apr 27 04:13:40 EDT 2004


Sorry for the spelling error. My script is _without_ any space between 
'if' and '[' and it doesn't work.

(concat " if[ " tex-file ".pdf -ot " tex-file ".dvi ]; then dvipdf "
tex-file ".dvi " tex-file ".pdf ; "
pdf-previewer-program " " tex-file ".pdf; else "
pdf-previewer-program " " tex-file ".pdf "))

In the emacs output buffer I get the following error message:

/bin/sh: -c: line 1: syntax error near unexpected token `then'
/bin/sh: -c: line 1: ` if[ prova.pdf -ot prova.dvi ]; then dvipdf 
prova.dvi prova.pdf ; open -a 'Preview' prova.pdf; else open -a 
'Preview' prova.pdf '
View exited abnormally with code 2 at Mon Apr 26 22:10:38

please note the single back quote at the beginning of the shell 
command. Running the original script provided by Franconi I get:

Running `View' on `prova' with ``dvipdf prova.dvi prova.pdf ; open -a 
'Preview'\ prova.pdf''

note le _double_ back quote!!! I think the problem is there, but I 
can't figure out how to fix it!

Please help me,
	Andrea.

On 27 Apr 2004, at 09:17, Gilles Serasset wrote:

> No, in fact it is:
>
> if[file.pdf -ot file.dvi]; then dvipdf file.dvi file.pdf; open -a 
> 'Preview' file.pdf; else open -a 'Preview' file.pdf; fi
>
> (without the first space). hence, the [ command is not recognized...
>
> Gilles,

-----------------------------------------------------
Please see <http://www.esm.psu.edu/mac-tex/> for list
guidelines, information, and LaTeX/TeX resources.





More information about the MacOSX-TeX mailing list