New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imgmath failed to resolve image path for files in nested folder #10944
Milestone
Comments
this may be due to #10888 |
jschueller
added a commit
to jschueller/sphinx
that referenced
this issue
Nov 10, 2022
jschueller
added a commit
to jschueller/sphinx
that referenced
this issue
Nov 10, 2022
the good news is that you can work around with |
jschueller
added a commit
to jschueller/sphinx
that referenced
this issue
Nov 14, 2022
jschueller
added a commit
to jschueller/sphinx
that referenced
this issue
Dec 2, 2022
Confirmed on 5.3.0 |
stefanv
pushed a commit
to scipy-lectures/scientific-python-lectures
that referenced
this issue
Dec 2, 2022
jfbu
pushed a commit
to jschueller/sphinx
that referenced
this issue
Jan 4, 2023
AA-Turner
pushed a commit
to jschueller/sphinx
that referenced
this issue
Jan 5, 2023
Fixed in Sphinx 6.0.1 A |
akiyks
added a commit
to akiyks/linux
that referenced
this issue
Jan 9, 2023
The imgmath extension had a regression reported at [1]. This regression is related to the new option: imgmath_embed added in Sphinx 5.2.0. Enabling the option is an workaround to the issue. The regression has been fixed since Sphinx 6.0.1, but it should be reasonable to keep the option afterwards. Link: [1] sphinx-doc/sphinx#10944 Signed-off-by: Akira Yokosawa <akiyks@gmail.com> Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Hi. I am using the sphinx.ext.imgmath plugin to generate images for inline math. The images (of math) are correctly generated in
build/html/_images
, but the generated HTML files do not contain correct link to them.When there are nested files, instead of generating the link (to the image) relative to the file location, the generated links are instead relative to
build/html
. For example, say I have a pagesource/foo/index.rst
that contains math. Instead of generating an image tag as<img src="../_images/math/..."
, Sphinx generate<img src="_images/math/..."
As a result, images of math are not displayed correctly.This problem seems to be introduced in Sphinx v5.3.0. v5.2.3 does not have this behavior.
How to Reproduce
Create the following 3 files:
index.rst
foo/index.rst
conf.py
Then run the following commands:
Environment Information
Sphinx extensions
sphinx.ext.imgmath
Additional context
To make
sphinx.ext.imgmath
work correctly, latex needs to be installed in the system.The text was updated successfully, but these errors were encountered: