Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

muse-latex: Make lecture notes and slides work with images, title pag…

…e, TOC.
  • Loading branch information...
commit 52352ee98af6753e4bf9113eaa03f210354249f7 1 parent 5bb8eda
@mwolson mwolson authored
Showing with 23 additions and 6 deletions.
  1. +23 −6 lisp/muse-latex.el
View
29 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{<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.
Please sign in to comment.
Something went wrong with that request. Please try again.