Add amsmath to the list of TeX packages in Plots.#1408
Conversation
This is package contains some common tools that many may expect to be present when displaying mathematical formulas in labels, such as `\dfrac`.
e767435 to
03bf653
Compare
|
Maybe it would be good to also add POD (to I wondered how long until someone hits an issue with some other tex package being unavailable? Not to add mission creep, but have you considered making |
|
@Alex-Jordan this did come up in the meeting that plots doesn't have a way to configure the LaTeXImage object directly. But this kinda leads down a rabbit hole of how configurable should plots give the various outputs it supports. What about compatibility with jsxgraph, should this allow creating images that cannot also be created in jsxgraph, or whatever other plot output that could be added in the future? There is more that can be done here, and maybe we should expose more of the LaTeXImage object to plots. This was just a quick fix to allow common things that many would expect so the tikz/pgfplots label output supports most of the stuff in jsxgraph via MathJax. If someone is really wanting to create a plot object with lots of custom libraries, maybe they should use LaTeXImage directly if they want that much control of the latex/tikiz output, instead of plots which is meant to be more independent of the back end of the plot being created. I think the real issue is someone creates something that shows up nicely in jsxgraph/html output only to find at a later date the hardcopy output is missing something. It might be a loosing battle to try to deal with each use case, so a future PR could expose more of the LaTeXImage configuration to the plots object. But then authors will have to know what additional libraries to load since MathJax auto loads them. |
|
Ok. But still the limitations could be documented in POD, so it's not a
mystery why some amsmath macro works now, but some amssymb (or whatever)
doesn't.
Alex Jordan
Mathematics Instructor
Portland Community College
…On Sun, May 17, 2026, 10:48 AM Jaimos Skriletz ***@***.***> wrote:
*somiaj* left a comment (openwebwork/pg#1408)
<https://urldefense.com/v3/__https://github.com/openwebwork/pg/pull/1408*issuecomment-4471903806__;Iw!!Ka_JY85zDv0FFw!hod15yTVx20ubbLKRsuzzraaubBzo4zKhnTJzHRY1WBmEEOW9uWfA1tzij5lVL7M7NYo0H52fztocWvkZNZPgTnUEB0$>
@Alex-Jordan
<https://urldefense.com/v3/__https://github.com/Alex-Jordan__;!!Ka_JY85zDv0FFw!hod15yTVx20ubbLKRsuzzraaubBzo4zKhnTJzHRY1WBmEEOW9uWfA1tzij5lVL7M7NYo0H52fztocWvkZNZPMWjPbKo$>
this did come up in the meeting that plots doesn't have a way to configure
the LaTeXImage object directly. But this kinda leads down a rabbit hole of
how configurable should plots give the various outputs it supports. What
about compatibility with jsxgraph, should this allow creating images that
cannot also be created in jsxgraph, or whatever other plot output that
could be added in the future?
There is more that can be done here, and maybe we should expose more of
the LaTeXImage object to plots. This was just a quick fix to allow common
things that many would expect so the tikz/pgfplots label output supports
most of the stuff in jsxgraph via MathJax. If someone is really wanting to
create a plot object with lots of custom libraries, maybe they should use
LaTeXImage directly if they want that much control of the latex/tikiz
output, instead of plots which is meant to be more independent of the back
end of the plot being created. I think the real issue is someone creates
something that shows up nicely in jsxgraph/html output only to find at a
later date the hardcopy output is missing something.
It might be a loosing battle to try to deal with each use case, so a
future PR could expose more of the LaTeXImage configuration to the plots
object. But then authors will have to know what additional libraries to
load since MathJax auto loads them.
—
Reply to this email directly, view it on GitHub
<https://urldefense.com/v3/__https://github.com/openwebwork/pg/pull/1408*issuecomment-4471903806__;Iw!!Ka_JY85zDv0FFw!hod15yTVx20ubbLKRsuzzraaubBzo4zKhnTJzHRY1WBmEEOW9uWfA1tzij5lVL7M7NYo0H52fztocWvkZNZPgTnUEB0$>,
or unsubscribe
<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABEDOABOJD5O5I4ABBWWKCL43H3NVAVCNFSM6AAAAACY3NIATCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DINZRHEYDGOBQGY__;!!Ka_JY85zDv0FFw!hod15yTVx20ubbLKRsuzzraaubBzo4zKhnTJzHRY1WBmEEOW9uWfA1tzij5lVL7M7NYo0H52fztocWvkZNZPPx-RiRw$>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://urldefense.com/v3/__https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!Ka_JY85zDv0FFw!hod15yTVx20ubbLKRsuzzraaubBzo4zKhnTJzHRY1WBmEEOW9uWfA1tzij5lVL7M7NYo0H52fztocWvkZNZPXx1HVlw$>
or Android
<https://urldefense.com/v3/__https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!Ka_JY85zDv0FFw!hod15yTVx20ubbLKRsuzzraaubBzo4zKhnTJzHRY1WBmEEOW9uWfA1tzij5lVL7M7NYo0H52fztocWvkZNZPJd1_luk$>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This is package contains some common tools that many may expect to be present when displaying mathematical formulas in labels, such as
\dfrac.