[OS X TeX] Command line question

Alan Litchfield alan at alphabyte.co.nz
Mon Aug 31 21:24:06 EDT 2009


Is /usr/local/texlive/2008/bin/universal-darwin/ defined in your bash profile
to be on the path?

Alan

François Chaplais wrote:
> Hi I am LaTeX Mac user  and I also use a programming environment
> called revolution ( http://www.runrev.com ) which is roughly a
> successor to hypercard. This environment can send commands to the
> shell for execution. I want to use it to run pdflatex on a text file.
>
> My Tex install is a 2008 release (the one that is currently available
> at http://www.tug.org/mactex/ ). System is 10.5.8 (not SL)
>
> This revolution code works (i.e. I get the right pdf and a result
> string which is equal to the content of the log file). "--" indicates
> comments.
>
>       set the shellcommand to "/bin/bash" -- this set the shell to
> bash as in terminal
>       set the defaultfolder to theFolder -- this sets the folder where
> the command line will be executed
> 								--- to the string in the variable "theFolder" -- like "cd"
>       answer shell("/usr/local/texlive/2008/bin/universal-darwin/
> pdflatex" && last item of theFilePath)
> 			-- this runs the string between parentheses in the previously
> defined shell and
> 			-- displays the output of pdflatex
>
> This also works with sh and tcsh.
>
> However, if I replace
> 	"/usr/local/texlive/2008/bin/universal-darwin/pdflatex"
> by
> 	"pdflatex"
> in the previous code, I get the error string "pdflatex: Command not
> found.". Using sh or tcsh returns the same error.
>
> I very much would like the second command ("pdflatex") to work, as it
> is rather universal (and it works in the terminal).
>
> I know that this is a cross environment problem, but I suspect this
> could be better solved by mac TeX wise men rather than by the
> revolution community.
>
> TIA
> 	François
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
>


-- 
Alan Litchfield MBus (Hons), MNZCS
AlphaByte
PO Box 1941, Auckland
http://www.alphabyte.co.nz




More information about the MacOSX-TeX mailing list