I have a program that generates combinatorial data that I'd like to look at as a sequence of graphs; thus I want to use M2, which produces the data, to write a laTeX or pdf file.The package Graphs.m2 seems to have most of the required pieces, but...
(in MacOS, after brew install graphviz, sudo easy_install dot2tex, and getting the emacs $PATH to include /usr/local/bin), and making a simple matrix M representing a graph, the command
displayGraph graph M
produces some output:
-- running: dot -Tjpg /var/folders/zc/cq00n_411yzbcst8ypb4bnqh0000gp/T/M2-1831-0/8.dot -o /var/folders/zc/cq00n_411yzbcst8ypb4bnqh0000gp/T/M2-1831-0/9.jpg
-- running: display /var/folders/zc/cq00n_411yzbcst8ypb4bnqh0000gp/T/M2-1831-0/9.jpg &
and then the error message:
i56 : sh: display: command not found
Question: how can I teach sh to use some display program?