Ask Your Question
1

Sage Math can't find pandoc on MacOS Mojave

asked 2019-09-13 06:00:07 +0200

KipIngram gravatar image

updated 2020-01-12 13:17:30 +0200

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 16:09:54 +0200 )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-20 02:42:04 +0200 )edit

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

ptallen gravatar imageptallen ( 2020-04-20 02:43:08 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2019-09-13 10:27:39 +0200

tmonteil gravatar image

updated 2019-09-13 10:28:48 +0200

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-13 06:00:07 +0200

Seen: 563 times

Last updated: Sep 13 '19