From cee77702306334696b503b7206c8e0edea065d0b Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 25 Jul 2022 03:03:05 +0000 Subject: CTAN sync 202207250303 --- .../contrib/create-theorem/create-theorem-doc.pdf | Bin 67715 -> 67803 bytes .../contrib/create-theorem/create-theorem-doc.tex | 2 +- .../latex/contrib/create-theorem/create-theorem.sty | 10 +++++----- macros/latex/contrib/crefthe/crefthe-doc.pdf | Bin 53184 -> 53103 bytes macros/latex/contrib/crefthe/crefthe-doc.tex | 2 +- macros/latex/contrib/crefthe/crefthe.sty | 6 ++++-- 6 files changed, 11 insertions(+), 9 deletions(-) (limited to 'macros/latex') diff --git a/macros/latex/contrib/create-theorem/create-theorem-doc.pdf b/macros/latex/contrib/create-theorem/create-theorem-doc.pdf index ff58a811b7..0dd2686a1f 100644 Binary files a/macros/latex/contrib/create-theorem/create-theorem-doc.pdf and b/macros/latex/contrib/create-theorem/create-theorem-doc.pdf differ diff --git a/macros/latex/contrib/create-theorem/create-theorem-doc.tex b/macros/latex/contrib/create-theorem/create-theorem-doc.tex index 76807f91d3..5c4ef4fa65 100644 --- a/macros/latex/contrib/create-theorem/create-theorem-doc.tex +++ b/macros/latex/contrib/create-theorem/create-theorem-doc.tex @@ -97,7 +97,7 @@ \begin{document} -\def\PackageVersion{2022/07/11} +\def\PackageVersion{2022/07/24} \title{\createtheorempackage{}\\\smallskip\itshape Initializing theorem-like environments with multilingual support} \author{Jinwen XU} diff --git a/macros/latex/contrib/create-theorem/create-theorem.sty b/macros/latex/contrib/create-theorem/create-theorem.sty index fb9ecdc551..ef0417cead 100644 --- a/macros/latex/contrib/create-theorem/create-theorem.sty +++ b/macros/latex/contrib/create-theorem/create-theorem.sty @@ -12,7 +12,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {create-theorem} - {2022/07/11} {} + {2022/07/24} {} {Initializing theorem-like environments with multilingual support} \keys_define:nn { create-theorem } @@ -216,8 +216,8 @@ { \tl_gset:cn { g_crthm_core_name_ #7 ref_article_singular_ #1 _ #2 _tl } { } \tl_gset:cn { g_crthm_core_name_ #7 ref_article_plural_ #1 _ #2 _tl } { } - \tl_gset:cn { g_crthm_name_ #7 ref_article_singular_ #1 _ #2 _tl } { \nobreak \crefthemark { \skip_horizontal:n { -.75ex } } \nobreak } - \tl_gset:cn { g_crthm_name_ #7 ref_article_plural_ #1 _ #2 _tl } { \nobreak \crefthemark { \skip_horizontal:n { -.75ex } } \nobreak } + \tl_gset:cn { g_crthm_name_ #7 ref_article_singular_ #1 _ #2 _tl } { \nobreak \crefthemark { \skip_horizontal:n { -\crefthe_width_of_space_dim } } \nobreak } + \tl_gset:cn { g_crthm_name_ #7 ref_article_plural_ #1 _ #2 _tl } { \nobreak \crefthemark { \skip_horizontal:n { -\crefthe_width_of_space_dim } } \nobreak } } { \tl_gset:cn { g_crthm_core_name_ #7 ref_article_singular_ #1 _ #2 _tl } { #3 } @@ -233,7 +233,7 @@ \tl_if_blank:eTF { #4 } { - \tl_gset:cn { g_crthm_name_ #7 ref_singular_ #1 _ #2 _tl } { \nobreak \skip_horizontal:n { -.25ex } \nobreak } + \tl_gset:cn { g_crthm_name_ #7 ref_singular_ #1 _ #2 _tl } { \nobreak \skip_horizontal:n { -\crefthe_width_of_space_dim } \nobreak } } { \tl_gset:cn { g_crthm_name_ #7 ref_singular_ #1 _ #2 _tl } { \tl_use:c { g_crthm_style_ #7 refname_ #1 _ #2 _tl } { #4 } } @@ -241,7 +241,7 @@ \tl_if_blank:eTF { #6 } { - \tl_gset:cn { g_crthm_name_ #7 ref_plural_ #1 _ #2 _tl } { \nobreak \skip_horizontal:n { -.25ex } \nobreak } + \tl_gset:cn { g_crthm_name_ #7 ref_plural_ #1 _ #2 _tl } { \nobreak \skip_horizontal:n { -\crefthe_width_of_space_dim } \nobreak } } { \tl_gset:cn { g_crthm_name_ #7 ref_plural_ #1 _ #2 _tl } { \tl_use:c { g_crthm_style_ #7 refname_ #1 _ #2 _tl } { #6 } } diff --git a/macros/latex/contrib/crefthe/crefthe-doc.pdf b/macros/latex/contrib/crefthe/crefthe-doc.pdf index 996f302915..67f9587e8f 100644 Binary files a/macros/latex/contrib/crefthe/crefthe-doc.pdf and b/macros/latex/contrib/crefthe/crefthe-doc.pdf differ diff --git a/macros/latex/contrib/crefthe/crefthe-doc.tex b/macros/latex/contrib/crefthe/crefthe-doc.tex index 5d02b6d9d5..80597e3b61 100644 --- a/macros/latex/contrib/crefthe/crefthe-doc.tex +++ b/macros/latex/contrib/crefthe/crefthe-doc.tex @@ -112,7 +112,7 @@ \begin{document} -\def\PackageVersion{2022/06/30} +\def\PackageVersion{2022/07/24} \title{\crefthepackage{}\\\smallskip\itshape Cross referencing with proper definite articles} \author{Jinwen XU} diff --git a/macros/latex/contrib/crefthe/crefthe.sty b/macros/latex/contrib/crefthe/crefthe.sty index f993302d76..8a1aefe4a2 100644 --- a/macros/latex/contrib/crefthe/crefthe.sty +++ b/macros/latex/contrib/crefthe/crefthe.sty @@ -12,7 +12,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {crefthe} - {2022/06/30} {} + {2022/07/24} {} {Cross referencing with proper definite articles} \keys_define:nn { crefthe } @@ -115,11 +115,13 @@ \__crefthe_name_general:nnnnnn { #1 } { #2 } { #3 } { #4 } { #5 } { C } } +\cs_new:Npn \crefthe_width_of_space_dim { \tex_fontdimen:D 2 \tex_font:D } + \cs_new:Nn \crefthe_empty_adjust:n { \tl_if_blank:nTF { #1 } { - \skip_horizontal:n { -.75ex } + \skip_horizontal:n { -\crefthe_width_of_space_dim } } { #1 -- cgit v1.2.3