From e602b3c0135882a1defcca492c2a217d722c1819 Mon Sep 17 00:00:00 2001 From: "Michael W. Olson" Date: Sat, 22 Sep 2007 15:36:07 -0400 Subject: [PATCH] Update my example LaTeX header file for the recent changes * examples/mwolson/templates/header.tex: Update for recent changes. * .gitignore: Add some autogenerated files from the examples directory. --- .gitignore | 3 +++ ChangeLog | 3 +++ examples/mwolson/templates/header.tex | 11 ++++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b70794e..4dacdeb 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,9 @@ /++xgit-log-edit *.elc /Makefile.defs +/examples/QuickStart.html +/examples/QuickStart.info +/examples/QuickStart.pdf /lisp/muse-autoloads.el /texi/muse.info /texi/muse.html diff --git a/ChangeLog b/ChangeLog index 18efe69..649cb67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,9 @@ * NEWS: Add entry for the LaTeX image filename escaping changes. + * examples/mwolson/templates/header.tex: Update for recent + changes. + * lisp/muse-latex2png.el (muse-publish-math-tag): Detect whether the tag ends at the end of a line. If not, do not use "$$" to publish it. Thanks to Darlan Cavalcante Moreira for the diff --git a/examples/mwolson/templates/header.tex b/examples/mwolson/templates/header.tex index 0c5f9e8..d9814f7 100644 --- a/examples/mwolson/templates/header.tex +++ b/examples/mwolson/templates/header.tex @@ -30,6 +30,14 @@ \usepackage{hyperref} \usepackage[pdftex]{graphicx} +\def\museincludegraphics{% + \begingroup + \catcode`\|=0 + \catcode`\\=12 + \catcode`\#=12 + \includegraphics[width=0.75\textwidth] +} + % One-inch margins \usepackage{fullpage} @@ -50,7 +58,8 @@ \begin{document} (unless (muse-publishing-directive "latex-omit-title") -(concat "\\title{" (muse-wiki-publish-pretty-title) "} +(concat "\\title{" (muse-publish-escape-specials-in-string + (muse-wiki-publish-pretty-title) 'document) "} \\author{" (muse-publishing-directive "author") "} \\date{" (muse-publishing-directive "date") "} -- 2.11.4.GIT