mathlive icon indicating copy to clipboard operation
mathlive copied to clipboard

Request for Built-in Feature to Remove Placeholder Tags While Retrieving LaTeX String

Open pisakhov opened this issue 3 years ago • 0 comments

Description I'm using placeholders in MathLive version 0.95.5 and need a way to remove placeholder tags while preserving the placeholder content in the returned LaTeX string.

Steps to Reproduce Initialize MathLive with LaTeX string containing placeholders, for example: {\placeholder[a]{\frac{1}{2x}}}\log\left(x\right)+{\placeholder[b]{2}}\ln\left(y\right) Attempt to retrieve the LaTeX string but without the placeholder tags.

Actual Behavior MathLive returns the LaTeX string with placeholders, for example: {\placeholder[a]{\frac{1}{2x}}}\log\left(x\right)+{\placeholder[b]{2}}\ln\left(y\right)

Expected Behavior I would like a built-in way to get the LaTeX string as \frac{1}{2x}\log\left(x\right)+2\ln\left(y\right), effectively removing the placeholder tags but keeping their content.

Environment MathLive version: 0.95.5

Operating System: macOS

Browser: Chrome

pisakhov avatar Oct 25 '23 04:10 pisakhov