summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/projlib
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-07-24 03:01:20 +0000
committerNorbert Preining <norbert@preining.info>2022-07-24 03:01:20 +0000
commit0f0d64a55eba3def343d043b6d6c60158e6362c1 (patch)
treeaf65bc1098aa67745651270c2c2f36a699058c9e /macros/latex/contrib/projlib
parentfcd380d0a9f42e14bfc55d8ea92e93fe0b7b48b9 (diff)
CTAN sync 202207240301
Diffstat (limited to 'macros/latex/contrib/projlib')
-rw-r--r--macros/latex/contrib/projlib/ProjLib.dtx213
-rw-r--r--macros/latex/contrib/projlib/README.md2
2 files changed, 144 insertions, 71 deletions
diff --git a/macros/latex/contrib/projlib/ProjLib.dtx b/macros/latex/contrib/projlib/ProjLib.dtx
index 1b1be1cf73..c6615ebcd9 100644
--- a/macros/latex/contrib/projlib/ProjLib.dtx
+++ b/macros/latex/contrib/projlib/ProjLib.dtx
@@ -19,84 +19,84 @@
%<*ProjLib>
\ProvidesExplPackage
{ProjLib}
- {2022/07/03} {}
+ {2022/07/23} {}
{Collective interface of the ProjLib toolkit}
%</ProjLib>
%
%<*projlib-author>
\ProvidesExplPackage
{projlib-author}
- {2022/07/03} {}
+ {2022/07/23} {}
{Enhanced author information block}
%</projlib-author>
%
%<*projlib-datetime>
\ProvidesExplPackage
{projlib-datetime}
- {2022/07/03} {}
+ {2022/07/23} {}
{Convert numeric date-time string to natural language}
%</projlib-datetime>
%
%<*projlib-draft>
\ProvidesExplPackage
{projlib-draft}
- {2022/07/03} {}
+ {2022/07/23} {}
{Useful commands during draft stage}
%</projlib-draft>
%
%<*projlib-font>
\ProvidesExplPackage
{projlib-font}
- {2022/07/03} {}
+ {2022/07/23} {}
{Font selection and configuration}
%</projlib-font>
%
%<*projlib-language>
\ProvidesExplPackage
{projlib-language}
- {2022/07/03} {}
+ {2022/07/23} {}
{Multi-language configuration}
%</projlib-language>
%
%<*projlib-logo>
\ProvidesExplPackage
{projlib-logo}
- {2022/07/03} {}
+ {2022/07/23} {}
{The ProjLib logo}
%</projlib-logo>
%
%<*projlib-math>
\ProvidesExplPackage
{projlib-math}
- {2022/07/03} {}
+ {2022/07/23} {}
{Efficient math setup}
%</projlib-math>
%
%<*projlib-paper>
\ProvidesExplPackage
{projlib-paper}
- {2022/07/03} {}
+ {2022/07/23} {}
{Configuration of the paper style}
%</projlib-paper>
%
%<*projlib-text>
\ProvidesExplPackage
{projlib-text}
- {2022/07/03} {}
+ {2022/07/23} {}
{Text-related commands}
%</projlib-text>
%
%<*projlib-theorem>
\ProvidesExplPackage
{projlib-theorem}
- {2022/07/03} {}
+ {2022/07/23} {}
{Configuration of theorem-like environments}
%</projlib-theorem>
%
%<*projlib-titlepage>
\ProvidesExplPackage
{projlib-titlepage}
- {2022/07/03} {}
+ {2022/07/23} {}
{Commands for rendering the title page}
%</projlib-titlepage>
@@ -2641,6 +2641,7 @@
\projlib_language_set_option:n { spanish } }
, Spanish .meta:n = { spanish }
, CN .meta:n = { schinese }
+ , SC .meta:n = { schinese }
, chinese .meta:n = { schinese }
, schinese .code:n = { \projlib_language_set_option_no_babel:n { schinese } }
, simplified-chinese .meta:n = { schinese }
@@ -2701,6 +2702,7 @@
{ all } { common }
{ common } { common }
{ cn } { schinese }
+ { sc } { schinese }
{ chinese } { schinese }
{ schinese } { schinese }
{ simplifiedchinese } { schinese }
@@ -2737,6 +2739,7 @@
\str_case_e:nnF { \exp_args:Ne \str_foldcase:n { \tl_trim_spaces:n { #1 } } }
{
{ cn } { cjk }
+ { sc } { cjk }
{ chinese } { cjk }
{ schinese } { cjk }
{ simplifiedchinese } { cjk }
@@ -2838,7 +2841,7 @@
\tl_gput_right:Nn \g_projlib_language_settings_schinese_tl
{
- \tl_set:Nn \languagename { schinese }
+ \tl_set:Nn \languagename { schinese }
\tl_set:cn { abstractname } { 摘要 }
\tl_set:cn { proofname } { 证明 }
\tl_set:cn { contentsname } { 目录 }
@@ -2867,7 +2870,7 @@
\tl_gput_right:Nn \g_projlib_language_settings_tchinese_tl
{
- \tl_set:Nn \languagename { tchinese }
+ \tl_set:Nn \languagename { tchinese }
\tl_set:cn { abstractname } { 摘要 }
\tl_set:cn { proofname } { 證明 }
\tl_set:cn { contentsname } { 目錄 }
@@ -3509,37 +3512,42 @@
%<*projlib-paper>
\keys_define:nn { projlib-paper }
{
- , preview-mode .bool_set:N = \l__projlib_paper_preview_bool
- , preview-mode .initial:n = { false }
- , paper-style .tl_set:N = \l__projlib_paper_paperstyle_tl
- , paper-style .initial:n = { normal }
- , paper-style .value_required:n = true
- , paper~style .tl_set:N = \l__projlib_paper_paperstyle_tl
- , paper style .tl_set:N = \l__projlib_paper_paperstyle_tl
- , yellow-paper .meta:n = { paperstyle = yellow }
- , yellow~paper .meta:n = { paperstyle = yellow }
- , yellow paper .meta:n = { paperstyle = yellow }
- , parchment-paper .meta:n = { paperstyle = parchment }
- , parchment~paper .meta:n = { paperstyle = parchment }
- , parchment paper .meta:n = { paperstyle = parchment }
- , green-paper .meta:n = { paperstyle = green }
- , green~paper .meta:n = { paperstyle = green }
- , green paper .meta:n = { paperstyle = green }
- , light-gray-paper .meta:n = { paperstyle = lightgray }
- , light~gray~paper .meta:n = { paperstyle = lightgray }
- , light gray-paper .meta:n = { paperstyle = lightgray }
- , light gray~paper .meta:n = { paperstyle = lightgray }
- , light gray paper .meta:n = { paperstyle = lightgray }
- , gray-paper .meta:n = { paperstyle = gray }
- , gray~paper .meta:n = { paperstyle = gray }
- , gray paper .meta:n = { paperstyle = gray }
- , nord-paper .meta:n = { paperstyle = nord }
- , nord~paper .meta:n = { paperstyle = nord }
- , nord paper .meta:n = { paperstyle = nord }
- , dark-paper .meta:n = { paperstyle = dark }
- , dark~paper .meta:n = { paperstyle = dark }
- , dark paper .meta:n = { paperstyle = dark }
- , unknown .code:n = {}
+ , preview-mode .bool_set:N = \l__projlib_paper_preview_bool
+ , preview-mode .initial:n = { false }
+ , paper-style .tl_set:N = \l__projlib_paper_paperstyle_tl
+ , paper-style .initial:n = { normal }
+ , paper-style .value_required:n = true
+ , paper~style .tl_set:N = \l__projlib_paper_paperstyle_tl
+ , paper style .tl_set:N = \l__projlib_paper_paperstyle_tl
+ , light-yellow-paper .meta:n = { paperstyle = lightyellow }
+ , light~yellow~paper .meta:n = { paperstyle = lightyellow }
+ , light yellow-paper .meta:n = { paperstyle = lightyellow }
+ , light yellow~paper .meta:n = { paperstyle = lightyellow }
+ , light yellow paper .meta:n = { paperstyle = lightyellow }
+ , yellow-paper .meta:n = { paperstyle = yellow }
+ , yellow~paper .meta:n = { paperstyle = yellow }
+ , yellow paper .meta:n = { paperstyle = yellow }
+ , parchment-paper .meta:n = { paperstyle = parchment }
+ , parchment~paper .meta:n = { paperstyle = parchment }
+ , parchment paper .meta:n = { paperstyle = parchment }
+ , green-paper .meta:n = { paperstyle = green }
+ , green~paper .meta:n = { paperstyle = green }
+ , green paper .meta:n = { paperstyle = green }
+ , light-gray-paper .meta:n = { paperstyle = lightgray }
+ , light~gray~paper .meta:n = { paperstyle = lightgray }
+ , light gray-paper .meta:n = { paperstyle = lightgray }
+ , light gray~paper .meta:n = { paperstyle = lightgray }
+ , light gray paper .meta:n = { paperstyle = lightgray }
+ , gray-paper .meta:n = { paperstyle = gray }
+ , gray~paper .meta:n = { paperstyle = gray }
+ , gray paper .meta:n = { paperstyle = gray }
+ , nord-paper .meta:n = { paperstyle = nord }
+ , nord~paper .meta:n = { paperstyle = nord }
+ , nord paper .meta:n = { paperstyle = nord }
+ , dark-paper .meta:n = { paperstyle = dark }
+ , dark~paper .meta:n = { paperstyle = dark }
+ , dark paper .meta:n = { paperstyle = dark }
+ , unknown .code:n = {}
}
\ProcessKeyOptions [ projlib-paper ]
@@ -3582,19 +3590,28 @@
\str_case_e:nn { \l__projlib_paper_paperstyle_tl }
{
- { yellow } { \definecolor { paper } { RGB } { 247, 246, 233 } }
- { parchment } { \definecolor { paper } { RGB } { 224, 204, 160 } }
- { green } { \definecolor { paper } { RGB } { 207, 231, 207 } }
- { lightgray } { \definecolor { paper } { RGB } { 236, 239, 244 }
- \definecolor { main-text } { RGB } { 37, 41, 46 } }
- { light-gray } { \definecolor { paper } { RGB } { 236, 239, 244 }
- \definecolor { main-text } { RGB } { 37, 41, 46 } }
- { gray } { \definecolor { paper } { RGB } { 127, 130, 136 }
- \definecolor { main-text } { RGB } { 236, 239, 244 } }
- { nord } { \definecolor { paper } { RGB } { 46, 52, 64 }
- \definecolor { main-text } { RGB } { 214, 220, 230 } }
- { dark } { \definecolor { paper } { RGB } { 28, 29, 33 }
- \definecolor { main-text } { RGB } { 210, 213, 217 } }
+ { light yellow } { \definecolor { paper } { RGB } { 255, 254, 245 }
+ \definecolor { main-text } { RGB } { 37, 41, 46 } }
+ { light-yellow } { \definecolor { paper } { RGB } { 255, 254, 245 }
+ \definecolor { main-text } { RGB } { 37, 41, 46 } }
+ { light~yellow } { \definecolor { paper } { RGB } { 255, 254, 245 }
+ \definecolor { main-text } { RGB } { 37, 41, 46 } }
+ { yellow } { \definecolor { paper } { RGB } { 247, 246, 233 } }
+ { parchment } { \definecolor { paper } { RGB } { 232, 225, 204 }
+ \definecolor { main-text } { RGB } { 94, 78, 62 } }
+ { green } { \definecolor { paper } { RGB } { 207, 231, 207 } }
+ { light gray } { \definecolor { paper } { RGB } { 236, 239, 244 }
+ \definecolor { main-text } { RGB } { 37, 41, 46 } }
+ { light-gray } { \definecolor { paper } { RGB } { 236, 239, 244 }
+ \definecolor { main-text } { RGB } { 37, 41, 46 } }
+ { light~gray } { \definecolor { paper } { RGB } { 236, 239, 244 }
+ \definecolor { main-text } { RGB } { 37, 41, 46 } }
+ { gray } { \definecolor { paper } { RGB } { 127, 130, 136 }
+ \definecolor { main-text } { RGB } { 236, 239, 244 } }
+ { nord } { \definecolor { paper } { RGB } { 46, 52, 64 }
+ \definecolor { main-text } { RGB } { 214, 220, 230 } }
+ { dark } { \definecolor { paper } { RGB } { 28, 29, 33 }
+ \definecolor { main-text } { RGB } { 210, 213, 217 } }
}
\cs_new:Nn \projlib_paper_set_page_color:n
@@ -3854,7 +3871,16 @@
% \crthm_counter_alias:nn { proof } { theorem }
\tl_new:N \l_projlib_theorem_name_of_theorem_with_name_tl
-\CreateTheorem { theorem-with-name_inner } { name = { heading = { \l_projlib_theorem_name_of_theorem_with_name_tl } }, create-starred-version, shared-counter=theorem-with-name }
+\CreateTheorem { theorem-with-name_inner }
+ {
+ , name = {
+ , heading = { \l_projlib_theorem_name_of_theorem_with_name_tl }
+ , crefname = {}{}
+ , Crefname = {}{}
+ }
+ , create-starred-version
+ , shared-counter = theorem-with-name
+ }
\NewDocumentEnvironment { theorem-with-name } { m O{} }
{
@@ -5175,6 +5201,7 @@
}
\ProcessKeyOptions [ projlib-titlepage ]
+\RequirePackage { projlib-logo }
\RequirePackage { projlib-paper }
\RequirePackage { tikz }
@@ -5206,12 +5233,12 @@
\keys_define:nn { projlib-titlepage-config }
{
- , logo .tl_set:N = \l_projlib_titlepage_logo_tl
+ , logo .code:n = { \tl_set:Nn \l_projlib_titlepage_logo_tl { \tl_trim_spaces:n { #1 } } }
, logo .initial:n = { \scalebox { 2 } { \ProjLib } }
- , title .tl_set:N = \l_projlib_titlepage_title_tl
- , subtitle .tl_set:N = \l_projlib_titlepage_subtitle_tl
- , author .tl_set:N = \l_projlib_titlepage_author_tl
- , date .tl_set:N = \l_projlib_titlepage_date_tl
+ , title .code:n = { \tl_set:Nn \l_projlib_titlepage_title_tl { \tl_trim_spaces:n { #1 } } }
+ , subtitle .code:n = { \tl_set:Nn \l_projlib_titlepage_subtitle_tl { \tl_trim_spaces:n { #1 } } }
+ , author .code:n = { \tl_set:Nn \l_projlib_titlepage_author_tl { \tl_trim_spaces:n { #1 } } }
+ , date .code:n = { \tl_set:Nn \l_projlib_titlepage_date_tl { \tl_trim_spaces:n { #1 } } }
, style .tl_set:N = \l_projlib_titlepage_style_tl
, style .initial:n = { default }
, color .code:n = {
@@ -5242,9 +5269,32 @@
\fill [color=titlepage-back] ($(current~page.south~west)$) rectangle ($(current~page.north~west)+(.125\paperwidth,-.3\paperheight)$);
\fill [color=titlepage-main] ($(current~page.north~west)$) rectangle ($(current~page.north~west)+(.125\paperwidth,-.3\paperheight)$);
\fill [color=titlepage-back] ($(current~page.north~east)$) rectangle ($(current~page.north~west)+(.125\paperwidth,-.3\paperheight)$);
- \node[text~width=.3\paperwidth,text~height=.2\paperheight] at ($(current~page.north~west)+(.32\paperwidth,-.17\paperheight)$) { \l_projlib_titlepage_logo_tl };
- \node[text~width=.8\paperwidth,text~height=.4\paperheight] at ($(current~page.north~west)+(.57\paperwidth,-.33\paperheight)$) {\textcolor{titlepage-back}{\fontsize{24pt}{28pt}\selectfont\sffamily\textsc{ \l_projlib_titlepage_title_tl }\\[1.5em]\fontsize{18pt}{22pt}\selectfont{ \l_projlib_titlepage_subtitle_tl }}};
- \node[text~width=.3\paperwidth,text~height=.3\paperheight] at ($(current~page.south)+(.2\paperwidth,.3\paperheight)$) {\color{titlepage-back}\begin{flushright}\fontsize{16pt}{18pt}\selectfont\textsc{ \l_projlib_titlepage_author_tl }\\[1em]\fontsize{12pt}{14pt}\selectfont \l_projlib_titlepage_date_tl \end{flushright} };
+ \node[text~width=.3\paperwidth, text~height=.2\paperheight, align=flush~left]
+ at ($(current~page.north~west)+(.32\paperwidth,-.17\paperheight)$)
+ {
+ \l_projlib_titlepage_logo_tl
+ };
+ \node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~left]
+ at ($(current~page.north~west)+(.52\paperwidth,-.28\paperheight)$)
+ {
+ \color{titlepage-back}
+ \sffamily
+ \fontsize{24pt}{36pt}\selectfont
+ \textsc{ \l_projlib_titlepage_title_tl }\\[1.5em]
+ \fontsize{18pt}{27pt}\selectfont
+ \l_projlib_titlepage_subtitle_tl
+ };
+ \node[text~width=.3\paperwidth, text~height=.3\paperheight, align=flush~left]
+ at ($(current~page.south)+(.2\paperwidth,.3\paperheight)$)
+ {
+ \color{titlepage-back}
+ \begin{flushright}
+ \fontsize{16pt}{24pt}\selectfont
+ \textsc{ \l_projlib_titlepage_author_tl }\\[1em]
+ \fontsize{12pt}{18pt}\selectfont
+ \l_projlib_titlepage_date_tl
+ \end{flushright}
+ };
\end{tikzpicture}
}
@@ -5253,9 +5303,32 @@
\begin{tikzpicture}[overlay,remember~picture]
\fill[color=white] ($(current~page.south~west)$) rectangle ($(current~page.north~east)$);
\fill[color=titlepage-main] ($(current~page.south~west)$) rectangle ($(current~page.north~east)+(0,-.3\paperheight)$);
- \node[text~width=.3\paperwidth,text~height=.2\paperheight] at ($(current~page.north~west)+(.27\paperwidth,-.15\paperheight)$) { \l_projlib_titlepage_logo_tl };
- \node[text~width=.8\paperwidth,text~height=.4\paperheight] at ($(current~page.north~west)+(.52\paperwidth,-.33\paperheight)$) {\textcolor{white}{\fontsize{24pt}{28pt}\selectfont\sffamily\textsc{ \l_projlib_titlepage_title_tl }\\[1.5em]\fontsize{18pt}{22pt}\selectfont{ \l_projlib_titlepage_subtitle_tl }}};
- \node[text~width=.3\paperwidth,text~height=.3\paperheight] at ($(current~page.south)+(.2\paperwidth,.3\paperheight)$) {\color{white}\begin{flushright}\fontsize{16pt}{18pt}\selectfont\textsc{ \l_projlib_titlepage_author_tl }\\[1em]\fontsize{12pt}{14pt}\selectfont \l_projlib_titlepage_date_tl \end{flushright} };
+ \node[text~width=.3\paperwidth, text~height=.2\paperheight, align=flush~left]
+ at ($(current~page.north~west)+(.27\paperwidth,-.15\paperheight)$)
+ {
+ \l_projlib_titlepage_logo_tl
+ };
+ \node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~left]
+ at ($(current~page.north~west)+(.52\paperwidth,-.28\paperheight)$)
+ {
+ \color{white}
+ \sffamily
+ \fontsize{24pt}{36pt}\selectfont
+ \textsc{ \l_projlib_titlepage_title_tl }\\[1.5em]
+ \fontsize{18pt}{27pt}\selectfont
+ \l_projlib_titlepage_subtitle_tl
+ };
+ \node[text~width=.3\paperwidth, text~height=.3\paperheight, align=flush~left]
+ at ($(current~page.south)+(.2\paperwidth,.3\paperheight)$)
+ {
+ \color{white}
+ \begin{flushright}
+ \fontsize{16pt}{24pt}\selectfont
+ \textsc{ \l_projlib_titlepage_author_tl }\\[1em]
+ \fontsize{12pt}{18pt}\selectfont
+ \l_projlib_titlepage_date_tl
+ \end{flushright}
+ };
\end{tikzpicture}
}
%</projlib-titlepage>
diff --git a/macros/latex/contrib/projlib/README.md b/macros/latex/contrib/projlib/README.md
index ee8924ccc6..3285bbd410 100644
--- a/macros/latex/contrib/projlib/README.md
+++ b/macros/latex/contrib/projlib/README.md
@@ -6,7 +6,7 @@
> **ProjLib** can be interpreted as "***Proj**ect **Lib**rary*" (in English), or as "***Proj**et **Lib**re*" (in French, meaning "*Free Project*").
-> **This bundle is dated 2022/07/03. Please note that the documentations are not yet up-to-date.**
+> **This bundle is dated 2022/07/23. Please note that the documentations are not yet up-to-date.**
## Introduction