summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/projlib/ProjLib.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/projlib/ProjLib.dtx')
-rw-r--r--Master/texmf-dist/source/latex/projlib/ProjLib.dtx84
1 files changed, 44 insertions, 40 deletions
diff --git a/Master/texmf-dist/source/latex/projlib/ProjLib.dtx b/Master/texmf-dist/source/latex/projlib/ProjLib.dtx
index fcac850e842..1172d3e4ad4 100644
--- a/Master/texmf-dist/source/latex/projlib/ProjLib.dtx
+++ b/Master/texmf-dist/source/latex/projlib/ProjLib.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2021-2023 by Jinwen XU
+% Copyright (C) 2021-2024 by Jinwen XU
% ------------------------------------
%
% This file may be distributed and/or modified under the conditions of the LaTeX
@@ -19,85 +19,85 @@
%<*ProjLib>
\ProvidesExplPackage
{ProjLib}
- {2023/11/05} {}
+ {2024/02/03} {}
{Collective interface of the ProjLib toolkit}
%</ProjLib>
%
%<*projlib-author>
\ProvidesExplPackage
{projlib-author}
- {2023/11/05} {}
+ {2024/02/03} {}
{Enhanced author information block}
%</projlib-author>
%
%<*projlib-datetime>
\ProvidesExplPackage
{projlib-datetime}
- {2023/11/05} {}
+ {2024/02/03} {}
{Convert numeric date-time string to natural language}
%</projlib-datetime>
%
%<*projlib-draft>
\ProvidesExplPackage
{projlib-draft}
- {2023/11/05} {}
+ {2024/02/03} {}
{Useful commands during draft stage}
%</projlib-draft>
%
%<*projlib-font>
\ProvidesExplPackage
{projlib-font}
- {2023/11/05} {}
+ {2024/02/03} {}
{Font selection and configuration}
%</projlib-font>
%
%<*projlib-language>
\ProvidesExplPackage
{projlib-language}
- {2023/11/05} {}
+ {2024/02/03} {}
{Multi-language configuration}
%</projlib-language>
%
%<*projlib-logo>
\ProvidesExplPackage
{projlib-logo}
- {2023/11/05} {}
+ {2024/02/03} {}
{The ProjLib logo}
%</projlib-logo>
%
%<*projlib-math>
\ProvidesExplPackage
{projlib-math}
- {2023/11/05} {}
+ {2024/02/03} {}
{Efficient math setup}
%</projlib-math>
%
%<*projlib-paper>
\ProvidesExplPackage
{projlib-paper}
- {2023/11/05} {}
+ {2024/02/03} {}
{Configuration of the paper style}
%</projlib-paper>
%
%<*projlib-text>
\ProvidesExplPackage
{projlib-text}
- {2023/11/05} {}
+ {2024/02/03} {}
{Text-related commands}
%</projlib-text>
%
%<*projlib-theorem>
\ProvidesExplPackage
{projlib-theorem}
- {2023/11/05} {}
+ {2024/02/03} {}
{Configuration of theorem-like environments}
%</projlib-theorem>
%
%<*projlib-titlepage>
\ProvidesExplPackage
{projlib-titlepage}
- {2023/11/05} {}
- {Commands for rendering the title page}
+ {2024/02/03} {}
+ {Interface for title page rendering}
%</projlib-titlepage>
%<*ProjLib>
@@ -5521,9 +5521,12 @@
\tl_set_eq:NN \thepage \l_projlib_titlepage_license_page_name_tl
\thispagestyle{empty}
\null\vfill
- \begin{flushleft}
+ % \begin{flushleft}
+ \group_begin:
+ \noindent
\tl_use:N \l_projlib_titlepage_info_tl
- \end{flushleft}
+ \group_end:
+ % \end{flushleft}
\group_begin:
\tl_use:N \l_projlib_titlepage_license_tl
\group_end:
@@ -5532,38 +5535,37 @@
\pagenumbering{roman}
}
+
\cs_new_protected:Nn \projlib_titlepage_render_with_style_default:
{
\begin{tikzpicture}[overlay,remember~picture]
- \fill [color=titlepage-main] ($(current~page.south~west)$) rectangle ($(current~page.north~east)+(0,-.3\paperheight)$);
- \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)$);
+ % \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)+(.333\paperwidth,-.17\paperheight)$)
+ at ($(current~page.north~west)+(.32\paperwidth,-.1\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)+(.583\paperwidth,-.28\paperheight)$)
+ at ($(current~page.north~west)+(.57\paperwidth,-.15\paperheight)$)
{
- \color{titlepage-back}
\sffamily
\fontsize{24pt}{36pt}\selectfont
- \textsc{ \l_projlib_titlepage_title_tl }\\[1.5em]
+ \textsc{ \textbf{ \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=.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{titlepage-back}
- \begin{flushright}
+ % \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{flushright}
};
\end{tikzpicture}
}
@@ -5634,36 +5636,38 @@
\end{tikzpicture}
}
-\cs_new_protected:Nn \projlib_titlepage_render_with_style_minimalist:
+\cs_new_protected:Nn \projlib_titlepage_render_with_style_fancy:
{
\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)$);
+ \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, align=flush~left]
- at ($(current~page.north~west)+(.32\paperwidth,-.2\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,-.22\paperheight)$)
+ at ($(current~page.north~west)+(.583\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=.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)$)
+ \node[text~width=.5\paperwidth, text~height=.4\paperheight, align=flush~left]
+ at ($(current~page.south)+(.135\paperwidth,.35\paperheight)$)
{
- \color{.!50}
- % \begin{flushright}
+ \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{flushright}
};
\end{tikzpicture}
}