MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

Need Context menu option `Render As Plain Source` in V3 (or V3.2+)

Open jabobian opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. I'm always frustrated when need to copy paragraphs with inline equations. For MathJax v2.7, there is an option Render As Plain Source, so I can duplidate the webpage, and show the content in plain source for easy copy equations, while keep the original webpage showing equations rendered as CHTML.

For MathJax v3.2, it is now easier to copy a single equation by Copy > Latex command, but it becomes hard for copy paragraphs.

Describe the solution you'd like Context menu option Render As Plain Source in V3

jabobian avatar Dec 20 '24 02:12 jabobian

As a workaround for now, you can do

MathJax.startup.document.state(0, true);

in the browser's developer console and that will remove the typeset math and restore the original notation (much like the "Plain Source" renderer did).

To get back the typeset version, do

MathJax.startup.document.clear();
MathJax.typesetPromise();

You could probably make bookmarklets for these, so they would be easy to access.

dpvc avatar Dec 22 '24 11:12 dpvc

@dpvc Thank you very much. I use TamperMonkey script with menu items to emulate bookmarklet, it works like a charm.

jabobian avatar Dec 23 '24 03:12 jabobian