ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "B.A.Lee" <b.a.lee@rocketmail.com>
To: Wolfgang Schuster <schuster.wolfgang@gmail.com>,
	 mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Multiple Choice Quiz with self marking funciton
Date: Wed, 26 Oct 2016 00:28:42 +0000 (UTC)	[thread overview]
Message-ID: <1460948609.1034771.1477441722671@mail.yahoo.com> (raw)
In-Reply-To: <580B5E5B.9040409@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2159 bytes --]

Thanks Wolfgang for pointing the direction.
My effort so far gave the following:
%%%%\setuppapersize[S4][S4]\setupinteraction[state=start,click=no]
\definefield
    [Choice][radio][ChoiceSetup]    [yes,no]
\definesymbol [YesS] [Y] %[\ding{52},color=red] %% Not successful in getting the symbols I want to work\definesymbol [NoS] [\getglyph{Dingbats}{\char10008}] %[\ding{56},color=red]\definesymbol [BlankS] []
\definesubfield[yes][ChoiceSetup][YesS,BlankS]\definesubfield[no][ChoiceSetup][NoS,BlankS]
\copyfield [no] [no1]\copyfield [no] [no2]\copyfield [no] [no3]\copyfield [no] [no4]
\setupfield[ChoiceSetup]    [width=2ex,     height=2ex,     frame=on,     background=screen] 
\starttext
\hbox to \hsize    {\field[no1] A: correct \hfill \field[yes] maybe \hfill \field[no2] incorrect \hfill \field[no3] huh?}
\starttabulate
    \field[no1] $x$ \NC \field[no2] $-x$ \NR %% can't figure out how to delink these radio fields from the above    \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 to show the limit of my coding skills.
I was really hoping for a working example of a multiple choice quiz since ConTeXt was originally designed for educational purpose.
Thanks anyway. @-->------ May you be happy and well! B.A. ------<--@ 

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

 
   B.A.Lee  21. Oktober 2016 um 19:28  Hi,
I am new to ConTeXt but have been using LaTeX for years. Just before I came across ConTeXt, I ran across Acrotex eDucation Bundle. One of its packages allows us to 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 is willing to share his/her setups for multiple choice, with or without the self-harming feature. I am also wondering if ConTeXt has that 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


   

[-- Attachment #1.2: Type: text/html, Size: 11540 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

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

      reply	other threads:[~2016-10-26  0:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <781054832.519833.1477070916591.ref@mail.yahoo.com>
2016-10-21 17:28 ` B.A.Lee
2016-10-22 12:40   ` Wolfgang Schuster
2016-10-26  0:28     ` B.A.Lee [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1460948609.1034771.1477441722671@mail.yahoo.com \
    --to=b.a.lee@rocketmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=schuster.wolfgang@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).