pydata-sphinx-theme icon indicating copy to clipboard operation
pydata-sphinx-theme copied to clipboard

Theme renders LaTeX to far right of page

Open Kai-Striega opened this issue 1 year ago • 6 comments

Please not: I'm not a web developer, kindly be patient with me!

I'm trying to apply the pydata-sphinx-theme to numpy-financial PR this works well, except the LaTeX equations are rendered to the far right of the page:

image

I'd like this to render in the centre of the page. This happens with the current theme bizstyle. Is this a bug with the theme or have I done something wrong?

Kai-Striega avatar Nov 16 '23 23:11 Kai-Striega

just a note that I'm about to head on holiday for a week and wasn't able to dig into this beforehand. My apologies; hopefully another dev has time to look at it sooner. Otherwise I'll take a look early in December. It will help if you provide a link to the built docs (a CI artifact perhaps?) so we can inspect the generated website source through browser dev tools.

drammock avatar Nov 17 '23 22:11 drammock

Enjoy your holiday @drammock!

I currently do not have the website building in CI. I'll get it set up and link to it in this issue, hopefully by the time you're back from your holidays.

Kai-Striega avatar Nov 17 '23 22:11 Kai-Striega

A quick update. I've swapped imgmath for mathjax which renders it correctly.

Kai-Striega avatar Nov 19 '23 00:11 Kai-Striega

all the css adaptation we built internally is based on Mathjax output. I don't know how it differs from imgmath but we cannot really afford to support both at the moment. Please reopen if you are willing to make a PR but as switching back to Sphinx default tools worked I'm reluctant to add this to the pile of lib we need to take care about.

12rambau avatar Nov 23 '23 12:11 12rambau

I'm going to reopen this because imgmath is an extension that is built-in to Sphinx. We really should handle it gracefully I think.

drammock avatar Dec 01 '23 16:12 drammock

Thanks for reopening the issue. I'm still working on getting the CI set up (we're nearly there) and then I can try to swap it back to imgmath to give you some sample output

Kai-Striega avatar Dec 01 '23 23:12 Kai-Striega