Skip to content

Commit

Permalink
Added figures on first page of html versions
Browse files Browse the repository at this point in the history
  • Loading branch information
patmorin committed Mar 1, 2012
1 parent 9a84119 commit 74b5d1c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions latex/ods.sty
Expand Up @@ -40,3 +40,6 @@
\long\def\symbolfootnote[#1]#2{\begingroup%
\def\thefootnote{\fnsymbol{footnote}}\footnote[#1]{#2}\endgroup}

% We can do this since latex2html doesn't read this file
\newcommand{\htmlonly}[1]{}

4 changes: 3 additions & 1 deletion latex/ods.tex
Expand Up @@ -129,7 +129,8 @@
% Title page content
\title{Open Data Structures (in \lang)}
\author{Pat Morin}
\date{Development Edition: \today\ \currenttime}
\date{Development Edition: \today\ \currenttime
\htmlonly{\\ \includegraphics[scale=0.5]{images/cc-by}}}
%Version 0.0 pre $\alpha$: \today}

\pagenumbering{roman}
Expand All @@ -150,6 +151,7 @@
\begin{document}
%\AddToShipoutPicture*{\BackgroundPic}
\begin{titlepage}
\htmlonly{\includegraphics{images/tree3-thick}}
\maketitle
\end{titlepage}

Expand Down
2 changes: 1 addition & 1 deletion latex/skiplists.tex
Expand Up @@ -265,7 +265,7 @@ \section{#SkiplistList#: An Efficient Random-Access #List# Implementation}
\begin{center}
\includegraphics{figs/skiplist-removei}
\end{center}
\caption{Removing an element from a #SkiplistList#.}
\caption[Removing an element from a SkiplistList]{Removing an element from a #SkiplistList#.}
\figlabel{skiplist-removei}
\end{figure}
\codeimport{ods/SkiplistList.remove(i)}
Expand Down
2 changes: 1 addition & 1 deletion latex/snarf-java-html.pl
Expand Up @@ -117,7 +117,7 @@ ($$)
if ($inside =~ /^[A-Z]\w+$/) {
$inside = "\\texttt{$inside}"; # just a class name
} else {
$inside = color($inside);
#$inside = color($inside);
$inside =~ s/([%&])/\\$1/g;
$inside =~ s/(\\\&|\\\%|<<|>>>?)/\\text{\\ttfamily $1}/g;
$inside = "\\ensuremath{\\mathtt{$inside}}";
Expand Down

0 comments on commit 74b5d1c

Please sign in to comment.