texlive[57460] Master/texmf-dist: easybook (18jan21)
commits+karl at tug.org
commits+karl at tug.org
Mon Jan 18 23:11:31 CET 2021
Revision: 57460
http://tug.org/svn/texlive?view=revision&revision=57460
Author: karl
Date: 2021-01-18 23:11:31 +0100 (Mon, 18 Jan 2021)
Log Message:
-----------
easybook (18jan21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/easybook/easybook-demo.pdf
trunk/Master/texmf-dist/doc/latex/easybook/easybook-demo.tex
trunk/Master/texmf-dist/doc/latex/easybook/easybook.pdf
trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex
trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
Modified: trunk/Master/texmf-dist/doc/latex/easybook/easybook-demo.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/easybook/easybook-demo.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/easybook/easybook-demo.tex 2021-01-18 22:11:17 UTC (rev 57459)
+++ trunk/Master/texmf-dist/doc/latex/easybook/easybook-demo.tex 2021-01-18 22:11:31 UTC (rev 57460)
@@ -95,7 +95,7 @@
\edge~\url{https://latexstudio.net} \\
\url{https://ctan.org/pkg/easybook}
}
- \date{2021/01/15\hskip\ccwd\relax v1.21e}
+ \date{2021/01/18\hskip\ccwd\relax v1.21f}
}
\begin{document}
Modified: trunk/Master/texmf-dist/doc/latex/easybook/easybook.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex 2021-01-18 22:11:17 UTC (rev 57459)
+++ trunk/Master/texmf-dist/doc/latex/easybook/easybook.tex 2021-01-18 22:11:31 UTC (rev 57460)
@@ -8,7 +8,7 @@
\title{\sffamily easybook书籍文档类}
\author{瞿毅}
-\date{2021/01/15\hskip\ccwd\relax v1.21e\thanks{\url{https://gitee.com/texl3/easybook}}}
+\date{2021/01/18\hskip\ccwd\relax v1.21f\thanks{\url{https://gitee.com/texl3/easybook}}}
\begin{document}
\maketitle
@@ -227,7 +227,7 @@
\end{optdesc}
\subsection{定理样式}
-\begin{function}[EXP,added = 2021-01-12]{thmset/thmbox,thmset/numberwith,thmset/headpunct,thmset/bodyfont,thmset/notefont,thmset/headindent,thmset/spaceabove,thmset/spacebelow}
+\begin{function}[EXP,added = 2021-01-12,updated = 2021-01-18]{thmset/thmbox,thmset/numberwith,thmset/headpunct,thmset/bodyfont,thmset/notefont,thmset/headfont,thmset/headindent,thmset/spaceabove,thmset/spacebelow,thmset/spacepost}
\begin{syntax}
thmbox = <true|(false))>
numberwith = <(chapter)|section|其它环境|空置>
@@ -234,9 +234,11 @@
headpunct = <(未设置)>
bodyfont = <(未设置)>
notefont = <(未设置)>
+ headfont = <(\tn{color}\marg{ctex at emph}\tn{sffamily})>
headindent = <(0\tn{ccwd})>
spaceabove = <(0.75ex plus .1ex)>
spacebelow = <(0.75ex plus .1ex)>
+ spacepost = <(\tn{ccwd})>
\end{syntax}
\changes{v1.21b}{2021/01/12}{增加配置定理环境样式的选项。}
\end{function}
@@ -247,15 +249,17 @@
\item[headpunct] 定理标题后的标记。
\item[bodyfont] 定理内容部分的字体。
\item[notefont] 定理标题内容的字体。
+ \item[headfont] 定理类型标题名的字体。
\item[headindent] 定理标题的缩进,默认无缩进,可用 \tn{parindent} 命令设置为段落缩进。
\item[spaceabove] 定理环境前的间距。
\item[spacebelow] 定理环境后的间距。
+ \item[spacepost] 定理标题后与内容的间距。
\end{optdesc}
\subsubsection{新的定理样式}
定理由 \pkg{thmtools} 设置,自带定理的样式为 \opt{mythm},如果使用这个样式而只是增加新的定理名称,可以这样
\begin{ctexexam}
- \declaretheorem[style = mythm,name = 定理名]{定理环境名}
+ \AfterPreamble{\declaretheorem[style = mythm,name = 定理名]{定理环境名}}
\end{ctexexam}
若要重新定义一个全新的定理样式,具体参数可以查看 \pkg{thmtools} 宏包帮助文档。
Modified: trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls 2021-01-18 22:11:17 UTC (rev 57459)
+++ trunk/Master/texmf-dist/tex/latex/easybook/easybook.cls 2021-01-18 22:11:31 UTC (rev 57460)
@@ -9,7 +9,7 @@
%% https://creativecommons.org/licenses/by/4.0/legalcode
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{l3keys2e}
-\ProvidesExplClass{easybook}{2021/01/15}{1.21e}{}
+\ProvidesExplClass{easybook}{2021/01/18}{1.21f}{}
\cs_generate_variant:Nn \keys_define:nn {nx}
\cs_generate_variant:Nn \int_to_arabic:n {v}
@@ -812,12 +812,16 @@
bodyfont .initial:n = {},
notefont .tl_set:N = \l__thm_notefont_tl,
notefont .initial:n = {},
+ headfont .tl_set:N = \l__thm_headfont_tl,
+ headfont .initial:n = {\color{ctex at emph}\sffamily},
headindent .tl_set:N = \l__thm_headindent_tl,
headindent .initial:n = {0\ccwd},
spaceabove .tl_set:N = \l__thm_spaceabove_tl,
spaceabove .initial:n = {.75ex plus .1ex},
spacebelow .tl_set:N = \l__thm_spacebelow_tl,
- spacebelow .initial:n = {.75ex plus .1ex}
+ spacebelow .initial:n = {.75ex plus .1ex},
+ spacepost .tl_set:N = \l__thm_spacepost_tl,
+ spacepost .initial:n = {\ccwd}
}
\ctex_at_end_preamble:n
{
@@ -825,12 +829,12 @@
spaceabove = \l__thm_spaceabove_tl,
spacebelow = \l__thm_spacebelow_tl,
headindent = \l__thm_headindent_tl,
- headfont = \color{ctex at emph}\sffamily,
+ headfont = \l__thm_headfont_tl,
notefont = \l__thm_notefont_tl,
notebraces = {}{},
bodyfont = \l__thm_bodyfont_tl,
headpunct = \l__thm_headpunct_tl,
- postheadspace = \ccwd,
+ postheadspace = \l__thm_spacepost_tl,
numberwithin = \l__thm_numberwith_tl,
headformat = \NAME\space\NUMBER\NOTE
]{mythm}
@@ -955,14 +959,10 @@
{
\IfBooleanF{#1}
{
+ \CTEX at ifnametrue
\refstepcounter{section}
\CTEX at addtocline{section}{#4}
- \markright
- {
- \ifnum\c at secnumdepth>\z@
- \CTEXthesection\hspace{0.5\ccwd}
- \fi#4
- }
+ \markright{\CTEXthesection\hspace{0.5\ccwd}#4}
}
\begin{center}
\bool_if:NTF \l__thmbox_bool
@@ -1079,6 +1079,7 @@
{
\exp_args:NV \addbibresource\l__bib_file_tl
\defbibheading{bibliography}[\bibname]{\__title_mark_intoc:n {##1}}
+ \skip_set:Nn \bibitemsep{0ex}
}
\ctex_at_end_preamble:n
{
More information about the tex-live-commits
mailing list.