- Increase sans font weight from regular to medium.
- Fix multiparagraph boxout formatting. - Add NumberWord command and option for part titles.
This commit is contained in:
@@ -32,7 +32,11 @@
|
||||
warning .initial:e = {false},
|
||||
|
||||
format .cs_set:Np = \__Boxout_format:,
|
||||
format .initial:n = {\justifying},
|
||||
format .initial:n = {
|
||||
\justifying
|
||||
\setlength{\parindent}{0pt}
|
||||
\setlength{\parskip}{\medskipamount}
|
||||
},
|
||||
}
|
||||
|
||||
\NewDocumentEnvironment{Boxout}{
|
||||
@@ -55,16 +59,12 @@
|
||||
\tl_if_empty:nTF {#3} {
|
||||
% No header
|
||||
\expanded{\noexpand\begin{tblrBoxout}{\l_Boxout_innerspec_tl}}
|
||||
\setlength{\parskip}{\medskipamount}
|
||||
\setlength{\parindent}{0pt}
|
||||
\__Boxout_format:\ignorespaces#4\\
|
||||
\end{tblrBoxout}
|
||||
}{
|
||||
% Yes header
|
||||
\expanded{\noexpand\begin{tblrBoxout}{\l_Boxout_innerspec_tl}}
|
||||
\SetCell{halign=c, font={\sbfamily\bfseries}}{#3}\\
|
||||
\setlength{\parskip}{\medskipamount}
|
||||
\setlength{\parindent}{0pt}
|
||||
\__Boxout_format:\ignorespaces#4\\
|
||||
\end{tblrBoxout}
|
||||
}
|
||||
@@ -143,6 +143,8 @@
|
||||
\dim_const:Nn \c_WrapBoxout_width_dim {3in}
|
||||
\dim_const:Nn \c_WrapBoxout_justifywidth_dim {18em}
|
||||
|
||||
\str_new:N \l_WrapBoxout_passed_keys_str
|
||||
|
||||
\keys_define:nn{}{
|
||||
WrapBoxout .inherit:n = {WrapFig, Boxout},
|
||||
}
|
||||
@@ -152,6 +154,10 @@
|
||||
|
||||
width .dim_set:N = \l_WrapBoxout_width_dim,
|
||||
width .initial:e = {\c_WrapBoxout_width_dim},
|
||||
|
||||
unknown.code:n = {
|
||||
\str_put_right:Ne \l_WrapBoxout_passed_keys_str {\l_keys_key_str=\l_keys_value_tl,}
|
||||
}
|
||||
}
|
||||
|
||||
\cs_new:Npn \__WrapBoxout_format: {}
|
||||
@@ -168,20 +174,16 @@
|
||||
}{ \group_begin:
|
||||
\keys_set:nn{WrapBoxout}{#1}
|
||||
\__WrapFig_process_options:
|
||||
\message{WrapBoxout:~\l_WrapFig_passed_keys_str}
|
||||
\dim_compare:nNnTF {\l_WrapBoxout_width_dim} > {\l_WrapBoxout_justifywidth_dim} {
|
||||
\cs_set:Nn \__WrapBoxout_format: {\justifying}
|
||||
} {
|
||||
\cs_set:Nn \__WrapBoxout_format: {\l_WrapFig_format_tl}
|
||||
}
|
||||
% \message{
|
||||
% WrapBoxout:~
|
||||
% placement:~\l_WrapFig_placement_str,~
|
||||
% hoffset:~\dim_use:N \l_WrapFig_hoffset_dim,~
|
||||
% warning:~\bool_to_str:N \l_Boxout_warning_bool}
|
||||
\expanded{\noexpand\begin{wrapstuff}[
|
||||
\l_WrapFig_placement_str,
|
||||
hoffset = {\dim_use:N \l_WrapFig_hoffset_dim},
|
||||
\l_WrapFig_passed_keys_str,
|
||||
\l_WrapBoxout_passed_keys_str,
|
||||
]}
|
||||
\begin{Boxout}[
|
||||
innerspec:e = {
|
||||
|
||||
Reference in New Issue
Block a user