diff options
author | Karl Berry <karl@freefriends.org> | 2023-01-02 21:23:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-01-02 21:23:26 +0000 |
commit | a6b52c418b122f8c7f693297f90312835d4b8ce0 (patch) | |
tree | d38b846d4ce9b1bde89c33d79a269be0cd98c25b /Master/texmf-dist/tex/latex/projlib | |
parent | 298587016f189af9336278f57b0f59980cbe234e (diff) |
jxu (2jan23)
git-svn-id: svn://tug.org/texlive/trunk@65436 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/projlib')
12 files changed, 122 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/projlib/ProjLib.sty b/Master/texmf-dist/tex/latex/projlib/ProjLib.sty index 1f609d3a235..c12110c7c33 100644 --- a/Master/texmf-dist/tex/latex/projlib/ProjLib.sty +++ b/Master/texmf-dist/tex/latex/projlib/ProjLib.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {ProjLib} - {2022/11/15} {} + {2023/01/01} {} {Collective interface of the ProjLib toolkit} \keys_define:nn { ProjLib } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-author.sty b/Master/texmf-dist/tex/latex/projlib/projlib-author.sty index 677a51bf983..9d3bf4e7623 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-author.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-author.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {projlib-author} - {2022/11/15} {} + {2023/01/01} {} {Enhanced author information block} \keys_define:nn { projlib-author } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-datetime.sty b/Master/texmf-dist/tex/latex/projlib/projlib-datetime.sty index d5ac08c620f..cfbab8cdd8c 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-datetime.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-datetime.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {projlib-datetime} - {2022/11/15} {} + {2023/01/01} {} {Convert numeric date-time string to natural language} \tl_new:N \g__projlib_datetime_input_format_tl diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-draft.sty b/Master/texmf-dist/tex/latex/projlib/projlib-draft.sty index 1f2cfe4eaca..9070c7ddb3b 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-draft.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-draft.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {projlib-draft} - {2022/11/15} {} + {2023/01/01} {} {Useful commands during draft stage} \keys_define:nn { projlib-draft } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-font.sty b/Master/texmf-dist/tex/latex/projlib/projlib-font.sty index 76b3a7f5f43..82ba12d4d3c 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-font.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-font.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {projlib-font} - {2022/11/15} {} + {2023/01/01} {} {Font selection and configuration} \keys_define:nn { projlib-font } @@ -133,6 +133,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 } @@ -189,6 +218,7 @@ \bool_gset_true:N \g_projlib_font_already_set_bool } + \PassOptionsToPackage { verbose = silent } { microtype } \RequirePackage { microtype } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-language.sty b/Master/texmf-dist/tex/latex/projlib/projlib-language.sty index 8bcd70bb03c..8d9d91804ee 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-language.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-language.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {projlib-language} - {2022/11/15} {} + {2023/01/01} {} {Multi-language configuration} \clist_const:Nn \c__projlib_language_supported_clist diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty b/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty index f510a9d31f4..bf814257ab3 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-logo.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {projlib-logo} - {2022/11/15} {} + {2023/01/01} {} {The ProjLib logo} \keys_define:nn { projlib-logo } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-math.sty b/Master/texmf-dist/tex/latex/projlib/projlib-math.sty index ba5898b2a50..77bf0cb6ed0 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-math.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-math.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {projlib-math} - {2022/11/15} {} + {2023/01/01} {} {Efficient math setup} \keys_define:nn { projlib-math } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-paper.sty b/Master/texmf-dist/tex/latex/projlib/projlib-paper.sty index 6b97235941d..69513b596e4 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-paper.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-paper.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {projlib-paper} - {2022/11/15} {} + {2023/01/01} {} {Configuration of the paper style} \keys_define:nn { projlib-paper } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-text.sty b/Master/texmf-dist/tex/latex/projlib/projlib-text.sty index 86e1e4f35d9..329bf48bfd7 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-text.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-text.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {projlib-text} - {2022/11/15} {} + {2023/01/01} {} {Text-related commands} \keys_define:nn { projlib-text } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-theorem.sty b/Master/texmf-dist/tex/latex/projlib/projlib-theorem.sty index c5837abe18c..b7c2249e17f 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-theorem.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-theorem.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {projlib-theorem} - {2022/11/15} {} + {2023/01/01} {} {Configuration of theorem-like environments} \keys_define:nn { projlib-theorem } diff --git a/Master/texmf-dist/tex/latex/projlib/projlib-titlepage.sty b/Master/texmf-dist/tex/latex/projlib/projlib-titlepage.sty index 6465fe321a2..0cd0afe96ef 100644 --- a/Master/texmf-dist/tex/latex/projlib/projlib-titlepage.sty +++ b/Master/texmf-dist/tex/latex/projlib/projlib-titlepage.sty @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2022-06-01] \ProvidesExplPackage {projlib-titlepage} - {2022/11/15} {} + {2023/01/01} {} {Commands for rendering the title page} \keys_define:nn { projlib-titlepage } @@ -67,7 +67,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 } } } @@ -96,6 +96,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 } @@ -125,7 +136,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)$) @@ -159,7 +170,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)$) @@ -185,6 +196,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} + } + \endinput %% %% End of file `projlib-titlepage.sty'. |