From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106524 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Yves Cloutier Newsgroups: gmane.comp.tex.context Subject: Re: ntg-context Digest, Vol 189, Issue 28 Date: Sun, 15 Mar 2020 11:09:34 -0400 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4500281376600122179==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="80697"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 15 16:09:08 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDUt1-000KpB-03 for gctc-ntg-context-518@m.gmane-mx.org; Sun, 15 Mar 2020 16:09:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1B01918294F; Sun, 15 Mar 2020 16:08:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LvL1T6rc05qt; Sun, 15 Mar 2020 16:08:37 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BEA3A182944; Sun, 15 Mar 2020 16:08:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 62A02182944 for ; Sun, 15 Mar 2020 16:08:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17UDCqoMfRMi for ; Sun, 15 Mar 2020 16:08:35 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.216.54; helo=mail-pj1-f54.google.com; envelope-from=yves.cloutier@gmail.com; receiver= Original-Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E09DD18291E for ; Sun, 15 Mar 2020 16:08:34 +0100 (CET) Original-Received: by mail-pj1-f54.google.com with SMTP id mq3so7025945pjb.0 for ; Sun, 15 Mar 2020 08:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=skoNckwCZDUHOua4RZe5sxO+GyubgVkvgLeqeRlVfsc=; b=kIsotze1gnNgibFZZV3+97py+5z/tgJCtH8BmV7aoRiA+BGyiwE6+n489ByAKsodTx q5e1R1WC+2t/XwDc/5zN9LU/XFK20m+dpEgQet1kU+b0s/7ZGpMy+7HJtOXAYrO3EMMy B9Tr1VxkoaMcFLVq41lyMgBLkZRjOhRmKId/fsjz8Lv5s9O/tFDaKKARqlya0YUTPyDw M1vQWtT9dmkw2qKuuoadAMzrBLMQGZHddsFwQs7ngUKAB8OF46y7gyjZXuQJA/fM1rfs Ja6a6rqhtejxY8JqDC2y27zQzYxgs+NDLGY3RmrwCGRf+v7IArz9hgl8x+gmb1oNUZUL aVmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=skoNckwCZDUHOua4RZe5sxO+GyubgVkvgLeqeRlVfsc=; b=CWG0ix++B5pbANMGy43HrC+PLRElY7ADgjGu7+PqHtmNtvWe23/pgzM9L4lweVkbk4 v4rNP50MVjYCmd+0UC+wy83cwkf3Z5Lb4BFIaQEggyal1M/bBNZFurtsRaVpyYBtJS1K 8XeiHVYrS11rIKk01S0Hy5OOwLl2+mxKLx8nBLH0Gij6dhtS4h9f3zkzsZHkgGHw3Mw5 glwIh0kChoYLQsQRl9MdXBRD5L1i0gnuiadBogroKXhO24h/1ebwtbgWmOP171P8SZSw mRID71kyGlrnwHM8EKwnDcq4M0O0LV2cEHQVKc0ieRDuUS2oxr+tvxrDjciA60B/bZ1i 8Pnw== X-Gm-Message-State: ANhLgQ1qcblxI4aU7bGYhDUEvXDhzVr7lnGBKTgtCSmSH1z3KuXfeGdx p/J7T2cepL8NnRWlkhNYknojdEtenv0BW1LhM7GNXHtG8Hw= X-Google-Smtp-Source: ADFU+vtWXJJzW17/VdMXUJ/pn9sCZPYz5nkH8dpb/uHsCretLzlAYEbZsuEA5R9ULdHmENmc8kmtXGd7fZmoe0IWp2E= X-Received: by 2002:a17:902:7044:: with SMTP id h4mr8253813plt.241.1584284912403; Sun, 15 Mar 2020 08:08:32 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:106524 Archived-At: --===============4500281376600122179== Content-Type: multipart/alternative; boundary="0000000000006d4dd405a0e6136d" --0000000000006d4dd405a0e6136d Content-Type: text/plain; charset="UTF-8" Hello Wolfgang, after a few attempts that didn't work I copy-pasted the example from the wiki: \definetyping[C][option=commands]\startC #include int main(){ return 0; /BTEX{\em unreachedCode;}/ETEX}\stopC This did not work. However following the example you provided this works perfectly! Many thanks. On Sun, Mar 15, 2020 at 6:26 AM wrote: > Send ntg-context mailing list submissions to > ntg-context@ntg.nl > > To subscribe or unsubscribe via the World Wide Web, visit > https://mailman.ntg.nl/mailman/listinfo/ntg-context > or, via email, send a message with subject or body 'help' to > ntg-context-request@ntg.nl > > You can reach the person managing the list at > ntg-context-owner@ntg.nl > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ntg-context digest..." > > > Today's Topics: > > 1. Source Code with Bolded Keywords (Yves Cloutier) > 2. Re: Source Code with Bolded Keywords (Wolfgang Schuster) > 3. Quizz (Fabrice Couvreur) > 4. Re: Quizz (Henning Hraban Ramm) > 5. METAPOST vardef returning multiple and non-numeric types as a > single answer? (Gerben Wierda) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 14 Mar 2020 11:54:31 -0400 > From: Yves Cloutier > To: mailing list for ConTeXt users > Subject: [NTG-context] Source Code with Bolded Keywords > Message-ID: > J5f28-8QV3yKrP+ev+UkRf0Q+SP3MAbskaPxbkvn956GZw@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hello, > > I am trying to typeset source code for a custom programming language and > would like to have the keywords in bold text. > > I tried following the example found here regarding verbatim displays: > > https://www.contextgarden.net/Verbatim_text#Displayed_text > > Specifically the C example, however this does not seem to work. No > formatting is applied to my keywords. > > Just wondering if the way to do it has changed or if there are other > examples I could look at to compare with what I'm doing. > > Regards, > > yc > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200314/d14dd25f/attachment-0001.htm > > > > ------------------------------ > > Message: 2 > Date: Sat, 14 Mar 2020 20:03:34 +0100 > From: Wolfgang Schuster > To: mailing list for ConTeXt users , Yves Cloutier > > Subject: Re: [NTG-context] Source Code with Bolded Keywords > Message-ID: > Content-Type: text/plain; charset=utf-8; format=flowed > > Yves Cloutier schrieb am 14.03.2020 um 16:54: > > Hello, > > > > I am trying to typeset source code for a custom programming language and > > would like to have the keywords in bold text. > > > > I tried following the example found here regarding verbatim displays: > > > > https://www.contextgarden.net/Verbatim_text#Displayed_text > > > > Specifically the C example, however this does not seem to work. No > > formatting is applied to my keywords. > > Can you provide a minimal example what you have tried. > > > Just wondering if the way to do it has changed or if there are other > > examples I could look at to compare with what I'm doing. > > \starttext > > \starttyping[escape=yes] > This is /BTEX\bf formatted/ETEX text. > \stoptyping > > \starttyping[escape={<<,>>}] > This is <<\bf formatted>> text. > \stoptyping > > \starttyping[escape={}] > This is text. > \stoptyping > > \stoptext > > Wolfgang > > > ------------------------------ > > Message: 3 > Date: Sun, 15 Mar 2020 10:34:43 +0100 > From: Fabrice Couvreur > To: mailing list for ConTeXt users > Subject: [NTG-context] Quizz > Message-ID: > sMFmjKe3Lc_-PTxwhW09g+uLTk1Z3A@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi, > With the Coronavirus pandemic, my school will close like all the others. We > chose to work with Microsoft Teams. I know how to file Math exercises > written with ConteXt and export to pdf format. Is it possible with ConteXt > to create interactive Quizz? > Thank you > Fabrice > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200315/17fa9887/attachment-0001.htm > > > > ------------------------------ > > Message: 4 > Date: Sun, 15 Mar 2020 10:46:17 +0100 > From: Henning Hraban Ramm > To: ntg-context@ntg.nl > Subject: Re: [NTG-context] Quizz > Message-ID: <3afc49c6-f279-49a7-2ef4-f13dacf295cf@fiee.net> > Content-Type: text/plain; charset=utf-8; format=flowed > > Am 15.03.20 um 10:34 schrieb Fabrice Couvreur: > > Hi, > > With the Coronavirus pandemic, my school will close like all the others. > > We chose to work with Microsoft Teams. I know how to file Math exercises > > written with ConteXt and export to pdf format. Is it possible with > > ConteXt to create interactive Quizz? > > You can create forms that work in Adobe Reader, but Radiobuttons are > broken in ConTeXt, and if you want to add validation, then good luck > getting JavaScript functions to work. > > See https://wiki.contextgarden.net/Widgets > > It much easier to use web technology (HTML forms). > > Best, Hraban > > > ------------------------------ > > Message: 5 > Date: Sun, 15 Mar 2020 11:22:25 +0100 > From: Gerben Wierda > To: mailing list for ConTeXt users > Subject: [NTG-context] METAPOST vardef returning multiple and > non-numeric types as a single answer? > Message-ID: <1AFD4799-65FF-4574-A9B5-40BA3C532955@rna.nl> > Content-Type: text/plain; charset="utf-8" > > I would like a vardef macro to return the pair of a picture and a bounding > box. I don't want to use the setbound operator, because as soon as I do > that, I cannot access the components of the picture anymore with pathpart. > > I found metapost vardef returning multiple values < > https://tex.stackexchange.com/questions/448740/metapost-vardef-returning-multiple-values> > on StackExchange but that is about returning multiple values of the same > numeric type. Is it possible to have vardef return a set of (picture, path) > or (picture, picture) in some way? If not, I need to make two vardef macros > for each result type. > > I tried many things, amongst which: > > vardef Foo( expr w, h) > % define pic > pic > end group,begingroup > % define pic > pic > endif > > picture foo[]; foo = Foo( 2, 4); > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200315/3c8000db/attachment.htm > > > > ------------------------------ > > Subject: Digest Footer > > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > > > ------------------------------ > > End of ntg-context Digest, Vol 189, Issue 28 > ******************************************** > --0000000000006d4dd405a0e6136d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Wo= lfgang, after a few attempts that didn't work I copy-pasted the example= from the wiki:

