Skip to content
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

Allow wildcards in image names. #7122

Open
mforbes opened this issue Oct 22, 2023 · 0 comments
Open

Allow wildcards in image names. #7122

mforbes opened this issue Oct 22, 2023 · 0 comments

Comments

@mforbes
Copy link

mforbes commented Oct 22, 2023

Problem

Jupyter Book supports multiple image formats by allowing a wildcard in the filename fig.* which will choose from the best appropriate available image on disk.

Proposed Solution

It would be very nice if Jupyter notebooks could support this feature as well. I.e., given files like fig.png, fig.svg, and fig.pdf on disk, the following would render:

![Figure](fig.*)
<img src="fig.*"/>

etc. In the browser these would render fig.svg (probably the best? If not, fig.png) while converting to LaTeX should issue code like \includegraphics{fig} which allows LaTeX to pick the fig.pdf version.

Additional context

Inspired by CoCalc Issue #6997 which would provide a way to use their Whiteboard to generate and edit such figures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants