From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: exporting multiple choice questions to Aiken or GIFT formats? Date: Fri, 28 Aug 2015 15:44:46 +0100 Message-ID: <87vbbzlbfl.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVKto-0004kM-2V for emacs-orgmode@gnu.org; Fri, 28 Aug 2015 10:45:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVKtk-0004xq-1n for emacs-orgmode@gnu.org; Fri, 28 Aug 2015 10:44:59 -0400 Received: from mail-db3on0143.outbound.protection.outlook.com ([157.55.234.143]:35890 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVKtj-0004v5-Pr for emacs-orgmode@gnu.org; Fri, 28 Aug 2015 10:44:55 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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