ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mathcal generates error in ConTeXt
@ 2022-03-26  5:39 A A via ntg-context
  2022-03-26  7:07 ` Fwd: " A A via ntg-context
  2022-03-26  7:32 ` Jan-Erik Hägglöf via ntg-context
  0 siblings, 2 replies; 6+ messages in thread
From: A A via ntg-context @ 2022-03-26  5:39 UTC (permalink / raw)
  To: ntg-context; +Cc: A A


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

Dear All,

I am using pandoc to covert a file called test.tex from LaTeX to ConTeXt.
Here are the contents of test.tex:

*\documentclass{article}*

*\begin{document}*

*\mathcal{A}*

*\end{document}*

The file compiles OK with the following command and I see a resulting pdf:


*latexmk -pdflatex test.tex*

Then I try to convert with pandoc:

*pandoc -f latex -t context -o test_context.tex test.tex*

Pandoc appears to successfully generate a file test_context.tex containing
the following:

*\mathcal{A}*

Then I try to compile the test_context.tex file:

*context test_context.tex*

Which unfortunately results in an error:


*resolvers       | formats | executing runner 'run luametatex format':
C:/context/tex/texmf-win64/bin/luametatex --jobname="./test_context.tex"
--fmt=C:/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
--lua=C:/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
 --c:currentrun=1 --c:fulljobname="./test_context.tex"
--c:input="./test_context.tex" --c:kindofrun=1 --c:maxnofruns=9
--c:texmfbinpath="C:/context/tex/texmf-win64/bin"*


*system          > callbacks > not registering frozen 'local_box_filter'*
*system          >*
*system          > ConTeXt  ver: 2021.11.02 10:03 LMTX  fmt: 2021.11.4
 int: english/english*
*system          >*
*system          > 'cont-new.mkxl' loaded*
*open source     > level 1, order 1, name
'C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'*
*system          > beware: some patches loaded from cont-new.mkiv*
*close source    > level 1, order 1, name
'C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'*
*system          > files > jobname './test_context', input
'./test_context.tex', result './test_context'*
*fonts           > latin modern fonts are not preloaded*
*languages       > language 'en' is active*
*open source     > level 1, order 2, name './test_context.tex'*
*tex error       > tex error on line 1 in file ./test_context.tex:
\textfont0 is undefined in (text) char, font id 0, character 63)*


*<line 3.1>*
*    $\mathcal{A}$*


*1 >>  $\mathcal{A}$*
*2*
*Somewhere in the math formula just ended, you used the stated character
from an*
*undefined font family. For example, plain TeX doesn't allow \it or \sl in*
*subscripts. Proceed, and I'll try to forget that I needed that character.*
*mtx-context     | fatal error: return code: 1*


Why does ConTeXt not accept mathcal? Why does pandoc not account for this?
How can I remedy this with a reasonable amount of effort?

Regards,

Amine

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

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2022-03-26  8:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-26  5:39 mathcal generates error in ConTeXt A A via ntg-context
2022-03-26  7:07 ` Fwd: " A A via ntg-context
2022-03-26  7:09   ` A A via ntg-context
2022-03-26  7:32 ` Jan-Erik Hägglöf via ntg-context
2022-03-26  7:50   ` A A via ntg-context
2022-03-26  8:48     ` Wolfgang Schuster via ntg-context

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).