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

Argument display=FALSE to transform_mathjax() - inline/display equations #4

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

phgrosjean
Copy link
Contributor

David,
I really enjoy {flextable}, but there is a bug in equations (see https://stackoverflow.com/questions/75259222/inline-equations-in-flextable) where they are in display mode for HTML rendering while they are rendered in inline mode for both PDF and DOCX (inline mode is more useful in the context).
One way to solve it is to allow to choose between display or inline mode in transform_mathjax() in {equatags} through a new argument display = that is set to FALSE by default (= generate inline equations) in this pull request. This way, no further change is required to {flextable} to solve the bug.

@davidgohel
Copy link
Member

Thanks a lot @phgrosjean !

@davidgohel davidgohel merged commit 12f5656 into ardata-fr:main Jul 12, 2023
0 of 2 checks passed
@phgrosjean phgrosjean deleted the displayMode branch July 12, 2023 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants