public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* LaTeX macros in org reader
@ 2021-06-04 19:16 Lucas Viana
       [not found] ` <70bd4430-fc7b-4f01-9a1c-92d01ce44e46n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Lucas Viana @ 2021-06-04 19:16 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 817 bytes --]



Hi,

When using the markdown reader and converting to html with --mathml, one 
can write:

\newcommand{\mymacro}{This is my macro}

\(\mymacro\) -- works and exports mathml

But with the org reader, the above file fails (“Could not convert TeX 
math…”). Is something like this supported, or is it possible to write a 
filter to support it? Should this be a feature request?
​

-- 
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/70bd4430-fc7b-4f01-9a1c-92d01ce44e46n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3148 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: LaTeX macros in org reader
       [not found] ` <70bd4430-fc7b-4f01-9a1c-92d01ce44e46n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-06-04 20:03   ` Lucas Viana
  2021-06-05  6:26   ` John MacFarlane
  1 sibling, 0 replies; 3+ messages in thread
From: Lucas Viana @ 2021-06-04 20:03 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1125 bytes --]



Also note that this works with the org reader:

\(
\newcommand{\mymacro}{This is my macro} 

\mymacro
\) -- works and exports mathml

It just doesn’t “save” between math environments
​
Em sexta-feira, 4 de junho de 2021 às 16:16:05 UTC-3, Lucas Viana escreveu:

> Hi,
>
> When using the markdown reader and converting to html with --mathml, one 
> can write:
>
> \newcommand{\mymacro}{This is my macro}
>
> \(\mymacro\) -- works and exports mathml
>
> But with the org reader, the above file fails (“Could not convert TeX 
> math…”). Is something like this supported, or is it possible to write a 
> filter to support it? Should this be a feature request?
> ​
>

-- 
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/020c6332-60fe-43aa-88b7-519c70182cd7n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 4929 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: LaTeX macros in org reader
       [not found] ` <70bd4430-fc7b-4f01-9a1c-92d01ce44e46n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  2021-06-04 20:03   ` Lucas Viana
@ 2021-06-05  6:26   ` John MacFarlane
  1 sibling, 0 replies; 3+ messages in thread
From: John MacFarlane @ 2021-06-05  6:26 UTC (permalink / raw)
  To: Lucas Viana, pandoc-discuss


Sounds like you want the latex_macros extension to work with
org.  (Currently it isn't enabled for org.)

I have no idea how feasible this is. You can submit a feature request.

Lucas Viana <lucasvianareis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hi,
>
> When using the markdown reader and converting to html with --mathml, one 
> can write:
>
> \newcommand{\mymacro}{This is my macro}
>
> \(\mymacro\) -- works and exports mathml
>
> But with the org reader, the above file fails (“Could not convert TeX 
> math…”). Is something like this supported, or is it possible to write a 
> filter to support it? Should this be a feature request?
> ​
>
> -- 
> 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/70bd4430-fc7b-4f01-9a1c-92d01ce44e46n%40googlegroups.com.

-- 
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/m2bl8kyghw.fsf%40johnmacfarlane.net.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-05  6:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04 19:16 LaTeX macros in org reader Lucas Viana
     [not found] ` <70bd4430-fc7b-4f01-9a1c-92d01ce44e46n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-06-04 20:03   ` Lucas Viana
2021-06-05  6:26   ` 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).