soegaard / racket-cas

Simple computer algebra system
60 stars 10 forks source link

Call latex-path in order to obtain LaTeX output #7

Open mardukbp opened 7 years ago

mardukbp commented 7 years ago

While trying the examples in the README, I discovered that it is necessary to call

(latex-path "/path/to/pdflatex")

in order for render to work. It would be nice to add this so that people can experiment with this nice little CAS.

soegaard commented 7 years ago

Which OS do you use? Which path do you have to pdflatex?

mardukbp commented 7 years ago

OS: Ubuntu 16.04

/usr/bin/pdflatex

soegaard commented 7 years ago

Hmm. I see that racket-poppler uses "latex" and not "pdflatex".

https://github.com/soegaard/racket-poppler/blob/master/racket-poppler/render-tex.rkt#L43

Maybe it is racket-poppler that needs to be changed?

mardukbp commented 7 years ago

Yes. Actually I learned about latex-path in the README of racket-poppler.