\definetyping[C][option=3Dcommands]
\startC
#include <stdio.h>
int main()<=
span class=3D"gmail-br">{
	return 0;
	/BTEX{\em =
unreachedCode;}/ETEX
}
\stop=
C

This did not work.
However following the example you provided this works perf= ectly! Many thanks.

On Sun, Mar 15, 2020 at 6:= 26 AM <ntg-context-request= @ntg.nl> wrote:
Send ntg-context mailing list submissions to
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ntg-context@ntg.nl

To subscribe or unsubscribe via the World Wide Web, visit
=C2=A0 =C2=A0 =C2=A0 =C2=A0 https://mailman.ntg.n= l/mailman/listinfo/ntg-context
or, via email, send a message with subject or body 'help' to
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ntg-context-request@ntg.nl

You can reach the person managing the list at
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ntg-context-owner@ntg.nl

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ntg-context digest..."


Today's Topics:

=C2=A0 =C2=A01. Source Code with Bolded Keywords (Yves Cloutier)
=C2=A0 =C2=A02. Re: Source Code with Bolded Keywords (Wolfgang Schuster) =C2=A0 =C2=A03. Quizz (Fabrice Couvreur)
=C2=A0 =C2=A04. Re: Quizz (Henning Hraban Ramm)
=C2=A0 =C2=A05. METAPOST vardef returning multiple and non-numeric types as= a
=C2=A0 =C2=A0 =C2=A0 single answer? (Gerben Wierda)


