From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96660 Path: news.gmane.org!.POSTED!not-for-mail From: "B.A.Lee" Newsgroups: gmane.comp.tex.context Subject: Re: Multiple Choice Quiz with self marking funciton Date: Wed, 26 Oct 2016 00:28:42 +0000 (UTC) Message-ID: <1460948609.1034771.1477441722671@mail.yahoo.com> References: <781054832.519833.1477070916591.ref@mail.yahoo.com> <781054832.519833.1477070916591@mail.yahoo.com> <580B5E5B.9040409@gmail.com> Reply-To: "B.A.Lee" , mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6266083039174924931==" X-Trace: blaine.gmane.org 1477441765 31071 195.159.176.226 (26 Oct 2016 00:29:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Oct 2016 00:29:25 +0000 (UTC) To: Wolfgang Schuster , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 26 02:29:20 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzC5a-0005ZO-0n for gctc-ntg-context-518@m.gmane.org; Wed, 26 Oct 2016 02:29:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9748A1BBA7; Wed, 26 Oct 2016 02:28:58 +0200 (CEST) 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 a87fI8vsC-QO; Wed, 26 Oct 2016 02:28:57 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 6BABC1BBA4; Wed, 26 Oct 2016 02:28:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4FF701BBA2 for ; Wed, 26 Oct 2016 02:28:56 +0200 (CEST) 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 m7dPNeH2vkXi for ; Wed, 26 Oct 2016 02:28:54 +0200 (CEST) Original-Received: from nm32-vm6.bullet.mail.bf1.yahoo.com (nm32-vm6.bullet.mail.bf1.yahoo.com [72.30.239.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 596311BBA1 for ; Wed, 26 Oct 2016 02:28:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1477441723; bh=hcd98LL23BnXN/E7IigG/0awgC3ir0aAWHG68wMV0gg=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=Q+9+J9Q1Wj8pFNI3MO9+nn+X8VclKv1lTX0gqELgB2ocA3ITEJ8DRNkuaPsBLK+6D3GFkIkNj26hOM+qhXUlsdM13X/UT5SR+g1TYSs/97/YxuJuCwMlGKWprnx7e1phVfDqCRph+HSTPLaUsRflFyKBnl3VeOdTNXAClGYfvXtMwK6IoNxwmV4nXg7d3RljkLRGRZ1Gqal6RPpOLNNyL1yvMmkiZMHjJtSQ0TtI/sS1t4nOFxWIa0uF/wG6kXDwWSQPn18LhJdSc/FGq9kD09jVWRU6UeuHMtKhRUDWD4sdREK+6D3fLBnjTYFO2/X5dEeDTrRzA4Tq/89UGFuygA== Original-Received: from [66.196.81.174] by nm32.bullet.mail.bf1.yahoo.com with NNFMP; 26 Oct 2016 00:28:43 -0000 Original-Received: from [98.139.212.234] by tm20.bullet.mail.bf1.yahoo.com with NNFMP; 26 Oct 2016 00:28:43 -0000 Original-Received: from [127.0.0.1] by omp1043.mail.bf1.yahoo.com with NNFMP; 26 Oct 2016 00:28:43 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 318346.26851.bm@omp1043.mail.bf1.yahoo.com X-YMail-OSG: 8_pmu2UVM1ksE7KAA_a.9MN1a_d0vxf9JaN47jeBeNOH7DYUxD9P2BEYxrLXg7H HNNCknrlCOsjLzTE3Ycwarzs9vUpRBVsmfU9nX2uNdWXTQ0tTfB.B5LFyHXFUUk4Utndg9c0GCGg UfsuUHADl0wzcnXWEF7Xy3h2l2pf.eocgmkSRLY.AklzE6wceL0a4Aa.R.5o26yVLZwjAdCCGbOx lhtBGaiQeHMuibjfzgzvk_QgnEXDfU2CTiQaD_WANkAXO9acsgcQ8Xca5ZNhzRaAD1TZ381k7zMZ v0sadkhcof324e1iz.8LYiy8QXXc8y1sMH.l4MfqTvLldJBpKTv7ydkUb5A6zRJ7vIROyFDZwlKJ UXyYved0zD4Cag5S.H0ybH5KyY44lV5bW7xYvl3zMMUKGt00pOTyVDDna8zy5aTZrZuoXQeEmkhV pH4r9rvDF.AarWe9V9WZso39Q5wxIxyyRozFjddRMudSr_60uM5aIlOatq0KXKONVAbjiVrJXeqz B3QBNZg.XNka9GRLmw1PtZEs- Original-Received: from jws400011.mail.bf2.yahoo.com by sendmailws123.mail.bf1.yahoo.com; Wed, 26 Oct 2016 00:28:42 +0000; 1477441722.928 In-Reply-To: <580B5E5B.9040409@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:96660 Archived-At: --===============6266083039174924931== Content-Type: multipart/alternative; boundary="----=_Part_1034770_404613128.1477441722663" ------=_Part_1034770_404613128.1477441722663 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Wolfgang for pointing the direction. My effort so far gave the following: %%%%\setuppapersize[S4][S4]\setupinteraction[state=3Dstart,click=3Dno] \definefield =C2=A0 =C2=A0 [Choice][radio][ChoiceSetup]=C2=A0 =C2=A0 [yes,no] \definesymbol [YesS] [Y] %[\ding{52},color=3Dred] %% Not successful in gett= ing the symbols I want to work\definesymbol [NoS] [\getglyph{Dingbats}{\cha= r10008}] %[\ding{56},color=3Dred]\definesymbol [BlankS] [] \definesubfield[yes][ChoiceSetup][YesS,BlankS]\definesubfield[no][ChoiceSet= up][NoS,BlankS] \copyfield [no] [no1]\copyfield [no] [no2]\copyfield [no] [no3]\copyfield [= no] [no4] \setupfield[ChoiceSetup]=C2=A0 =C2=A0 [width=3D2ex,=C2=A0 =C2=A0 =C2=A0heig= ht=3D2ex,=C2=A0 =C2=A0 =C2=A0frame=3Don,=C2=A0 =C2=A0 =C2=A0background=3Dsc= reen]=20 \starttext \hbox to \hsize=C2=A0 =C2=A0 {\field[no1] A: correct \hfill \field[yes] may= be \hfill \field[no2] incorrect \hfill \field[no3] huh?} \starttabulate =C2=A0 =C2=A0 \field[no1] $x$ \NC \field[no2] $-x$ \NR %% can't figure out = how to delink these radio fields from the above=C2=A0 =C2=A0 \field[no3] $\= pm x$ \NC \field[yes] $|x|$ \NR \stoptabulate \stoptext%%%% My intention for including this is not for someone to help debug this but t= o show the limit of my coding skills. I was really hoping for a working example of a multiple choice quiz since C= onTeXt was originally designed for educational purpose. Thanks anyway.=C2=A0@-->------=C2=A0May you be happy and well!=C2=A0B.A.=C2= =A0------<--@=20 On Saturday, 22 October 2016, 20:41, Wolfgang Schuster wrote: =20 =20 B.A.Lee 21. Oktober 2016 um 19:28 Hi, I am new to ConTeXt but have been using LaTeX for years.=C2=A0Just before I= came across ConTeXt, I ran across Acrotex eDucation Bundle. One of its pac= kages allows us to create multiple choice quizzes which has some self-harmi= ng features when done on screen. It also has a paper equivalent. I am wondering if anyone is willing to share his/her setups for multiple ch= oice, with or without the self-harming feature. I am also wondering if ConT= eXt has that self-harming feature too. If it can, I hope too see an example= of how it can be done. =20 Take a look at the widgets manual: http://pragma-ade.nl/show-man-13.htm Wolfgang =20 ------=_Part_1034770_404613128.1477441722663 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Wolfgang for pointing the dire= ction.

