emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: exporting multiple choice questions to Aiken or GIFT formats?
Date: Fri, 28 Aug 2015 15:44:46 +0100	[thread overview]
Message-ID: <87vbbzlbfl.fsf@ucl.ac.uk> (raw)

Hi,

just on the off chance that somebody has done this already, is there an
export engine for creating Aiken or GIFT format exam questions?

I assume not, so my next question is where to start?  I want to take
something like this:

#+begin_src org
  ,* What is my name?
  :PROPERTIES:
  :answer:   3
  :END:
  1. Joe
  2. Martha
  3. Eric
  4. Fido
#+end_src

and generate (assuming Aiken format):

#+begin_example
What is my name?
A. Joe
B. Martha
C. Eric
D. Fido
ANSWER: C
#+end_example

I can probably do this quite easily with awk (my language of choice fo
text manipulation generally) but it would quite nice to be able to
export directly from org.

The second step would be to be able to select a random number of
questions to export from a larger question bank.  Suggestions for how to
do this also welcome!

By the way, I am not wedded to the format shown in the org example but
the output does have to match what is shown (upper case letters, upper
case ANSWER immediately following).

thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec

             reply	other threads:[~2015-08-28 14:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-28 14:44 Eric S Fraga [this message]
2015-08-28 16:46 ` exporting multiple choice questions to Aiken or GIFT formats? Marcin Borkowski
2015-08-31 15:32   ` Eric S Fraga
2015-08-31 16:17     ` Marcin Borkowski
2015-09-01 10:45       ` Eric S Fraga

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87vbbzlbfl.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).