Re: [NTG-context] Trying to get a simple bibliography

2022-03-26 Thread Henning Hraban Ramm via ntg-context

Am 26.03.22 um 14:51 schrieb Thomas A. Schmitz via ntg-context:




On 26. Mar 2022, at 14:04, A A via ntg-context  wrote:

The next question I guess is whether ConTeXt support other specs like MLA or 
Chicago style. I tried MLA but without sucess. Is MLA possible in ConTeXt?


One (admittedly far-fetched) possibility would be to read the documentation. 
mkiv-publications, p. 29: context supports apa and aps styles for the moment; 
contributions are always welcome.


There’s also Joey McCollum’s SBL style: github.com/jjmccollum/context-sb

Hraban
___
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] Trying to get a simple bibliography

2022-03-26 Thread Thomas A. Schmitz via ntg-context


> On 26. Mar 2022, at 16:42, Denis Maier via ntg-context  
> wrote:
> 
> I think you've done that already ...

Oh my goodness, I’m getting too old for this… Thanks for pointing that out!

[Historical context: the Greek scholar Didymus had several nicknames. One was 
Chalcenterus “Bronze-Guts” because he could remain seated at his desk for hours 
without moving. The other was “bibliolathas” “Book-forgetter” because he wrote 
so many books he couldn’t remember them himself. End of historical context]

Thomas
___
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] Trying to get a simple bibliography

2022-03-26 Thread Denis Maier via ntg-context
I think you've done that already ...




Von: ntg-context  im Auftrag von Thomas A. Schmitz 
via ntg-context 
Gesendet: Samstag, 26. März 2022 16:37:03
An: mailing list for ConTeXt users
Cc: Thomas A. Schmitz
Betreff: Re: [NTG-context] Trying to get a simple bibliography

Hi Amine,

The bibliography subsystem is rather complex, and Alan, who has worked with 
Hans on support for APS and APA, wants to do things the right way, which means 
he wants to code for all corner cases. From my own experience: it is difficult 
to just copy and modify the existing publ-imp-XXX files; they define a number 
of clever macros that allow code reuse and consistency, but are not the most 
straightforward way for a non-programmer (like myself) to proceed. I have found 
it easier to start from scratch by writing my own publ-imp-custom.{mkiv,lua} 
files and then add whatever I need, one entry type at a time. That also allows 
you to understand the ways in which the system works. But of course, it’s less 
convenient than just changing APA to MLA, as you can in biblatex. ConTeXt has a 
much smaller user base, so we take somewhat longer. Maybe I should add a wiki 
article on a basic way to start one’s own custom definitions...

Best

Thomas

> On 26. Mar 2022, at 15:34, A A via ntg-context  wrote:
>
> Hi Thomas,
>
> Yes, I was able to find the appropriate section in the manual, thanks. Please 
> see my answer at SE.
>
> I don't think reading the docs is far-fetched by the way. But I think asking 
> on here is also fine.
>
> I'll consider making a contribution once I get a better grip of how the 
> ConTeXt system is put together.
>
> Again thanks for your response.
>
> 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] Trying to get a simple bibliography

2022-03-26 Thread Thomas A. Schmitz via ntg-context
Hi Amine,

The bibliography subsystem is rather complex, and Alan, who has worked with 
Hans on support for APS and APA, wants to do things the right way, which means 
he wants to code for all corner cases. From my own experience: it is difficult 
to just copy and modify the existing publ-imp-XXX files; they define a number 
of clever macros that allow code reuse and consistency, but are not the most 
straightforward way for a non-programmer (like myself) to proceed. I have found 
it easier to start from scratch by writing my own publ-imp-custom.{mkiv,lua} 
files and then add whatever I need, one entry type at a time. That also allows 
you to understand the ways in which the system works. But of course, it’s less 
convenient than just changing APA to MLA, as you can in biblatex. ConTeXt has a 
much smaller user base, so we take somewhat longer. Maybe I should add a wiki 
article on a basic way to start one’s own custom definitions...

Best

Thomas

> On 26. Mar 2022, at 15:34, A A via ntg-context  wrote:
> 
> Hi Thomas,
> 
> Yes, I was able to find the appropriate section in the manual, thanks. Please 
> see my answer at SE. 
> 
> I don't think reading the docs is far-fetched by the way. But I think asking 
> on here is also fine.
> 
> I'll consider making a contribution once I get a better grip of how the 
> ConTeXt system is put together.
> 
> Again thanks for your response.
> 
> 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] Trying to get a simple bibliography

2022-03-26 Thread A A via ntg-context
Hi Thomas,

Yes, I was able to find the appropriate section in the manual, thanks.
Please see my answer at SE

.

I don't think reading the docs is far-fetched by the way. But I think
asking on here is also fine.

I'll consider making a contribution once I get a better grip of how the
ConTeXt system is put together.

Again thanks for your response.

Regards,

Amine

On Sat, 26 Mar 2022 at 14:52, Thomas A. Schmitz via ntg-context <
ntg-context@ntg.nl> wrote:

>
>
> > On 26. Mar 2022, at 14:04, A A via ntg-context 
> wrote:
> >
> > The next question I guess is whether ConTeXt support other specs like
> MLA or Chicago style. I tried MLA but without sucess. Is MLA possible in
> ConTeXt?
>
> One (admittedly far-fetched) possibility would be to read the
> documentation. mkiv-publications, p. 29: context supports apa and aps
> styles for the moment; contributions are always welcome.
>
> Thomas
>
> ___
> 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] Trying to get a simple bibliography

2022-03-26 Thread Thomas A. Schmitz via ntg-context


