From 6766e3f2cd846b770fa131664053521dbfb9171a Mon Sep 17 00:00:00 2001
From: Frank Fuhlbrück
Date: Tue, 25 Jan 2022 18:48:11 +0100
Subject: Lua interface progress

---
 examples/exshexample.tex | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'examples/exshexample.tex')

diff --git a/examples/exshexample.tex b/examples/exshexample.tex
index 3b34800..acd3874 100644
--- a/examples/exshexample.tex
+++ b/examples/exshexample.tex
@@ -1,4 +1,4 @@
-\long\def\ifbeamer#1#2{#1}
+\long\def\ifbeamer#1#2{#2}
 \ifbeamer{\documentclass{beamer}}{\documentclass{article}}
 
 %navigation symbols and the title collide if 
@@ -185,12 +185,14 @@ task restate font={\color{black!60}},
     firstline = "Assume $e=3$.",
     points="sum",
     task  = [[
-      This exercise has some subexercises.
+      This exercise has some subexercises. The Lua interface 
+      computes point sums in a single pass.
     ]],
     subexercises = {
       {
         task = "First things first.",
-        points = 4,
+        bonuspoints = 4,
+        pointoptions = "abbrev",--passed to LaTeX interface
         solution = [[None.]],
       },{
         task = "Second things afterwards.",
-- 
cgit v1.2.3

