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

Fix alt text when multiple instances of a png figure are added in different chunks #1151

Open
cgrandin opened this issue Feb 16, 2024 · 1 comment
Assignees
Labels

Comments

@cgrandin
Copy link
Collaborator

If include_graphics() is used in two or more different chunks to load the same image file (same exact filename) then the alt text will cause malformed tag structure and the alt text will not appear on the PDF because the routine assumes exactly one instance of a filename with one instance of an alt text phrase. Need to modify post_process_add_alt_text() so that a filename can be used multiple times and be matched with the correct alt text phrases.

@cgrandin cgrandin added the bug label Feb 16, 2024
@cgrandin cgrandin added this to the 2025 milestone milestone Feb 16, 2024
@cgrandin cgrandin self-assigned this Feb 16, 2024
@andrew-edwards
Copy link
Collaborator

Or just make a copy of the .png with a slightly different filename and load each file separately in each chunk.
Likely to not be a common situation?

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

No branches or pull requests

2 participants