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

formula.js: consider switching disp-formula output to div #414

Open
pkra opened this issue Mar 17, 2023 · 3 comments
Open

formula.js: consider switching disp-formula output to div #414

pkra opened this issue Mar 17, 2023 · 3 comments

Comments

@pkra
Copy link
Member

pkra commented Mar 17, 2023

From #413 (comment)

So far, formulas were turned into spans but our new "text formulas" should be divs (since they can contain paragraphs).
Perhaps every disp-formula should be a div.

@pkra pkra added this to the 2023 milestone Mar 17, 2023
@pkra pkra self-assigned this Mar 17, 2023
@pkra
Copy link
Member Author

pkra commented Jun 14, 2023

@pkra
Copy link
Member Author

pkra commented Jun 14, 2023

Note: texml frequently puts disp-formula inside p so we'd have to deal with that (e.g., by improving hacks.js)

@pkra pkra modified the milestones: 2023, 2024 Jan 15, 2024
@pkra pkra modified the milestones: 2024, 2025 Jan 7, 2025
@pkra pkra added the upstream label Jan 15, 2025
@pkra
Copy link
Member Author

pkra commented Jan 15, 2025

We have plenty of disp-formula's in p's so this really depends on upstream.

A quick random test shows that most publications have disp-formula's in p's. Still, they seem somewhat infrequent (<10% of disp-formulas) and they almost always seem to appear inside def-list, so maybe they are not always intentional (cf. AmerMathSoc/texml#104)

Either way, it's a philosophical question - are disp-formulas part of a paragraph or not.

@pkra pkra added the blocked label Jan 20, 2025
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

1 participant