[NTG-context] Flaw in Vim syntax highlighting

2022-04-12 Thread A A via ntg-context
Hello,

I have discovered a flaw in the syntax highlighting for ConTeXt in Vim.
When trying to follow the *A larger Lua block:
\startluacode...\stopluacode * in this link in Context Garden
, I get the following
syntax highlighting:

[image: image.png]

Who develops the syntax highlighting for Vim? Is this part of the core
project or should I log this issue elsewhere?

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] Lorem ipsum module line limit

2022-04-12 Thread A A via ntg-context
Hello,

I am trying to fill up an entire page with dummy text using m-ipsum.
Unfortunately, it looks like m-ipsum only allows up to 12 lines, if I
increase it to 13+ lines I see no change in the resulting PDF file:






*\usemodule[m-ipsum]\starttext\ipsum[alternative=lines, n=12]\stoptext*

Is this intended behavior or a bug. How can I fill up the whole page with
dummy text?

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] Proper formatting of itemized bullets in ConTeXt

2022-04-12 Thread A A via ntg-context
Dear All,

Is there a straightforward way of setting up the itemize command such that
every first letter is capitalized, regardless of whether I do so in the
source file?

Also, is there a way to insert a comma at the end of each item except for
the last, and then a full stop at the end of the last item like follows?

   - First item,
   - Second item,
   - Third item,
   - Last item.

Thanks in advance.

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] Spellchecking for ConTeXt user on a Windows platform

2022-04-02 Thread A A via ntg-context
Hi Alain,

Yes that's what I mean, spellchecking any content which is not a control
sequence. That should include things like section titles and footnotes.
Though I'm afraid that might be asking for too much.

I'd rather not make it part of my editor (I use vim) and have it as an
extra step which I can add to something like a Makefile.

Do I need to install all of Libreoffice to gain access to the files you
mention or is there an easier way?

Amine

On Sat, 2 Apr 2022, 13:42 Alain Delmotte via ntg-context, <
ntg-context@ntg.nl> wrote:

> Hi Amine!
>
> Do you mean spellchecking the content of your document (not the ConTeXt
> commands)?
>
> This depends on your editor!
> I use TeXworks and there is spellchecking using the dictionaries of
> LibreOffice. You should copy the .aff and .dicfiles from "C:\Program
> Files\LibreOffice\share\extensions\..." subdirectories to the 
> "C:\Users\\AppData\Roaming\TUG\TeXworks\dictionaries"
> folder (created when installing TeXworks), (I think not in subfolders for
> the different languages).
> You can then ask for spellchecking when you type or not.
>
> I hope this help,
>
> Alain
> Le 2/04/2022 à 09:23, A A via ntg-context a écrit :
>
> Dear All,
>
> I'm currently using ConTeXt on a windows machine. I'd like to incorporate
> some sort of automated spell-checking in my workflow. I've seen that there
> are two options:
>
>1. spell check the .tex source file
>2. spell check the resulting pdf
>
> For the first option many resources online seem to suggest using *aspell.
> aspell* is however not maintained for windows and therefore hopelessly
> out of date. Furthermore many resources online seem to suggest skipping TeX
> and LaTeX control sequences does not always succeed. So I can only imagine
> how poorly it deals with ConTeXt control sequences.
>
> The second option as shown on this StackExchange
> <https://tex.stackexchange.com/questions/42843/is-there-a-spell-check-package-for-latex>
>  post
> suggests using *\loadspellchecklist. *However, on of the arguments to
> this command includes a text file listing - and brace yourself - *all of
> the correctly spelled words*. I find this both an amusing and tragic
> proposition, since I basically need to spellcheck based on *every word in
> a given language.*
>
> What options are out there for someone who would like to do serious
> spellchecking using ConTeXt on Windows platform, using Powershell as my
> command line?
>
> 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
>
> ___
>
___
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] Spellchecking for ConTeXt user on a Windows platform

2022-04-02 Thread A A via ntg-context
Dear All,

I'm currently using ConTeXt on a windows machine. I'd like to incorporate
some sort of automated spell-checking in my workflow. I've seen that there
are two options:

   1. spell check the .tex source file
   2. spell check the resulting pdf

For the first option many resources online seem to suggest using *aspell.
aspell* is however not maintained for windows and therefore hopelessly out
of date. Furthermore many resources online seem to suggest skipping TeX and
LaTeX control sequences does not always succeed. So I can only imagine how
poorly it deals with ConTeXt control sequences.

