diff options
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r-- | Master/texmf-dist/source/latex/projlib/ProjLib.dtx | 144 |
1 files changed, 129 insertions, 15 deletions
diff --git a/Master/texmf-dist/source/latex/projlib/ProjLib.dtx b/Master/texmf-dist/source/latex/projlib/ProjLib.dtx index 9d9f00ec589..99a6820c2f7 100644 --- a/Master/texmf-dist/source/latex/projlib/ProjLib.dtx +++ b/Master/texmf-dist/source/latex/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 |