Add a titleframeopts special key to autotemplate.
authorMichael Adam <obnox@samba.org>
Sun, 17 May 2015 12:00:31 +0000 (14:00 +0200)
committerMichael Adam <obnox@samba.org>
Sun, 17 May 2015 12:00:31 +0000 (14:00 +0200)
This allows to specify the options to be passed
to the titleframe. E.g.: titleframeopts=[plain]
in the autotemplate section.

Signed-off-by: Michael Adam <obnox@samba.org>
code/wiki2beamer

index 86a58d28a70ee8e314f40da3a10b3138aa9c8ecf..554f5fb41784a499952c34a72ca611e3a382835c 100755 (executable)
@@ -791,16 +791,19 @@ def expand_autotemplate_gen_opening(autotemplate):
         the string the with generated latex code
     """
     titleframe = False
+    titleframeopts = ''
     out = []
     for item in autotemplate:
-        if item[0]!='titleframe':
-            out.append('\\%s%s' % item)
-        else:
+        if item[0] == 'titleframe':
             titleframe = parse_bool(item[1])
+        elif item[0] == 'titleframeopts':
+            titleframeopts = item[1]
+        else:
+            out.append('\\%s%s' % item)
 
     out.append('\n\\begin{document}\n')
     if titleframe:
-        out.append('\n\\frame{\\titlepage}\n')
+        out.append('\n\\frame%s{\\titlepage}\n' % titleframeopts)
 
     return '\n'.join(out)