summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/projlib/ProjLib.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-01-03 03:01:37 +0000
committerNorbert Preining <norbert@preining.info>2023-01-03 03:01:37 +0000
commit660cf44d2a0aee74bd6e69615fedfc57c966a260 (patch)
tree3e62bc2b2f8208c4abcad9423ee2efa266fa8c7b /macros/latex/contrib/projlib/ProjLib.dtx
parent4841af990664e40ab2f20099d8b39dabacf5ad0f (diff)
CTAN sync 202301030301
Diffstat (limited to 'macros/latex/contrib/projlib/ProjLib.dtx')
-rw-r--r--macros/latex/contrib/projlib/ProjLib.dtx144
1 files changed, 129 insertions, 15 deletions
diff --git a/macros/latex/contrib/projlib/ProjLib.dtx b/macros/latex/contrib/projlib/ProjLib.dtx
index 9d9f00ec58..99a6820c2f 100644
--- a/macros/latex/contrib/projlib/ProjLib.dtx
+++ b/macros/latex/contrib/projlib/ProjLib.dtx
@@ -19,84 +19,84 @@
%<*ProjLib>
\ProvidesExplPackage
{ProjLib}
- {2022/11/15} {}
+ {2023/01/01} {}
{Collective interface of the ProjLib toolkit}
%</ProjLib>
%
%<*projlib-author>
\ProvidesExplPackage
{projlib-author}
- {2022/11/15} {}
+ {2023/01/01} {}
{Enhanced author information block}
%</projlib-author>
%
%<*projlib-datetime>
\ProvidesExplPackage
{projlib-datetime}
- {2022/11/15} {}
+ {2023/01/01} {}
{Convert numeric date-time string to natural language}
%</projlib-datetime>
%
%<*projlib-draft>
\ProvidesExplPackage
{projlib-draft}
- {2022/11/15} {}
+ {2023/01/01} {}
{Useful commands during draft stage}
%</projlib-draft>
%
%<*projlib-font>
\ProvidesExplPackage
{projlib-font}
- {2022/11/15} {}
+ {2023/01/01} {}
{Font selection and configuration}
%</projlib-font>
%
%<*projlib-language>
\ProvidesExplPackage
{projlib-language}
- {2022/11/15} {}
+ {2023/01/01} {}
{Multi-language configuration}
%</projlib-language>
%
%<*projlib-logo>
\ProvidesExplPackage
{projlib-logo}
- {2022/11/15} {}
+ {2023/01/01} {}
{The ProjLib logo}
%</projlib-logo>
%
%<*projlib-math>
\ProvidesExplPackage
{projlib-math}
- {2022/11/15} {}
+ {2023/01/01} {}
{Efficient math setup}
%</projlib-math>
%
%<*projlib-paper>
\ProvidesExplPackage
{projlib-paper}
- {2022/11/15} {}
+ {2023/01/01} {}
{Configuration of the paper style}
%</projlib-paper>
%
%<*projlib-text>
\ProvidesExplPackage
{projlib-text}
- {2022/11/15} {}
+ {2023/01/01} {}
{Text-related commands}
%</projlib-text>
%
%<*projlib-theorem>
\ProvidesExplPackage
{projlib-theorem}
- {2022/11/15} {}
+ {2023/01/01} {}
{Configuration of theorem-like environments}
%</projlib-theorem>
%
%<*projlib-titlepage>
\ProvidesExplPackage
{projlib-titlepage}
- {2022/11/15} {}
+ {2023/01/01} {}
{Commands for rendering the title page}
%</projlib-titlepage>
@@ -2514,6 +2514,35 @@
\RequirePackage { ebgaramond-maths }
\RequirePackage { ebgaramond }
\cs_undefine:c { Bbbk }
+ \cs_undefine:c { Top }
+ % https://tex.stackexchange.com/a/215272
+ \DeclareSymbolFont{ntxletters}{OML}{ntxmi}{m}{it}
+ \SetSymbolFont{ntxletters}{bold}{OML}{ntxmi}{b}{it}
+ \re@DeclareMathSymbol{\leftharpoonup}{\mathrel}{ntxletters}{"28}
+ \re@DeclareMathSymbol{\leftharpoondown}{\mathrel}{ntxletters}{"29}
+ \re@DeclareMathSymbol{\rightharpoonup}{\mathrel}{ntxletters}{"2A}
+ \re@DeclareMathSymbol{\rightharpoondown}{\mathrel}{ntxletters}{"2B}
+ \re@DeclareMathSymbol{\triangleleft}{\mathbin}{ntxletters}{"2F}
+ \re@DeclareMathSymbol{\triangleright}{\mathbin}{ntxletters}{"2E}
+ \re@DeclareMathSymbol{\partial}{\mathord}{ntxletters}{"40}
+ \re@DeclareMathSymbol{\flat}{\mathord}{ntxletters}{"5B}
+ \re@DeclareMathSymbol{\natural}{\mathord}{ntxletters}{"5C}
+ \re@DeclareMathSymbol{\star}{\mathbin}{ntxletters}{"3F}
+ \re@DeclareMathSymbol{\smile}{\mathrel}{ntxletters}{"5E}
+ \re@DeclareMathSymbol{\frown}{\mathrel}{ntxletters}{"5F}
+ \re@DeclareMathSymbol{\sharp}{\mathord}{ntxletters}{"5D}
+ \re@DeclareMathAccent{\vec}{\mathord}{ntxletters}{"7E}
+ \sys_if_engine_pdftex:F
+ {
+ \setsansfont { texgyreheros }
+ [
+ Scale = MatchUppercase ,
+ UprightFont = *-regular ,
+ BoldFont = *-bold ,
+ ItalicFont = *-italic ,
+ BoldItalicFont = *-bolditalic ,
+ ]
+ }
\projlib_font_set_linespacing_latin:n { \setstretch { 1.00 } }
\bool_gset_true:N \g_projlib_font_already_set_bool
}
@@ -2570,6 +2599,14 @@
\bool_gset_true:N \g_projlib_font_already_set_bool
}
+% \bool_if:NF \l__projlib_font_lmodern_bool
+% {
+% \hook_gput_code:nnn { package/tikz-cd/after } { projlib-font }
+% {
+% \tikzcdset{arrow~style={math~font}}
+% }
+% }
+
\PassOptionsToPackage { verbose = silent } { microtype }
\RequirePackage { microtype }
%</projlib-font>
@@ -5275,7 +5312,7 @@
\keys_define:nn { projlib-titlepage-config }
{
, logo .code:n = { \tl_set:Nn \l_projlib_titlepage_logo_tl { \tl_trim_spaces:n { #1 } } }
- , logo .initial:n = { \scalebox { 2 } { \ProjLib } }
+ , logo .initial:n = { * }
, 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 } } }
@@ -5304,6 +5341,17 @@
\colorlet { titlepage-main } { blue!50!cyan!50!black }
\colorlet { titlepage-back } { blue!50!cyan!15!yellow!25 }
+\cs_new_protected:Nn \projlib_titlepage_show_logo:n
+ {
+ \tl_if_eq:NnTF \l_projlib_titlepage_logo_tl { \tl_trim_spaces:n { * } }
+ {
+ #1
+ }
+ {
+ \tl_use:N \l_projlib_titlepage_logo_tl
+ }
+ }
+
\cs_new_protected:Nn \projlib_titlepage_render:n
{
\keys_set:nn { projlib-titlepage-config } { #1 }
@@ -5333,7 +5381,7 @@
\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
+ \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)$)
@@ -5367,7 +5415,7 @@
\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
+ \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)$)
@@ -5392,6 +5440,72 @@
};
\end{tikzpicture}
}
+
+\cs_new_protected:Nn \projlib_titlepage_render_with_style_academic:
+ {
+ \begin{tikzpicture}[overlay,remember~picture]
+ \fill[color=titlepage-main] ($(current~page.south~west)$) rectangle ($(current~page.north~east)$);
+ \fill[color=white] ($(current~page.south~west)+(0,.3\paperheight)$) rectangle ($(current~page.north~east)+(0,-.3\paperheight)$);
+ \node[text~width=.3\paperwidth, text~height=.2\paperheight, align=flush~center]
+ at ($(current~page.north)+(0pt,-.15\paperheight)$)
+ {
+ \projlib_titlepage_show_logo:n { \color{white} \scalebox { 2 } { \ProjLibText } }
+ };
+ \node[text~width=.8\paperwidth, text~height=.5\paperheight, align=flush~center]
+ at ($(current~page.north)+(0pt,-.25\paperheight)$)
+ {
+ \color{titlepage-main}
+ \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=.5\paperwidth, text~height=.4\paperheight, align=flush~center]
+ at ($(current~page.south)+(0pt,.36\paperheight)$)
+ {
+ \color{white}
+ \fontsize{16pt}{24pt}\selectfont
+ \textsc{ \l_projlib_titlepage_author_tl }\\[1em]
+ \fontsize{12pt}{18pt}\selectfont
+ \l_projlib_titlepage_date_tl
+ };
+ \end{tikzpicture}
+ }
+
+\cs_new_protected:Nn \projlib_titlepage_render_with_style_minimalist:
+ {
+ \begin{tikzpicture}[overlay,remember~picture]
+ % \fill[color=white] ($(current~page.south~west)$) rectangle ($(current~page.north~east)$);
+ \node[text~width=.3\paperwidth, text~height=.2\paperheight, align=flush~left]
+ at ($(current~page.north~west)+(.32\paperwidth,-.2\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,-.22\paperheight)$)
+ {
+ \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=.5\paperwidth, text~height=.4\paperheight, align=flush~left]
+ % at ($(current~page.south)+(.135\paperwidth,.35\paperheight)$)
+ \node[text~width=.8\paperwidth, text~height=.4\paperheight, align=flush~left]
+ at ($(current~page.south~west)+(.57\paperwidth,.45\paperheight)$)
+ {
+ \color{.!50}
+ % \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>
\endinput \ No newline at end of file