The second option as shown on this StackExchange

post
suggests using *\loadspellchecklist. *However, on of the arguments to this
command includes a text file listing - and brace yourself - *all of the
correctly spelled words*. I find this both an amusing and tragic
proposition, since I basically need to spellcheck based on *every word in a
given language.*

What options are out there for someone who would like to do serious
spellchecking using ConTeXt on Windows platform, using Powershell as my
command line?

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] Fwd: command line arguments to specify output directory

2022-03-31 Thread A A via ntg-context
At first I was not following Aditya's note that  "filename has to be
relative to the test/ directory not CWD". When I followed that
recommendation it worked fine.

On Thu, 31 Mar 2022, 11:28 Alain Delmotte via ntg-context, <
ntg-context@ntg.nl> wrote:

> Hi Amine,
> Le 31/03/2022 à 07:24, A A via ntg-context a écrit :
>
> Hi Aditya,
>
> Nevermind, I got it to work. Thanks!
>
> Amine
>
>
> And how did you get it to work? Could you leave a trace of what you did?
>
> Thanks
>
> --
>
> Alain
>
>
> On Thu, 31 Mar 2022 at 07:21, A A  wrote:
>
>> Hi Aditya,
>>
>> Sorry, but I'm still getting an error:
>>
>> *runtime error : input file 'test/test.tex' is not found, quitting*
>>
>> Amine
>>
>> On Thu, 31 Mar 2022 at 00:46, Aditya Mahajan via ntg-context <
>> ntg-context@ntg.nl> wrote:
>>
>>> On Wed, 30 Mar 2022, A A via ntg-context wrote:
>>> > On Wed, 30 Mar 2022 at 18:39, Wolfgang Schuster <
>>> > wolfgang.schuster.li...@gmail.com> wrote:
>>> >
>>> > > A A via ntg-context schrieb am 30.03.2022 um 18:24:
>>> > > > Dear All,
>>> > > >
>>> > > > I would like to ask whether there exists a command line option to
>>> the
>>> > > > context executable which would allow me to specify the directory in
>>> > > > which I would like my output to be dumped.
>>> > > >
>>> > > > I have noticed that if I call the executable outside the directory
>>> in
>>> > > > which the .tex file resides, my supporting files (and resulting
>>> pdf)
>>> > > > are dumped outside the directory in which the .tex file is located.
>>> > >
>>> > > context --runpath=... filename
>>> >
>>> >- I tried the following *context --runpath=test test/test.tex * but
>>> it
>>> >still dumps all the output (.log, .pdf and .tuc) into my current
>>> directory.
>>> >I would like for it to get dumped inside the *test *directory...
>>>
>>> mtxrun --path=test --script context test.tex
>>>
>>> (note that filename has to be relative to the test/ directory not CWD)
>>>
>>> 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://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
> ___
>
>
> ___
> 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] Fwd: command line arguments to specify output directory

2022-03-30 Thread A A via ntg-context
Hi Aditya,

Nevermind, I got it to work. Thanks!

Amine

On Thu, 31 Mar 2022 at 07:21, A A  wrote:

> Hi Aditya,
>
> Sorry, but I'm still getting an error:
>
> *runtime error : input file 'test/test.tex' is not found, quitting*
>
> Amine
>
> On Thu, 31 Mar 2022 at 00:46, Aditya Mahajan via ntg-context <
> ntg-context@ntg.nl> wrote:
>
>> On Wed, 30 Mar 2022, A A via ntg-context wrote:
>> > On Wed, 30 Mar 2022 at 18:39, Wolfgang Schuster <
>> > wolfgang.schuster.li...@gmail.com> wrote:
>> >
>> > > A A via ntg-context schrieb am 30.03.2022 um 18:24:
>> > > > Dear All,
>> > > >
>> > > > I would like to ask whether there exists a command line option to
>> the
>> > > > context executable which would allow me to specify the directory in
>> > > > which I would like my output to be dumped.
>> > > >
>> > > > I have noticed that if I call the executable outside the directory
>> in
>> > > > which the .tex file resides, my supporting files (and resulting pdf)
>> > > > are dumped outside the directory in which the .tex file is located.
>> > >
>> > > context --runpath=... filename
>> >
>> >- I tried the following *context --runpath=test test/test.tex * but
>> it
>> >still dumps all the output (.log, .pdf and .tuc) into my current
>> directory.
>> >I would like for it to get dumped inside the *test *directory...
>>
>> mtxrun --path=test --script context test.tex
>>
>> (note that filename has to be relative to the test/ directory not CWD)
>>
>> 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://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] Fwd: command line arguments to specify output directory

