Ask Your Question
1

Sage Math can't find pandoc on MacOS Mojave

asked 2019-09-12 23:00:07 -0500

KipIngram gravatar image

updated 2020-01-12 06:17:30 -0500

FrédéricC gravatar image

Hi. I installed Sage Math earlier tonight. I'm liking it quite a lot so far, but when I tried to download a notebook as a pdf I got an error window telling me that it couldn't find pandoc. Indeed, it wasn't installed. So, I installed it with brew and now I can type

pandoc --version

in a terminal window and I get good output. But I still get the error in Sage. I feel like I need to somehow tell Sage where pandoc is, but I don't know how. I also installed basictex, or texbasic, or whatever - that went fine too.

Any thoughts?

edit retag flag offensive close merge delete

Comments

What happens if you run from sage.features.pandoc import Pandoc; Pandoc().is_present()?

Iguananaut gravatar imageIguananaut ( 2019-09-13 09:09:54 -0500 )edit

I have a similar issue. I try to export a markdown-heavy notebook in latex form and get the error that Sage cannot find pandoc. If the notebook is only sage code, and not a lot of markdown, then it exports fine. But if there is markdown with headers or a lot of math displays, then I get the error.

In my terminal, the query "which pandoc" yields "/Users/ptallen/anaconda3/bin/pandoc" So clearly pandoc is there.

Similarly "which xetex" yields "/Library/TeX/texbin/xetex" so that should not be the issue.

Help!

ptallen gravatar imageptallen ( 2020-04-19 19:42:04 -0500 )edit

ps. I'm using SageMath 8.7 on OSX 10.13 High Sierra

ptallen gravatar imageptallen ( 2020-04-19 19:43:08 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2019-09-13 03:27:39 -0500

tmonteil gravatar image

updated 2019-09-13 03:28:48 -0500

I am not a mac user, but the error you get about pandoc is weird since it should be sufficient that it is on your path. Regarding latex, note that you need xetexpackage, see https://nbconvert.readthedocs.io/en/l...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-09-12 23:00:07 -0500

Seen: 120 times

Last updated: Sep 13 '19