summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/projlib
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-07-15 03:00:53 +0000
committerNorbert Preining <norbert@preining.info>2023-07-15 03:00:53 +0000
commitf506889527fff6570e2878d55abbacf7227f2b3e (patch)
treecd24fedd1e37c61b098b38f95487b69d29e37397 /macros/latex/contrib/projlib
parentd4f9602cb865c2132ad3893fdb906be0f87f4d06 (diff)
CTAN sync 202307150300
Diffstat (limited to 'macros/latex/contrib/projlib')
-rw-r--r--macros/latex/contrib/projlib/ProjLib.dtx58
-rw-r--r--macros/latex/contrib/projlib/README.md14
2 files changed, 39 insertions, 33 deletions
diff --git a/macros/latex/contrib/projlib/ProjLib.dtx b/macros/latex/contrib/projlib/ProjLib.dtx
index 6123adab0c..baba6274a8 100644
--- a/macros/latex/contrib/projlib/ProjLib.dtx
+++ b/macros/latex/contrib/projlib/ProjLib.dtx
@@ -19,84 +19,84 @@
%<*ProjLib>
\ProvidesExplPackage
{ProjLib}
- {2023/01/05} {}
+ {2023/07/14} {}
{Collective interface of the ProjLib toolkit}
%</ProjLib>
%
%<*projlib-author>
\ProvidesExplPackage
{projlib-author}
- {2023/01/05} {}
+ {2023/07/14} {}
{Enhanced author information block}
%</projlib-author>
%
%<*projlib-datetime>
\ProvidesExplPackage
{projlib-datetime}
- {2023/01/05} {}
+ {2023/07/14} {}
{Convert numeric date-time string to natural language}
%</projlib-datetime>
%
%<*projlib-draft>
\ProvidesExplPackage
{projlib-draft}
- {2023/01/05} {}
+ {2023/07/14} {}
{Useful commands during draft stage}
%</projlib-draft>
%
%<*projlib-font>
\ProvidesExplPackage
{projlib-font}
- {2023/01/05} {}
+ {2023/07/14} {}
{Font selection and configuration}
%</projlib-font>
%
%<*projlib-language>
\ProvidesExplPackage
{projlib-language}
- {2023/01/05} {}
+ {2023/07/14} {}
{Multi-language configuration}
%</projlib-language>
%
%<*projlib-logo>
\ProvidesExplPackage
{projlib-logo}
- {2023/01/05} {}
+ {2023/07/14} {}
{The ProjLib logo}
%</projlib-logo>
%
%<*projlib-math>
\ProvidesExplPackage
{projlib-math}
- {2023/01/05} {}
+ {2023/07/14} {}
{Efficient math setup}
%</projlib-math>
%
%<*projlib-paper>
\ProvidesExplPackage
{projlib-paper}
- {2023/01/05} {}
+ {2023/07/14} {}
{Configuration of the paper style}
%</projlib-paper>
%
%<*projlib-text>
\ProvidesExplPackage
{projlib-text}
- {2023/01/05} {}
+ {2023/07/14} {}
{Text-related commands}
%</projlib-text>
%
%<*projlib-theorem>
\ProvidesExplPackage
{projlib-theorem}
- {2023/01/05} {}
+ {2023/07/14} {}
{Configuration of theorem-like environments}
%</projlib-theorem>
%
%<*projlib-titlepage>
\ProvidesExplPackage
{projlib-titlepage}
- {2023/01/05} {}
+ {2023/07/14} {}
{Commands for rendering the title page}
%</projlib-titlepage>
@@ -317,7 +317,6 @@
\NewCommandCopy \projlib_author_backup_footnotemark: \footnotemark
- \tl_gset:Nn \footnotemark {}
\NewCommandCopy \projlib_author_backup_thanks:w \thanks
\cs_undefine:N \thanks
@@ -341,7 +340,9 @@
{
\hook_gput_code:nnn { cmd/@title/after } { projlib-author }
{
+ \tl_set:Nn \footnotemark {}
\projlib_author_pre_thanks:n { #1 }
+ \RenewCommandCopy \footnotemark \projlib_author_backup_footnotemark:
}
}
}
@@ -353,10 +354,8 @@
{
\projlib_author_backup_my_author:w
{
- \RenewCommandCopy \footnotemark \projlib_author_backup_footnotemark:
\RenewCommandCopy \thanks \projlib_author_backup_thanks:w
#1
- \tl_gset:Nn \footnotemark {}
}
}
}
@@ -443,8 +442,8 @@
\cs_undefine:N \email
\cs_undefine:N \dedicatory
\cs_undefine:N \keywords
- \cs_undefine:N \footnotemark
- \NewCommandCopy \footnotemark \projlib_author_backup_footnotemark:
+ % \cs_undefine:N \footnotemark
+ % \NewCommandCopy \footnotemark \projlib_author_backup_footnotemark:
\bool_gset_true:N \g__projlib_author_already_maketitle_bool
}
}
@@ -3236,6 +3235,11 @@
\projlib_language_use_language_locally:en { #1 } { #2 }
\group_end:
}
+\NewDocumentEnvironment { OtherLanguage } { m +b }
+ {
+ \projlib_language_use_language_locally:en { #1 } { #2 }
+ }
+ { }
\UseLanguage { \g__projlib_language_main_str }
@@ -3957,14 +3961,14 @@
\CreateTheorem { theorem } { parent counter = chapter, create starred version }
\bool_if:NT \l__projlib_theorem_separate_theorem_numbering_bool
{
- \exp_args:Nv \CreateTheorem { c_projlib_theorem_supported_clist } { parent counter = chapter, create starred version }
+ \exp_args:Nv \CreateTheorem { c_projlib_theorem_supported_clist } { parent counter = chapter, create starred version, quiet }
}
}
{ % without \chapter
\CreateTheorem { theorem } { parent counter = section, create starred version }
\bool_if:NT \l__projlib_theorem_separate_theorem_numbering_bool
{
- \exp_args:Nv \CreateTheorem { c_projlib_theorem_supported_clist } { parent counter = section, create starred version }
+ \exp_args:Nv \CreateTheorem { c_projlib_theorem_supported_clist } { parent counter = section, create starred version, quiet }
}
}
}
@@ -3974,14 +3978,14 @@
\CreateTheorem { theorem } { create starred version }
\bool_if:NT \l__projlib_theorem_separate_theorem_numbering_bool
{
- \exp_args:Nv \CreateTheorem { c_projlib_theorem_supported_clist } { create starred version }
+ \exp_args:Nv \CreateTheorem { c_projlib_theorem_supported_clist } { create starred version, quiet }
}
}
{
\CreateTheorem { theorem } { parent counter = \l__projlib_theorem_theorem_numbering_tl, create starred version }
\bool_if:NT \l__projlib_theorem_separate_theorem_numbering_bool
{
- \exp_args:Nv \CreateTheorem { c_projlib_theorem_supported_clist } { parent counter = \l__projlib_theorem_theorem_numbering_tl, create starred version }
+ \exp_args:Nv \CreateTheorem { c_projlib_theorem_supported_clist } { parent counter = \l__projlib_theorem_theorem_numbering_tl, create starred version, quiet }
}
}
}
@@ -4685,7 +4689,7 @@
}
, crefname = {
, english = {Example}{Example}
- , french = [l']{Example}[les]{Example}
+ , french = [l']{Exemple}[les]{Exemple}
, ngerman = {Beispiel}{Beispiel}
, italian = [l']{Esempio}[gli]{Esempio}
, portuguese = [o]{Exemplo}[os]{Exemplo}
@@ -4698,7 +4702,7 @@
}
, Crefname = {
, english = {Example}{Example}
- , french = [L']{Example}[Les]{Example}
+ , french = [L']{Exemple}[Les]{Exemple}
, ngerman = {Beispiel}{Beispiel}
, italian = [L']{Esempio}[Gli]{Esempio}
, portuguese = [O]{Exemplo}[Os]{Exemplo}
@@ -5436,12 +5440,12 @@
\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, align=flush~left]
- at ($(current~page.north~west)+(.32\paperwidth,-.17\paperheight)$)
+ at ($(current~page.north~west)+(.333\paperwidth,-.17\paperheight)$)
{
\projlib_titlepage_show_logo:n { \scalebox { 2 } { \ProjLib } }
};
\node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~left]
- at ($(current~page.north~west)+(.57\paperwidth,-.28\paperheight)$)
+ at ($(current~page.north~west)+(.583\paperwidth,-.28\paperheight)$)
{
\color{titlepage-back}
\sffamily
@@ -5470,12 +5474,12 @@
\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, align=flush~left]
- at ($(current~page.north~west)+(.27\paperwidth,-.15\paperheight)$)
+ at ($(current~page.north~west)+(.28\paperwidth,-.15\paperheight)$)
{
\projlib_titlepage_show_logo:n { \scalebox { 2 } { \ProjLib } }
};
\node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~left]
- at ($(current~page.north~west)+(.52\paperwidth,-.28\paperheight)$)
+ at ($(current~page.north~west)+(.53\paperwidth,-.28\paperheight)$)
{
\color{white}
\sffamily
diff --git a/macros/latex/contrib/projlib/README.md b/macros/latex/contrib/projlib/README.md
index c7b786b84a..f5d45d14cb 100644
--- a/macros/latex/contrib/projlib/README.md
+++ b/macros/latex/contrib/projlib/README.md
@@ -1,12 +1,13 @@
<!-- Copyright (C) 2021-2023 by Jinwen XU -->
-![image](https://github.com/Jinwen-XU/ProjLib/raw/main/logo/ProjLib-logo.png)
+<!-- ![image](https://github.com/Jinwen-XU/ProjLib/raw/main/logo/ProjLib-logo.png) -->
+<div align=center><img height="150" src="https://github.com/Jinwen-XU/ProjLib/raw/main/logo/ProjLib-logo.png"/></div>
# The `ProjLib` Toolkit
-> **This bundle is dated 2023/01/05.**
+> **This bundle is dated 2023/07/14.**
-> **New documentations are being written and are expected to be completed by the end of 2023. In the meantime, only the core code would be included in TeX Live 2023 coming this April (old documentations have been removed from the distribution).**
+> **New documentations are still being written. For now, only the core code is included in TeX Live 2023 (old documentations have been removed from the distribution).**
## Introduction
@@ -67,14 +68,14 @@ The modules include:
> Since the module `theorem` uses `cleveref`, it should be loaded after `varioref` and `hyperref` (same for the main package `ProjLib`).
-## Regarding the files and the compilation of documentations
+<!-- ## Regarding the files and the compilation of documentations -->
### How to get these files
-You can get the `.sty` files mentioned above simply by compiling `ProjLib.ins`:
+You can get the `.sty` files mentioned above by compiling `ProjLib.ins`:
```
latex ProjLib.ins
```
-
+<!--
### How to get the source of the documentation
You can get the `.tex` source files of the documentation by compiling `ProjLib-doc.ins`:
```
@@ -90,6 +91,7 @@ Here `**` should be replaced with the language identifier, such as `en`.
### Automation
All these can be done with the given script `MakeFile.sh`.
+-->
# License