----------------------------------------------------------------------

Message: 1
Date: Sat, 14 Mar 2020 11:54:31 -0400
From: Yves Cloutier <yves.cloutier@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Source Code with Bolded Keywords
Message-ID:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <CAGW=3DJ5f28-= 8QV3yKrP+ev+UkRf0Q+SP3MAbskaPxbkvn956GZw@mail.gmail.com>
Content-Type: text/plain; charset=3D"utf-8"

Hello,

I am trying to typeset source code for a custom programming language and would like to have the keywords in bold text.

I tried following the example found here regarding verbatim displays:

https://www.contextgarden.net/Verbatim_te= xt#Displayed_text

Specifically the C example, however this does not seem to work. No
formatting is applied to my keywords.

Just wondering if the way to do it has changed or if there are other
examples I could look at to compare with what I'm doing.

Regards,

yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200314/d14dd25f= /attachment-0001.htm>

------------------------------

Message: 2
Date: Sat, 14 Mar 2020 20:03:34 +0100
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>, Yves Cloutier
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <yves.cloutier@gmail.com>
Subject: Re: [NTG-context] Source Code with Bolded Keywords
Message-ID: <c1c6f324-476c-49e5-da9b-2b2dcecdde3f@gmail.com= >
Content-Type: text/plain; charset=3Dutf-8; format=3Dflowed

