Re: [O] exporting multiple choice questions to Aiken or GIFT formats?

2015-09-01 Thread Eric S Fraga
On Monday, 31 Aug 2015 at 18:17, Marcin Borkowski wrote:
> I hope people liked it.  One of the good things that
> resulted from it was a short discussion, whose conclusion was an idea
> to write a series of blog posts explaining one of the Org exporters in
> detail.  (Since I know LaTeX fairly well, and I have studied most of the
> LaTeX exporter source code, I decided to use it for that.)  The first
> entry is almost ready, I'm going to work on the others soon.

Post a link to the blog when ready and add a link in Worg as well.  I'm
sure it will be very useful.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec



Re: [O] exporting multiple choice questions to Aiken or GIFT formats?

2015-08-31 Thread Eric S Fraga
On Friday, 28 Aug 2015 at 18:46, Marcin Borkowski wrote:

[...]

> I've never heard of these, but I did a similar thing for HTML+JS and
> LaTeX:
>
> https://github.com/mbork/org-edu-html
> https://github.com/mbork/org-edu-latex
>
> My markup was to use lists with checkboxes, and check the correct
> answer(s).

I like this approach.  Thanks.
And also thanks for the link to your EmacsConf2015 talk.  I hope it went
well!

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



Re: [O] exporting multiple choice questions to Aiken or GIFT formats?

2015-08-31 Thread Marcin Borkowski

On 2015-08-31, at 17:32, Eric S Fraga  wrote:

> On Friday, 28 Aug 2015 at 18:46, Marcin Borkowski wrote:
>
> [...]
>
>> I've never heard of these, but I did a similar thing for HTML+JS and
>> LaTeX:
>>
>> https://github.com/mbork/org-edu-html
>> https://github.com/mbork/org-edu-latex
>>
>> My markup was to use lists with checkboxes, and check the correct
>> answer(s).
>
> I like this approach.  Thanks.

Glad you liked it!

> And also thanks for the link to your EmacsConf2015 talk.  I hope it went
> well!

You're welcome!  I hope people liked it.  One of the good things that
resulted from it was a short discussion, whose conclusion was an idea
to write a series of blog posts explaining one of the Org exporters in
detail.  (Since I know LaTeX fairly well, and I have studied most of the
LaTeX exporter source code, I decided to use it for that.)  The first
entry is almost ready, I'm going to work on the others soon.  (I'm not
yet sure whether it is a good idea to cover most of the code -- after
all, it is quite extensive -- but we'll just see.)

> eric

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



[O] exporting multiple choice questions to Aiken or GIFT formats?

2015-08-28 Thread Eric S Fraga
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



Re: [O] exporting multiple choice questions to Aiken or GIFT formats?

2015-08-28 Thread Marcin Borkowski

On 2015-08-28, at 16:44, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 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've never heard of these, but I did a similar thing for HTML+JS and
LaTeX:

https://github.com/mbork/org-edu-html
https://github.com/mbork/org-edu-latex

My markup was to use lists with checkboxes, and check the correct
answer(s).

 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!

I would do it in a separate function altogether, so that I could
e.g. first create a random set of questions, and then run an exporter to
generate the test.

Tomorrow I'm giving a talk during EmacsConf2015
(http://emacsconf2015.org/) about custom Org exporters.  Notes and code
are available here: https://github.com/mbork/ox-oddmuse .

 thanks,
 eric

Hth,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University