Skip to Content.
Sympa Menu

texmacs-users - [TeXmacs] TeXgraph and TeXmacs on MacOSX

Subject: mailing-list for TeXmacs Users

List archive

[TeXmacs] TeXgraph and TeXmacs on MacOSX


Chronological Thread 
  • From: Komla DOMELEVO <address@hidden>
  • To: address@hidden
  • Subject: [TeXmacs] TeXgraph and TeXmacs on MacOSX
  • Date: Mon, 26 Oct 2009 15:54:41 +0100

Dear all,

I've been trying for a while now to use the TeXgraph plugin with TeXmacs on my PowerBook but without success :

*** What I did ***

1.- I installed TeXgraph 1.94 for macosx
( http://download.tuxfamily.org/texgraph/version_test/MacOSX/TeXgraph1.94.dmg)
Remark : the default install on my HOME directory didn't work so I installed it in /Applications

2.- I installed the texgraph plugin for TeXmacs 


At that stage, the TeXgraph sessions didn't work at all. There were some message error of the kind "cat : tmptexgraph.log file not find" and an empty picture.

*** What I understood ***

- After looking at the texmacs plugin I understood that the plugin uses the command (more precisely the /bin/sh script) "CmdTeXgraph". This command does not exist in the MacOsX package but does exist on the unix distribution (http://texgraph.tuxfamily.org/Telecharger.html). Also when comparing the directories from the Mac package and the unix package, a lot of files (scripts) are missing in the Mac install (CompileEps.tex    apercu.tex      formule.sh    CompileEps.sh   CompilePdf.sh   SwfAnim.sh   formule.tex  tex2FlatPs.tex)

- Also the command "CmdTeXgraph" was not known form my terminal.

*** What I tried ***

1.- I put in my ".profile" an export of all relevant environnement variable :

# Setting the path for TexGraph.
export TeXgraphDir=/Applications/TeXgraph.app/Contents/MacOS/
export TeXgraphDocDir=/Applications/TeXgraph.app/Contents/Resources/Doc/
export PATH=/Applications/TeXgraph.app/Contents/MacOS:$PATH

I check that these variables are correctly set after restarting the Terminal

2.- I copy form the linux distribution the files :

CmdTeXgraph CompileEps.tex    apercu.tex      formule.sh    CompileEps.sh   CompilePdf.sh   SwfAnim.sh   formule.tex  tex2FlatPs.tex

in
/Applications/TeXgraph.app/Contents/MacOS/

and I MODIFY "CmdTeXgraph" so that it looks like

#!/bin/sh #this is a TeXgraph 1.94 for Mac OS X
export TeXgraphDir=/Applications/TeXgraph.app/Contents/MacOS/
export TeXgraphDocDir=/Applications/TeXgraph.app/Contents/Resources/Doc/
$TeXgraphDir/TeXgraphCmd -$1 $2 > $2.log
###############
# old version #
############### #
#!/bin/sh #
export TeXgraphDir=/Users/komla/bin/TeXgraph #
$TeXgraphDir/TeXgraphCmd -$1 $2 > $2.log
 
Remark : there might be redundant exports but that's not a problem

3.- I copy the "texgraph_macros_texmacs.mac" in 
/Applications/TeXgraph.app/Contents/MacOS/macros/

4.- I start texmacs and open the texgraph.tm example (http://dl.getdropbox.com/u/246467/TeXgrah/texgraph.tm) from a previous discussion on this list ([TeXmacs] How to output png or jpg inside a session) ?

When I press enter in the TeXgraph session, I have the error message followed by a blank picture :



Lecture /Applications/TeXgraph.app/Contents/MacOS//macros/color.mac...
Lecture /Applications/TeXgraph.app/Contents/MacOS//macros/color.mac
terminée.
Lecture /Applications/TeXgraph.app/Contents/MacOS//macros/TeXgraph.mac...
Lecture /Applications/TeXgraph.app/Contents/MacOS//macros/scene3d.mac...
Lecture /Applications/TeXgraph.app/Contents/MacOS//macros/scene3d.mac
terminée.
Lecture /Applications/TeXgraph.app/Contents/MacOS//macros/TeXgraph.mac
terminée.


So something happend but I still don't know how far from the plugin to work I am.

I would be very grateful if anyone has an idea.

Bests,


Komla



________________________________________________
Komla DOMELEVO. Maître de Conférences.
Institut de Mathématiques
Université de Toulouse et CNRS (UMR 5219)
118, route de narbonne. 31062 Toulouse, Cedex 9
Tél : +33 5 61 55 76 33. Fax : +33 5 61 55 83 85
_________________________________________________


  • [TeXmacs] TeXgraph and TeXmacs on MacOSX, Komla DOMELEVO, 10/26/2009

Archive powered by MHonArc 2.6.19.

Top of Page