reorder CSS rules for ePUB because FBReader is weird
[librarian.git] / librarian / pdf / wl.cls
index 8145a22..eaaebcc 100644 (file)
@@ -12,6 +12,7 @@
 % a4paper,... - paper size as required by LaTeX
 % nowlfont - don't use customized WL font
 
 % a4paper,... - paper size as required by LaTeX
 % nowlfont - don't use customized WL font
 
+\RequirePackage{fixltx2e}
 \RequirePackage{setspace}
 \RequirePackage{type1cm}
 \DeclareOption{13pt}{%
 \RequirePackage{setspace}
 \RequirePackage{type1cm}
 \DeclareOption{13pt}{%
@@ -443,7 +444,7 @@ Letters={Uppercase}
 \par\vspace{1em}%
 \edef\myindent{\the\parindent}%
 \noindent\myfbox{1em}{1em}{%
 \par\vspace{1em}%
 \edef\myindent{\the\parindent}%
 \noindent\myfbox{1em}{1em}{%
-\parbox{\textwidth}{%
+\parbox{\dimexpr \textwidth - 2\fboxhsep - 2\fboxrule\relax}{%
 \setlength{\parindent}{\myindent}%
 #1%
 }}%
 \setlength{\parindent}{\myindent}%
 #1%
 }}%