rootstock
rootstock copied to clipboard
errors loading image from `latex.codecogs.com/svg.latex`
I'm getting a lot of these on build/build.sh:
ERROR: Failed to load image at "https://latex.codecogs.com/svg.latex?%5Ctextstyle%20h%28x%29" (URLError: <urlopen error [Errno 61] Connection refused>)
it looks like it's coming from this command in build.sh,
pandoc --data-dir=build/pandoc --defaults=common.yaml --defaults=html.yaml --defaults=pdf-weasyprint.yaml
I do have a lot of bad references at the moment, but I'm struggling to connect that with this error message ;). Any thoughts?
this is all running on Mac OS X. These messages don't seem to show up on my GitHub Actions builds tho - e.g. these logs
I guess what's going on here is that pandoc is using a web service to convert latex formulas into images -
https://tex.stackexchange.com/questions/463727/how-to-increase-pandoc-equation-resolution
and I'm guessing that it doesn't work from my home internet connection for some reason. How weird!
That's an interesting error if it only occurs with your home connection. Does the URL https://latex.codecogs.com/svg.latex?%5Ctextstyle%20h%28x%29 work from your home connection outside of Pandoc?
The WeasyPrint PDF builds are using these pandoc settings to convert equations to images as you described: https://github.com/dib-lab/2020-paper-sourmash-gather/blob/3b68a362bb35837f4e4bcb97c74a1c2ee53a58a3/build/pandoc/defaults/pdf-weasyprint.yaml#L7-L9
Pandoc has alternatives, but I'm not sure which would work with WeasyPrint. I could test WeasyPrint with method: mathjax if this remains an issue.