summaryrefslogtreecommitdiff
path: root/macros/unicodetex/latex/beaulivre/beaulivre.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/unicodetex/latex/beaulivre/beaulivre.cls')
-rw-r--r--macros/unicodetex/latex/beaulivre/beaulivre.cls24
1 files changed, 22 insertions, 2 deletions
diff --git a/macros/unicodetex/latex/beaulivre/beaulivre.cls b/macros/unicodetex/latex/beaulivre/beaulivre.cls
index 57a4938e1d..05924ada80 100644
--- a/macros/unicodetex/latex/beaulivre/beaulivre.cls
+++ b/macros/unicodetex/latex/beaulivre/beaulivre.cls
@@ -19,7 +19,7 @@
\RequirePackage{l3keys2e}
\ProvidesExplClass
{beaulivre}
- {2022/04/17} {}
+ {2022/04/24} {}
{A colorful book style}
\tl_const:Nn \l__colorclass_base_class_tl { book }
@@ -145,6 +145,7 @@
total = { 6.500in, 9.130in },
centering,
footnotesep = 2em plus 2pt minus 2pt,
+ footskip = .5in,
}
\bool_if:NT \l__colorclass_b_five_paper_bool
@@ -155,6 +156,7 @@
total = { 5.535in, 8.160in },
centering,
footnotesep = 2em plus 2pt minus 2pt,
+ footskip = .5in,
}
}
@@ -166,6 +168,7 @@
total = { 6.500in, 9.685in },
centering,
footnotesep = 2em plus 2pt minus 2pt,
+ footskip = .5in,
}
}
@@ -649,7 +652,24 @@
\PassOptionsToPackage { all } { nowidow }
\RequirePackage { nowidow }
-\RequirePackage { embrac }
+
+\RequirePackage { regexpatch }
+\skip_new:N \g_colorclass_parfillskip_skip
+\xpatchcmd{\@trivlist}{\@flushglue}{\g_colorclass_parfillskip_skip}{}{}
+\hook_gput_code:nnn { begindocument } { colorclass }
+ {
+ \skip_gset:Nn \g_colorclass_parfillskip_skip { 0pt plus \dim_eval:n { \linewidth - 2\parindent } }
+ \skip_gset_eq:NN \parfillskip \g_colorclass_parfillskip_skip
+ }
+
+\hook_gput_code:nnn { begindocument/before } { colorclass }
+ {
+ \@ifpackageloaded { biblatex }
+ {
+ \PassOptionsToPackage { biblatex } { embrac }
+ } {}
+ \RequirePackage { embrac }
+ }
%%================================
%% Graphics