Re: [NTG-context] mathcal generates error in ConTeXt
A A via ntg-context schrieb am 26.03.2022 um 08:50: Hi Jan, Thanks, I was starting to think pandoc is not yet mature enough to handle these conversions, but it looks like that might not be the case. \mathcal works now, but I actually ran into another issue in my real document. I have the following defined in my LaTeX: /$C = ``\textrm{dad}``$/ It looks like context has a hard time compiling the above, even with \starttext and \stoptext commands generated with the pandoc -s flag. Here's the error: /The control sequence at the end of the top line of your error message was never/ /\def'ed. You can just continue as I'll forget about whatever was undefined./ /mtx-context | fatal error: return code: 1/ / / How can I include quotes in math expressions the same way I do in LaTeX? When you take a closer look at the error message you can see ConTeXt complains about the \textrm command. tex error > tex error on line 2 in file ./test.tex: Undefined control sequence \undefined $C = ``\textrm {dad}``$ 1 \starttext 2 >> $C = ``\textrm{dad}``$ 3 \stoptext The control sequence at the end of the top line of your error message was never \def'ed. You can just continue as I'll forget about whatever was undefined. mtx-context | fatal error: return code: 1 You can solve this by replacing \textrm with \text or when you need more control about the style of the text you can use the \mathtext commands (e.g. \mathtextrm, \mathtextit etc.). To get the correct quotes in your document you either use the proper quotes in the source (“ and ”) or just use the \quotation command. \starttext $C = \text{\quotation{dad}}$ $C = \text{“dad”}$ \stoptext Wolfgang ___ 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 ___
Re: [NTG-context] mathcal generates error in ConTeXt
Hi Jan, Thanks, I was starting to think pandoc is not yet mature enough to handle these conversions, but it looks like that might not be the case. \mathcal works now, but I actually ran into another issue in my real document. I have the following defined in my LaTeX: *$C = ``\textrm{dad}``$* It looks like context has a hard time compiling the above, even with \starttext and \stoptext commands generated with the pandoc -s flag. Here's the error: *The control sequence at the end of the top line of your error message was never* *\def'ed. You can just continue as I'll forget about whatever was undefined.* *mtx-context | fatal error: return code: 1* How can I include quotes in math expressions the same way I do in LaTeX? Regards, Amine On Sat, 26 Mar 2022 at 08:32, Jan-Erik Hägglöf wrote: > HI! > > It generates no \starttext \stoptext tag > > It works with this though > > \starttext > > $\mathcal{A}$ > > \stoptext > > But with the -s option you get a standalone version of the document > > *pandoc -s -f latex -t context -o test_context.tex test.tex* > > */Janne* > > 26 mars 2022 kl. 06:39 skrev A A via ntg-context : > > 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)* > > > ** > *$\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 > > > > ___ > 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 > > ___ > > > ___ 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 ___
Re: [NTG-context] mathcal generates error in ConTeXt
HI! It generates no \starttext \stoptext tag It works with this though \starttext $\mathcal{A}$ \stoptext But with the -s option you get a standalone version of the document pandoc -s -f latex -t context -o test_context.tex test.tex /Janne > 26 mars 2022 kl. 06:39 skrev A A via ntg-context : > > 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) > > > $\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 > > ___ > 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 > ___ ___ 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 ___
[NTG-context] mathcal generates error in ConTeXt
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)* ** *$\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 ___ 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 ___
Re: [NTG-context] mathcal
Le 04 juillet à 23:43:23 Aditya Mahajan <[EMAIL PROTECTED]> écrit notamment: | On Wed, 4 Jul 2007, Jean Magnan de Bornier wrote: | > That's exactly what I needed, thanks a lot Wolfgang; I was being | > maybe too confident in this: | > | > http://wiki.contextgarden.net/Math_with_amsl > | I think that amsl module is not really needed now. ConTeXt has most | (all?) features provided by amsl. Have a look at > | http://dl.contextgarden.net/myway/mathalign.pdf | http://dl.contextgarden.net/myway/context-latex-math.pdf > | Aditya Thank you Aditya; I had those but still need more training to fully use them. -- Jean ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mathcal
On Wed, 4 Jul 2007, Jean Magnan de Bornier wrote: > That's exactly what I needed, thanks a lot Wolfgang; I was being > maybe too confident in this: > > http://wiki.contextgarden.net/Math_with_amsl I think that amsl module is not really needed now. ConTeXt has most (all?) features provided by amsl. Have a look at http://dl.contextgarden.net/myway/mathalign.pdf http://dl.contextgarden.net/myway/context-latex-math.pdf Aditya ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mathcal
Le 04 juillet à 07:42:30 "Wolfgang Schuster" <[EMAIL PROTECTED]> écrit notamment: | 2007/7/3, Jean Magnan de Bornier <[EMAIL PROTECTED]>: | > Hi all, | > With \usemodule[amsl], I get un error when using \mathcal: | > .. | > \mathcal | > | > l.187 loterie $\mathcal | >{L}$, $R'$, sont égaux. | > .. | > Should it not supposedly work? | > (Context last version) | > tia, | > -- | > Jean > | ConTeXt provides his own commands for fonts in math mode and did | not use LaTeX names. You can use the following commands: > | - \fraktur or \frak#1 | - \gothic or \goth#1 | - \calligraphic or \cal | - \blackboard or \bbd > | Wolfgang [...] That's exactly what I needed, thanks a lot Wolfgang; I was being maybe too confident in this: http://wiki.contextgarden.net/Math_with_amsl cheers -- Jean ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] mathcal
2007/7/3, Jean Magnan de Bornier <[EMAIL PROTECTED]>: > Hi all, > With \usemodule[amsl], I get un error when using \mathcal: > .. > \mathcal > > l.187 loterie $\mathcal >{L}$, $R'$, sont égaux. > .. > Should it not supposedly work? > (Context last version) > tia, > -- > Jean ConTeXt provides his own commands for fonts in math mode and did not use LaTeX names. You can use the following commands: - \fraktur or \frak#1 - \gothic or \goth#1 - \calligraphic or \cal - \blackboard or \bbd Wolfgang ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mathcal
Hi all, With \usemodule[amsl], I get un error when using \mathcal: .. \mathcal l.187 loterie $\mathcal {L}$, $R'$, sont égaux. .. Should it not supposedly work? (Context last version) tia, -- Jean ___ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___