From: Michael Olson Date: Thu, 18 Jun 2009 23:41:43 +0000 (-0700) Subject: muse-latex: Make lecture notes and slides work with images, title page, TOC. X-Git-Tag: v3.20~8 X-Git-Url: https://repo.or.cz/w/muse-el.git/commitdiff_plain/52352ee98af6753e4bf9113eaa03f210354249f7 muse-latex: Make lecture notes and slides work with images, title page, TOC. --- 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.