option handling in book2pdf, ilustrations, <latex> verbatim tag
[librarian.git] / librarian / pdf / wlpub.cls
index 05f2aba..d5154e1 100644 (file)
@@ -94,6 +94,7 @@
 \usepackage{fontspec}
 \usepackage{xunicode}
 \usepackage{xltxtra}
+\usepackage{trimspaces}
 
 \usepackage[overload]{textcase}
 \usepackage{scalefnt}
@@ -190,6 +191,8 @@ Mapping=tex-text
   \parindent 1em\noindent \hb@xt@ 1.8em{\hss \@makefnmark \enskip}#1.
 }
 
+\def\trimspace#1{\trim@spaces{#1}}
+
 \makeatother
 
 
@@ -635,6 +638,15 @@ Mapping=tex-text
 \vspace{10pt}%
 }
 
+\newcommand{\ilustr}[2]{
+  \vspace{1em}%
+  \begin{center}%
+    \par{\includegraphics[width=\textwidth]{\trimspace{#1}}\\#2}%
+  \end{center}%
+  \vspace{1em}%
+}
+
+
 \newcommand{\motyw}[2][0]{%
 \ifshowthemes
 \mbox{}%