My effort so far gav= e the following:

%%%= %
\setuppapersize[S4][S4]
\setupinteraction[state=3Dstart,click=3Dno]

\definef= ield
    [= Choice][radio][ChoiceSetup]
  &nbs= p; [yes,no]

\definesymbol [YesS] [Y] %[\ding{52},color=3Dred] %% Not succes= sful in getting the symbols I want to work
\definesymbol [NoS] [\getglyph{Dingbats}{\char10008}] %[\ding{56},colo= r=3Dred]
\definesymbol [BlankS] []

\defi= nesubfield[yes][ChoiceSetup][YesS,BlankS]
\definesubfield[no][ChoiceSetup][NoS,BlankS]

\copyfield [no] [no1]
<= div id=3D"yiv8695701276yui_3_16_0_ym19_1_1477440408242_4120" style=3D"margi= n-top:0px;margin-bottom:0px;">\copyfield [no] [no2]
\copyfield [no] [no3]
\cop= yfield [no] [no4]

\setupfield[ChoiceSetup]
    [width=3D2ex,
  &= nbsp;  height=3D2ex,
   =  frame=3Don,
     = background=3Dscreen]

\starttext

\hbox to \hsize
   = ; {\field[no1] A: correct \hfill \field[yes] maybe \hfill \field[no2] incor= rect \hfill \field[no3] huh?}

\starttabulate

    \field= [no1] $x$ =09=09\NC \field[no2] $-x$ \NR %% can't figure out how to delink = these radio fields from the above
 = ;   \field[no3] $\pm x$ =09\NC \field[yes] $|x|$ \NR

\stoptabulate

\stoptext
%%%%

My i= ntention for including this is not for someone to help debug this but to sh= ow the limit of my coding skills.

I was really hoping for a working ex= ample of a multiple choice quiz since ConTeXt was originally designed for e= ducational purpose.

Thanks anyway.
=  
@-->------ 
May you be happy and well! 
B.A. 
------<= ;--@


=
On Saturday, 22 October 2016, 20:41, Wolfgang Schuster <schuster.wolf= gang@gmail.com> wrote:


<= span style=3D"padding-left:6px;">21.=20 Oktober 2016 um 19:28
Hi,

I am new to ConTeXt but=20 have been using LaTeX for years. Just before I came across ConTeXt, I= =20 ran across Acrotex eDucation Bundle. One of its packages allows us to=20 create multiple choice quizzes which has some self-harming features when done on screen. It also has a paper equivalent.

I am wondering= if anyone=20 is willing to share his/her setups for multiple choice, with or without=20 the self-harming feature. I am also wondering if ConTeXt has that=20 self-harming feature too. If it can, I hope too see an example of how it can be done.

Take a look at the widgets manual: http://pragma-ade.nl/show-man-13.htm

Wolfgang



------=_Part_1034770_404613128.1477441722663-- --===============6266083039174924931== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6266083039174924931==--