> On 26. Mar 2022, at 14:04, A A via ntg-context  wrote:
> 
> The next question I guess is whether ConTeXt support other specs like MLA or 
> Chicago style. I tried MLA but without sucess. Is MLA possible in ConTeXt?

One (admittedly far-fetched) possibility would be to read the documentation. 
mkiv-publications, p. 29: context supports apa and aps styles for the moment; 
contributions are always welcome.

Thomas
___
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] Trying to get a simple bibliography

2022-03-26 Thread A A via ntg-context
I found the problem. I was not including the following in my preamble:

\usebtxdefinitions[aps]

The next question I guess is whether ConTeXt support other specs like MLA
or Chicago style. I tried MLA but without sucess. Is MLA possible in
ConTeXt?

On Sat, 26 Mar 2022 at 13:48, A A  wrote:

> In my previous email I forgot to include the \placelistofpublications
> command. I tried that and now I'm getting a citation, but the bibliography
> entry is not correctly typeset...
>
> On Sat, 26 Mar 2022 at 13:25, A A  wrote:
>
>> Hi All,
>>
>> I'm trying to get a simple bibliography to work with ConTeXt. Here's what
>> I have so far:
>>
>> *test.tex*
>>
>> \usebtxdataset[bibliography.bib]
>>
>> \starttext
>>
>>   \startbodymatter
>> See \cite[proofwiki]
>>   \stopbodymatter
>>
>>   \startbackmatter
>> \startsection[title=Bibliography]
>> \stopsection
>>   \stopbackmatter
>> \stoptext
>>
>> *bibliography.bib*
>>
>> @misc{
>>   proofwiki,
>>   title={{Definition:Collation - ProofWiki}},
>>   author={{ProofWiki}},
>>   howpublished={
>> \href{https://proofwiki.org/wiki/Definition:Collation}{link}
>>   },
>>   journal={{ProofWiki}},
>>   year={2021}
>> }
>>
>> When I compile test.tex it generates a pdf, but the citation is not
>> included in the body matter. Also the actual reference is not present in
>> Bibliography.
>>
>> What am I doing wrong?
>>
>> 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] Trying to get a simple bibliography

2022-03-26 Thread A A via ntg-context
In my previous email I forgot to include the \placelistofpublications
command. I tried that and now I'm getting a citation, but the bibliography
entry is not correctly typeset...

On Sat, 26 Mar 2022 at 13:25, A A  wrote:

> Hi All,
>
> I'm trying to get a simple bibliography to work with ConTeXt. Here's what
> I have so far:
>
> *test.tex*
>
> \usebtxdataset[bibliography.bib]
>
> \starttext
>
>   \startbodymatter
> See \cite[proofwiki]
>   \stopbodymatter
>
>   \startbackmatter
> \startsection[title=Bibliography]
> \stopsection
>   \stopbackmatter
> \stoptext
>
> *bibliography.bib*
>
> @misc{
>   proofwiki,
>   title={{Definition:Collation - ProofWiki}},
>   author={{ProofWiki}},
>   howpublished={
> \href{https://proofwiki.org/wiki/Definition:Collation}{link}
>   },
>   journal={{ProofWiki}},
>   year={2021}
> }
>
> When I compile test.tex it generates a pdf, but the citation is not
> included in the body matter. Also the actual reference is not present in
> Bibliography.
>
> What am I doing wrong?
>
> 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
___


[NTG-context] Trying to get a simple bibliography

2022-03-26 Thread A A via ntg-context
Hi All,

I'm trying to get a simple bibliography to work with ConTeXt. Here's what I
have so far:

*test.tex*

\usebtxdataset[bibliography.bib]

\starttext

  \startbodymatter
See \cite[proofwiki]
  \stopbodymatter

  \startbackmatter
\startsection[title=Bibliography]
\stopsection
  \stopbackmatter
\stoptext

*bibliography.bib*

@misc{
  proofwiki,
  title={{Definition:Collation - ProofWiki}},
  author={{ProofWiki}},
  howpublished={
\href{https://proofwiki.org/wiki/Definition:Collation}{link}
  },
  journal={{ProofWiki}},
  year={2021}
}

When I compile test.tex it generates a pdf, but the citation is not
included in the body matter. Also the actual reference is not present in
Bibliography.

What am I doing wrong?

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 generates error in ConTeXt

2022-03-26 Thread Wolfgang Schuster via ntg-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

2022-03-26 Thread A A via ntg-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

2022-03-26 Thread Jan-Erik Hägglöf via ntg-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] Fwd: mathcal generates error in ConTeXt

2022-03-26 Thread A A via ntg-context
And, by consequence test_context.tex looks like this

*$\mathcal{A}$*


-- Forwarded message -
From: A A 
Date: Sat, 26 Mar 2022 at 08:07
Subject: Fwd: mathcal generates error in ConTeXt
To: 


Sorry, there was a typo in my question below. test.tex looks like this:

*\documentclass{article}*

*\begin{document}*

*$\mathcal{A}$*

*\end{document}*


-- Forwarded message -
From: A A 
Date: Sat, 26 Mar 2022 at 06:39
Subject: mathcal generates error in ConTeXt
To: 


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
___


[NTG-context] Fwd: mathcal generates error in ConTeXt

2022-03-26 Thread A A via ntg-context
Sorry, there was a typo in my question below. test.tex looks like this:

*\documentclass{article}*

*\begin{document}*

*$\mathcal{A}$*

*\end{document}*


-- Forwarded message -
From: A A 
Date: Sat, 26 Mar 2022 at 06:39
Subject: mathcal generates error in ConTeXt
To: 


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
___