muse-latex: Make lecture notes and slides work with images, title page, TOC.
authorMichael Olson <mwolson@gnu.org>
Thu, 18 Jun 2009 23:41:43 +0000 (18 16:41 -0700)
committerMichael Olson <mwolson@gnu.org>
Fri, 19 Jun 2009 04:30:57 +0000 (18 21:30 -0700)
lisp/muse-latex.el

index 4e6ae0a..6f1f938 100644 (file)
@@ -165,17 +165,25 @@ filename."
 \\usepackage[T1]{fontenc}
 \\usepackage{hyperref}
 
-\\begin{document}
+\\def\\museincludegraphics{%
+  \\begingroup
+  \\catcode`\\|=0
+  \\catcode`\\\\=12
+  \\catcode`\\#=12
+  \\includegraphics[width=0.50\\textwidth]
+}
 
 \\title{<lisp>(muse-publish-escape-specials-in-string
   (muse-publishing-directive \"title\") 'document)</lisp>}
 \\author{<lisp>(muse-publishing-directive \"author\")</lisp>}
 \\date{<lisp>(muse-publishing-directive \"date\")</lisp>}
 
-\\maketitle
+\\begin{document}
+
+\\frame{\\titlepage}
 
 <lisp>(and muse-publish-generate-contents
-           \"\\\\tableofcontents\n\\\\newpage\")</lisp>\n\n"
+           \"\\\\frame{\\\\tableofcontents}\")</lisp>\n\n"
   "Header for publishing of slides using LaTeX.
 This may be text or a filename.
 
@@ -192,18 +200,27 @@ You must have the Beamer extension for LaTeX installed for this to work."
 \\usepackage[utf8x]{inputenc}
 \\usepackage[T1]{fontenc}
 \\usepackage{hyperref}
+\\usepackage[pdftex]{graphicx}
 
-\\begin{document}
+\\def\\museincludegraphics{%
+  \\begingroup
+  \\catcode`\\|=0
+  \\catcode`\\\\=12
+  \\catcode`\\#=12
+  \\includegraphics[width=0.50\\textwidth]
+}
 
 \\title{<lisp>(muse-publish-escape-specials-in-string
   (muse-publishing-directive \"title\") 'document)</lisp>}
 \\author{<lisp>(muse-publishing-directive \"author\")</lisp>}
 \\date{<lisp>(muse-publishing-directive \"date\")</lisp>}
 
-\\maketitle
+\\begin{document}
+
+\\frame{\\titlepage}
 
 <lisp>(and muse-publish-generate-contents
-           \"\\\\tableofcontents\n\\\\newpage\")</lisp>\n\n"
+           \"\\\\frame{\\\\tableofcontents}\")</lisp>\n\n"
   "Header for publishing of lecture notes using LaTeX.
 This may be text or a filename.