2022-03-30 Thread A A via ntg-context
Hi Aditya,

Sorry, but I'm still getting an error:

*runtime error : input file 'test/test.tex' is not found, quitting*

Amine

On Thu, 31 Mar 2022 at 00:46, Aditya Mahajan via ntg-context <
ntg-context@ntg.nl> wrote:

> On Wed, 30 Mar 2022, A A via ntg-context wrote:
> > On Wed, 30 Mar 2022 at 18:39, Wolfgang Schuster <
> > wolfgang.schuster.li...@gmail.com> wrote:
> >
> > > A A via ntg-context schrieb am 30.03.2022 um 18:24:
> > > > Dear All,
> > > >
> > > > I would like to ask whether there exists a command line option to the
> > > > context executable which would allow me to specify the directory in
> > > > which I would like my output to be dumped.
> > > >
> > > > I have noticed that if I call the executable outside the directory in
> > > > which the .tex file resides, my supporting files (and resulting pdf)
> > > > are dumped outside the directory in which the .tex file is located.
> > >
> > > context --runpath=... filename
> >
> >- I tried the following *context --runpath=test test/test.tex * but it
> >still dumps all the output (.log, .pdf and .tuc) into my current
> directory.
> >I would like for it to get dumped inside the *test *directory...
>
> mtxrun --path=test --script context test.tex
>
> (note that filename has to be relative to the test/ directory not CWD)
>
> 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://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] Breaking url into multiple lines results in broken link in rendered PDF

2022-03-30 Thread A A via ntg-context
I would like to be able to break up URLs into multiple lines in my
bibliography source file and still get the link to work. Here's what I have
so far:












*\setupinteraction  [state=start]\starttext\useURL  [myUrl]  [
"https://www.g oogle.com "
]\goto{link}[url(myUrl)]\stoptext*

Unfortunately the link does not work. When I *don't* split the URL into
multiple lines, the link works again.

In reality my link is very long and forces uncomfortable line continuation
in my `vim` editor. How can I break up long URLs in my source `.tex` file
and still get the link to work in the resulting pdf?

  [1]:
https://tex.stackexchange.com/questions/638541/line-continuation-in-bib-file-url-for-cleaner-bibliography-code
___
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: command line arguments to specify output directory

2022-03-30 Thread A A via ntg-context
Thanks Wolfgang. I have two remarks:

   - That option is not documented and cannot be found when I type *context
   *into my command line and press enter. Do you know why this is?
   - I tried the following *context --runpath=test test/test.tex * but it
   still dumps all the output (.log, .pdf and .tuc) into my current directory.
   I would like for it to get dumped inside the *test *directory...


On Wed, 30 Mar 2022 at 18:39, Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> A A via ntg-context schrieb am 30.03.2022 um 18:24:
> > Dear All,
> >
> > I would like to ask whether there exists a command line option to the
> > context executable which would allow me to specify the directory in
> > which I would like my output to be dumped.
> >
> > I have noticed that if I call the executable outside the directory in
> > which the .tex file resides, my supporting files (and resulting pdf)
> > are dumped outside the directory in which the .tex file is located.
>
> context --runpath=... filename
>
> 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
___


[NTG-context] command line arguments to specify output directory

2022-03-30 Thread A A via ntg-context
Dear All,

I would like to ask whether there exists a command line option to the
context executable which would allow me to specify the directory in which I
would like my output to be dumped.

I have noticed that if I call the executable outside the directory in which
the .tex file resides, my supporting files (and resulting pdf) are dumped
outside the directory in which the .tex file is located.

Any help would be most welcome. Thanks for your consideration.

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: documentation for \cite and \setupcite commands

2022-03-27 Thread A A via ntg-context
Another question, *Bibliographies, the ConTeXt way *by Hans Hagen and Alan
Braslau introduces a parameter not shown in the \cite doc in ConTeXt
garden, namely "righttext".

Moreover, this answer

introduces
an "extras" parameter, also not included in ConTeXt garden. Am I missing
something here?

-- Forwarded message -
From: A A 
Date: Sun, 27 Mar 2022 at 20:16
Subject: Fwd: documentation for \cite and \setupcite commands
To: 


Nevermind, for \cite there is detailed documentation here


