* Different behavior between MathJax and the default TeX Math
@ 2021-05-17 13:39 sjy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
[not found] ` <87feab23-2ea6-42ec-8241-a78d02ddebc8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: sjy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org @ 2021-05-17 13:39 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1180 bytes --]
Hello,
I was wondering if anyone could advise me how to address the following
issue..
The following code is correctly converted when `--mathjax` is used, but
fails with default TeX math.
I need to convert it into Word so I cannot use `--mathjax` option. Would
there be any workaround to avoid this issue?
## test.md
``` md
$${\large\text{IDF} = \log{\frac{{\text{N}}}{{\text{DF}}}}}$$
$${\large\text{TF-IDF} = TF{\times}\log\frac{{\text{N}}}{{\text{DF}}}}$$
```
``` bash
[WARNING] Could not convert TeX math '{\large\text{TF-IDF} =
TF{\times}\log\frac{{\text{N}}}{{\text{DF}}}}', rendering as TeX:
{\large\text{TF-IDF} = TF{\times}\log\fr
^
unexpected control sequence \large
expecting "%", "\\label", "\\tag", "\\nonumber" or whitespace
```
--
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/87feab23-2ea6-42ec-8241-a78d02ddebc8n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 1651 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Different behavior between MathJax and the default TeX Math
[not found] ` <87feab23-2ea6-42ec-8241-a78d02ddebc8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-05-17 17:37 ` John MacFarlane
[not found] ` <m2fsylmfcq.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2021-05-17 17:37 UTC (permalink / raw)
To: sjy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, pandoc-discuss
It's stumbling on `\large`.
Try adding this to your markdown document :
\newcommand{\large}[1]{#1}
"sjy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <sjysky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Hello,
>
> I was wondering if anyone could advise me how to address the following
> issue..
>
> The following code is correctly converted when `--mathjax` is used, but
> fails with default TeX math.
>
> I need to convert it into Word so I cannot use `--mathjax` option. Would
> there be any workaround to avoid this issue?
>
> ## test.md
>
> ``` md
> $${\large\text{IDF} = \log{\frac{{\text{N}}}{{\text{DF}}}}}$$
>
> $${\large\text{TF-IDF} = TF{\times}\log\frac{{\text{N}}}{{\text{DF}}}}$$
> ```
>
>
> ``` bash
> [WARNING] Could not convert TeX math '{\large\text{TF-IDF} =
> TF{\times}\log\frac{{\text{N}}}{{\text{DF}}}}', rendering as TeX:
> {\large\text{TF-IDF} = TF{\times}\log\fr
> ^
> unexpected control sequence \large
> expecting "%", "\\label", "\\tag", "\\nonumber" or whitespace
> ```
>
> --
> 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/87feab23-2ea6-42ec-8241-a78d02ddebc8n%40googlegroups.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Different behavior between MathJax and the default TeX Math
[not found] ` <m2fsylmfcq.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
@ 2021-05-17 19:01 ` JooYoung Seo
0 siblings, 0 replies; 3+ messages in thread
From: JooYoung Seo @ 2021-05-17 19:01 UTC (permalink / raw)
To: John MacFarlane; +Cc: pandoc-discuss
Wonderful! That has worked for me. Thanks John!
Best,
JY
On 5/17/21, John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:
>
> It's stumbling on `\large`.
> Try adding this to your markdown document :
>
> \newcommand{\large}[1]{#1}
>
>
> "sjy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <sjysky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
>> Hello,
>>
>> I was wondering if anyone could advise me how to address the following
>> issue..
>>
>> The following code is correctly converted when `--mathjax` is used, but
>> fails with default TeX math.
>>
>> I need to convert it into Word so I cannot use `--mathjax` option. Would
>> there be any workaround to avoid this issue?
>>
>> ## test.md
>>
>> ``` md
>> $${\large\text{IDF} = \log{\frac{{\text{N}}}{{\text{DF}}}}}$$
>>
>> $${\large\text{TF-IDF} = TF{\times}\log\frac{{\text{N}}}{{\text{DF}}}}$$
>> ```
>>
>>
>> ``` bash
>> [WARNING] Could not convert TeX math '{\large\text{TF-IDF} =
>> TF{\times}\log\frac{{\text{N}}}{{\text{DF}}}}', rendering as TeX:
>> {\large\text{TF-IDF} = TF{\times}\log\fr
>> ^
>> unexpected control sequence \large
>> expecting "%", "\\label", "\\tag", "\\nonumber" or whitespace
>> ```
>>
>> --
>> 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/87feab23-2ea6-42ec-8241-a78d02ddebc8n%40googlegroups.com.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-17 19:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-17 13:39 Different behavior between MathJax and the default TeX Math sjy...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
[not found] ` <87feab23-2ea6-42ec-8241-a78d02ddebc8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-05-17 17:37 ` John MacFarlane
[not found] ` <m2fsylmfcq.fsf-jF64zX8BO08an7k8zZ43ob9bIa4KchGshsV+eolpW18@public.gmane.org>
2021-05-17 19:01 ` JooYoung Seo
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).