You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LaTeX lwarp package allows to export books in HTML which are almost completely compatible with pressbooks. Only one feature has problems: equation numbering.
It would be great if pressbooks could support enabling the hidden form and the small javascript customization needed to enable automatic equation numbering and cross-reference.
This is an essential feature for many advanced mathematics and theoretical physics books, and being able to use latex to generate the content is also an helpful improvement for the editing.
Feature Use Case
Advanced mathematics and physics textbooks often require to cross-link equations referring to the equation numbers. MathJax allows one to do this, but it requires some customizations in javascript.
Since this is cumbersome and error prone to do by hand, do it in a way compatible with lwarp could also simplify porting existing latex content to pressbooks.
Feature Description
LaTeX
lwarp
package allows to export books in HTML which are almost completely compatible with pressbooks. Only one feature has problems: equation numbering.It would be great if pressbooks could support enabling the hidden form and the small javascript customization needed to enable automatic equation numbering and cross-reference.
This is an essential feature for many advanced mathematics and theoretical physics books, and being able to use latex to generate the content is also an helpful improvement for the editing.
Feature Use Case
Advanced mathematics and physics textbooks often require to cross-link equations referring to the equation numbers. MathJax allows one to do this, but it requires some customizations in javascript.
Since this is cumbersome and error prone to do by hand, do it in a way compatible with lwarp could also simplify porting existing latex content to pressbooks.
Example
In this Exercise, clicking on
(1.84)
sends the user to the corresponding equation.What is needed
The javascript customization is the same in all cases and it is the following: https://github.com/mseri/hammech20/blob/3d4e085b1a74ad7e1812e552266fb8c44181ddbf/chapter-1.html#L12-L231
In addition, an invisible
div
seems to be needed in the body to properly inject the relevant extra macros. In my case, this looks likehttps://github.com/mseri/hammech20/blob/3d4e085b1a74ad7e1812e552266fb8c44181ddbf/chapter-1.html#L474-L647
I think this one may vary depending on the latex packages and macros needed.
The text was updated successfully, but these errors were encountered: