First time here? Check out the FAQ!

Ask Your Question
1

Sage Math can't find pandoc on MacOS Mojave

asked 5 years ago

KipIngram gravatar image

updated 5 years ago

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?

Preview: (hide)

Comments

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

Iguananaut gravatar imageIguananaut ( 5 years ago )

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 ( 4 years ago )

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

ptallen gravatar imageptallen ( 4 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 5 years ago

tmonteil gravatar image

updated 5 years ago

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...

Preview: (hide)
link

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: 5 years ago

Seen: 641 times

Last updated: Sep 13 '19