Can I safely assume that \setupcite uses the same arguments? Can I
generalize this assumption to all \command and \setupcommand in ConTeXt?

-- Forwarded message -
From: A A 
Date: Sun, 27 Mar 2022 at 20:09
Subject: documentation for \cite and \setupcite commands
To: 


Dear All,

Does anyone know where I can find more or less detailed information about
the \cite and \setupcite commands? I checked ConTeXt garden and the book
"ConTeXt: An excursion". I also checked the mailing list search engine and
did a couple of generic google searches but found nothing to the level of
detail I'm looking for.

Thanks in advance for your help.

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] Please could you send me the whole example

2022-03-27 Thread A A via ntg-context
Dear Helmut,

Here is a full working example:

*test.tex*

\usebtxdefinitions[aps]
\usebtxdataset[bibliography.bib]
\setupinteraction[state=start]


\starttext

  \startbodymatter
See \cite[proofwiki]
  \stopbodymatter

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

*bibliography.bib*

@misc{
  proofwiki,
  title={{Definition:Collation - ProofWiki}},
  author={{ProofWiki}},
  journal={{ProofWiki}},
  year={2021},
  howpublished={
\goto
  {link}
  [
url(
  "
https://proofwiki.org/wiki/Definition:Language_of_Propositional_Logic";
)
  ]
  }
}

Hope it helps. Thanks.

Regards,

Amine



On Sun, 27 Mar 2022 at 12:33, Helmut Schwertner 
wrote:

> Hello Amiene,
>
> I read your "question" in the NTG-Context-Groupe, I try it, but it
> doesn't work for me.
>
> Please could you send me the complete working example?
>
> Thank you,
>
> Greetings,
>
> Helmut
>
> --
> *
> Helmut Schwertner
> Kirchweg 154
> 28201 Bremen
> 0421 528 58 22
> helmut.schwertner[a]gmail.com
>
>
___
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
<https://tex.stackexchange.com/questions/638481/getting-a-simple-bibliography-to-work-in-context>
.

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 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 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
___


[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
___


[NTG-context] mathcal generates error in ConTeXt

2022-03-25 Thread 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
___


[NTG-context] Backmatter preventing section numbers from appearing

2021-11-25 Thread A A via ntg-context
Dear All,

I've noticed that the mere presence of backmatter prevents my sections from
being numbered. Consider the following:










*\starttext\startsection[  title={Create Serverless
Applications},]blablabla\stopsection%\startbackmatter % comment
out%\stopbackmatter % comment out\stoptext*

Uncommenting lines 8 and 9 causes the section numbers to disappear.

Is this normal behavior? Why does the presence of backmatter affect my
sections like this?

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] Can't replicate a simple example in the wikipage

2021-11-15 Thread A A via ntg-context
Dear All,

I'm trying to run one of the examples in the ConTeXt wiki page
https://wiki.contextgarden.net/Titles

Here's the code:













*\setuppapersize[A5]\section[sec:old]{Old Section}This is an old-style
\ConTeXt\ section.\startsection  [title={New Section}
reference=sec:new,  ]This is a new-style section.\stopsection*

However, my compiled pdf looks nothing like the example on the wiki. What
am I doing wrong? Is there anything wrong with my ConTeXt settings?

Regards,

Amine


start_stop_sectioning.pdf
Description: Adobe PDF document
___
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] \startbodymatter forcing new page in document

2021-11-15 Thread A A via ntg-context
Dear All,

The following code generates a title and some fake text:










*\setuppagenumbering[location=right]\usemodule[visual]\usebtxdataset[bibliography.bib]\starttext\title{test}\fakewords{1000}{1200}\stoptext*

The following code does the same, but wraps the fakewords in a *bodymatter *
environment:







*\setuppagenumbering[location=right]\usemodule[visual]\usebtxdataset[bibliography.bib]\starttext\title{test}*


*\startbodymatter\fakewords{1000}{1200}\stopbodymatter*

*\stoptext*


In the first case, the title remains on the same page as the fake text. In
the second case, a new page is forced after the title. Why does this occur?

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] adding module to ConTeXt basic installation

2021-11-06 Thread A A via ntg-context
Dear All,

I installed ConTeXt on my windows machine using the instructions provided
here:

 - https://wiki.contextgarden.net/Installation

I would like to now render some python code in my pdf. For this I need to
install this module: https://github.com/adityam/filter

How do I add this module to my current installation? Thanks for your
consideration.

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
___