* Extracting typst equations
@ 2023-10-07 19:48 ch_...-S0/GAf8tV78@public.gmane.org
[not found] ` <6ba769a5-4d4f-4b8a-885d-bfd5439e7c29n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: ch_...-S0/GAf8tV78@public.gmane.org @ 2023-10-07 19:48 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 774 bytes --]
I have a lua filter that is being applied to Math elements with equations
(I extract them to generate graphics which I then include as images)
However, with pandoc's new support for typst the equations are converted to
Latex *before* the filter is run, so for
$
(a+b)
$
I get in math.text:
\left(a+b\right)
is there a way to get the original typst formula?
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6ba769a5-4d4f-4b8a-885d-bfd5439e7c29n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1620 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Extracting typst equations
[not found] ` <6ba769a5-4d4f-4b8a-885d-bfd5439e7c29n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-10-07 23:12 ` John MacFarlane
0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2023-10-07 23:12 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
No, the typst reader creates a Math inline element with TeX code (that's what we use for representing math in the AST).
> On Oct 7, 2023, at 12:48 PM, ch_...-S0/GAf8tV78@public.gmane.org <ch_819-S0/GAf8tV78@public.gmane.org> wrote:
>
> I have a lua filter that is being applied to Math elements with equations (I extract them to generate graphics which I then include as images)
> However, with pandoc's new support for typst the equations are converted to Latex before the filter is run, so for
>
> $
> (a+b)
> $
>
> I get in math.text:
>
> \left(a+b\right)
>
> is there a way to get the original typst formula?
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6ba769a5-4d4f-4b8a-885d-bfd5439e7c29n%40googlegroups.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-07 23:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-07 19:48 Extracting typst equations ch_...-S0/GAf8tV78@public.gmane.org
[not found] ` <6ba769a5-4d4f-4b8a-885d-bfd5439e7c29n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-10-07 23:12 ` John MacFarlane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).