templates/latex/layout.tex.erb in review-2.1.0 vs templates/latex/layout.tex.erb in review-2.2.0
- old
+ new
@@ -25,11 +25,13 @@
\usepackage{float}
\usepackage{alltt}
\usepackage{amsmath}
%% if you use @<u>{} (underline), use jumoline.sty
-%%\usepackage{jumoline}
+\IfFileExists{jumoline.sty}{
+\usepackage{jumoline}
+}
\newenvironment{shadedb}{%
\def\FrameCommand{\fboxsep=\FrameSep \colorbox{shadecolorb}}%
\MakeFramed {\FrameRestore}}%
{\endMakeFramed}
@@ -77,10 +79,12 @@
\lstnewenvironment{reviewemlistlst}[1][]{\lstset{#1}}{}
\lstnewenvironment{reviewemlistnumlst}[1][]{\lstset{numbers=left, #1}}{}
\lstnewenvironment{reviewlistlst}[1][]{\lstset{#1}}{}
\lstnewenvironment{reviewlistnumlst}[1][]{\lstset{numbers=left, #1}}{}
+\lstnewenvironment{reviewsourcelst}[1][]{\lstset{#1}}{}
+\lstnewenvironment{reviewsourcenumlst}[1][]{\lstset{numbers=left, #1}}{}
\lstnewenvironment{reviewcmdlst}[1][]{\lstset{backgroundcolor=\color{white}, frameround=tttt, frame=trbl, #1}}{}
<%- end -%>
\newenvironment{reviewimage}{%
\begin{figure}[H]
@@ -100,10 +104,14 @@
\newenvironment{reviewlist}{%
\begin{shaded}\small\setlength{\baselineskip}{1.3zw}\begin{alltt}}{%
\end{alltt}\end{shaded}\par\vspace*{0.5zw}}
+\newenvironment{reviewsource}{%
+ \begin{shaded}\small\setlength{\baselineskip}{1.3zw}\begin{alltt}}{%
+ \end{alltt}\end{shaded}\par\vspace*{0.5zw}}
+
\newenvironment{reviewcmd}{%
\color{white}\medskip\small\begin{shadedb}\setlength{\baselineskip}{1.3zw}\begin{alltt}}{%
\end{alltt}\end{shadedb}}
\newenvironment{reviewbox}{%
@@ -138,10 +146,13 @@
\medskip{\small\noindent #1}\vspace*{-1.3zw}}
\newcommand{\reviewemlistcaption}[1]{%
\medskip{\small\noindent #1}\vspace*{-1.3zw}}
+\newcommand{\reviewsourcecaption}[1]{%
+ \medskip{\small\noindent #1}\vspace*{-1.3zw}}
+
\newcommand{\reviewcmdcaption}[1]{%
\medskip{\small\noindent #1}\vspace*{-1.3zw}}
\newcommand{\reviewindepimagecaption}[1]{%
\begin{center}#1\end{center}}
@@ -234,10 +245,14 @@
\makeatother
<%- if @config["usepackage"] -%>
<%= @config["usepackage"] %>
<%- end -%>
+<%- if @config["makeindex"] -%>
+\usepackage{makeidx}
+\makeindex
+<%- end -%>
\begin{document}
\reviewmainfont
@@ -246,19 +261,23 @@
<%= @custom_titlepage %>
<%- else -%>
\begin{titlepage}
<%- if @config["coverimage"] -%>
\begin{center}
- \includegraphics[<%= @coverimageoption%>]{./images/<%= @config["coverimage"] %>}
+ \includegraphics[<%= @coverimageoption%>]{./<%= @config["imagedir"] %>/<%= @config["coverimage"] %>}
\end{center}
\clearpage
<%- end -%>
\thispagestyle{empty}
\begin{center}%
\mbox{} \vskip5zw
\reviewtitlefont%
{\Huge <%= escape_latex(@config.name_of("booktitle")) %> \par}%
+<%- if @config["subtitle"] -%>
+ \vskip 1em%
+ {\Large <%= escape_latex(@config.name_of("subtitle")) %> \par}%
+<%- end -%>
\vskip 15em%
{\huge
\lineskip .75em
\begin{tabular}[t]{c}%
<%= @authors %>
@@ -305,10 +324,13 @@
<%- end -%>
<%- if @input_files["POSTDEF"] -%>
<%= @input_files["POSTDEF"] %>
<%- end -%>
+<%- if @config["pdfmaker"]["makeindex"] -%>
+\printindex
+<%- end -%>
%%% profile
<%- if @config["profile"] -%>
<%= @custom_profilepage %>
<%- end -%>
@@ -328,9 +350,12 @@
\thispagestyle{empty}
\vspace*{\fill}
{\noindent\reviewtitlefont\Large <%= escape_latex(@config.name_of("booktitle")) %>} \\
+<%- if @config["subtitle"] -%>
+{\noindent\reviewtitlefont\large <%= escape_latex(@config.name_of("subtitle")) %>} \\
+<%- end -%>
\rule[8pt]{14cm}{1pt} \\
{\noindent
<%= @config["pubhistory"].to_s.gsub(/\n/){"\n\n\\noindent\n"} %>
}