From 52352ee98af6753e4bf9113eaa03f210354249f7 Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Thu, 18 Jun 2009 16:41:43 -0700 Subject: [PATCH] muse-latex: Make lecture notes and slides work with images, title page, TOC. --- lisp/muse-latex.el | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/lisp/muse-latex.el b/lisp/muse-latex.el index 4e6ae0a..6f1f938 100644 --- a/lisp/muse-latex.el +++ b/lisp/muse-latex.el @@ -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{(muse-publish-escape-specials-in-string (muse-publishing-directive \"title\") 'document)} \\author{(muse-publishing-directive \"author\")} \\date{(muse-publishing-directive \"date\")} -\\maketitle +\\begin{document} + +\\frame{\\titlepage} (and muse-publish-generate-contents - \"\\\\tableofcontents\n\\\\newpage\")\n\n" + \"\\\\frame{\\\\tableofcontents}\")\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{(muse-publish-escape-specials-in-string (muse-publishing-directive \"title\") 'document)} \\author{(muse-publishing-directive \"author\")} \\date{(muse-publishing-directive \"date\")} -\\maketitle +\\begin{document} + +\\frame{\\titlepage} (and muse-publish-generate-contents - \"\\\\tableofcontents\n\\\\newpage\")\n\n" + \"\\\\frame{\\\\tableofcontents}\")\n\n" "Header for publishing of lecture notes using LaTeX. This may be text or a filename. -- 2.11.4.GIT