Yves Cloutier schrieb am 14.03.2020 um 16:54:
> Hello,
>
> I am trying to typeset source code for a custom programming language a= nd
> would like to have the keywords in bold text.
>
> I tried following the example found here regarding verbatim displays:<= br> >
> https://www.contextgarden.net/Verbati= m_text#Displayed_text
>
> Specifically the C example, however this does not seem to work. No > formatting is applied to my keywords.

Can you provide a minimal example what you have tried.

> Just wondering if the way to do it has changed or if there are other <= br> > examples I could look at to compare with what I'm doing.

\starttext

\starttyping[escape=3Dyes]
This is /BTEX\bf formatted/ETEX text.
\stoptyping

\starttyping[escape=3D{<<,>>}]
This is <<\bf formatted>> text.
\stoptyping

\starttyping[escape=3D{<!--,-->}]
This is <!--\bf formatted--> text.
\stoptyping

\stoptext

Wolfgang


------------------------------

Message: 3
Date: Sun, 15 Mar 2020 10:34:43 +0100
From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Quizz
Message-ID:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 <CACyK-eqU1Yk+bdw2Z0J=3DsMFmjKe3Lc= _-PTxwhW09g+uLTk1Z3A@mail.gmail.com>
Content-Type: text/plain; charset=3D"utf-8"

Hi,
With the Coronavirus pandemic, my school will close like all the others. We=
chose to work with Microsoft Teams. I know how to file Math exercises
written with ConteXt and export to pdf format. Is it possible with ConteXt<= br> to create interactive Quizz?
Thank you
Fabrice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200315/17fa9887= /attachment-0001.htm>

------------------------------

Message: 4
Date: Sun, 15 Mar 2020 10:46:17 +0100
From: Henning Hraban Ramm <texml@fiee.net>
To: ntg-context@ntg= .nl
Subject: Re: [NTG-context] Quizz
Message-ID: <3afc49c6-f279-49a7-2ef4-f13dacf295cf@fiee.net&g= t;
Content-Type: text/plain; charset=3Dutf-8; format=3Dflowed

Am 15.03.20 um 10:34 schrieb Fabrice Couvreur:
> Hi,
> With the Coronavirus pandemic, my school will close like all the other= s.
> We chose to work with Microsoft Teams. I know how to file Math exercis= es
> written with ConteXt and export to pdf format. Is it possible with > ConteXt to create interactive Quizz?

You can create forms that work in Adobe Reader, but Radiobuttons are
broken in ConTeXt, and if you want to add validation, then good luck
getting JavaScript functions to work.

See https://wiki.contextgarden.net/Widgets

It much easier to use web technology (HTML forms).

Best, Hraban


------------------------------

Message: 5
Date: Sun, 15 Mar 2020 11:22:25 +0100
From: Gerben Wierda <gerben.wierda@rna.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] METAPOST vardef returning multiple and
=C2=A0 =C2=A0 =C2=A0 =C2=A0 non-numeric types as a single answer?
Message-ID: <1AFD4799-65FF-4574-A9B5-40BA3C532955@rna.nl> Content-Type: text/plain; charset=3D"utf-8"

I would like a vardef macro to return the pair of a picture and a bounding = box. I don't want to use the setbound operator, because as soon as I do= that, I cannot access the components of the picture anymore with pathpart.=

I found metapost vardef returning multiple values <https://tex.stackexchange.com/que= stions/448740/metapost-vardef-returning-multiple-values> on StackExc= hange but that is about returning multiple values of the same numeric type.= Is it possible to have vardef return a set of (picture, path) or (picture,= picture) in some way? If not, I need to make two vardef macros for each re= sult type.

I tried many things, amongst which:

vardef Foo( expr w, h)
% define pic
pic
end group,begingroup
% define pic
pic
endif

picture foo[]; foo =3D Foo( 2, 4);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <htt= p://mailman.ntg.nl/pipermail/ntg-context/attachments/20200315/3c8000db/atta= chment.htm>

------------------------------

Subject: Digest Footer

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : https://foundry.supelec.fr/projects/c= ontextrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________


------------------------------

End of ntg-context Digest, Vol 189, Issue 28
********************************************
--0000000000006d4dd405a0e6136d-- --===============4500281376600122179== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4500281376600122179==--