diff options
author | Karl Berry <karl@freefriends.org> | 2024-01-26 22:00:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-01-26 22:00:56 +0000 |
commit | 06cd744b45d036ae6467d653ee7abb274111f1a6 (patch) | |
tree | 185ce08d7dd0855b86ac138c324758c5d3496923 /Master/texmf-dist | |
parent | 3a7d02573fc2a74379aebf1dd17cd0e27b17789a (diff) |
metalogox (26jan24)
git-svn-id: svn://tug.org/texlive/trunk@69601 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/metalogox/README.txt | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/metalogox/metalogox.pdf | bin | 400460 -> 404029 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/metalogox/metalogox.dtx | 75 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/metalogox/metalogox.sty | 57 |
4 files changed, 131 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/metalogox/README.txt b/Master/texmf-dist/doc/latex/metalogox/README.txt index 18c947b32bd..c89e1096e3b 100644 --- a/Master/texmf-dist/doc/latex/metalogox/README.txt +++ b/Master/texmf-dist/doc/latex/metalogox/README.txt @@ -1,7 +1,7 @@ The LaTeX metalogox package Automatically adjusts the TeX logo and related, depending on the font. -v1.03 +v1.04 Copyright 2019, 2023–2024 Brian Dunn — https://github.com/bdtc/metalogox LaTeX Project Public License, version 1.3 diff --git a/Master/texmf-dist/doc/latex/metalogox/metalogox.pdf b/Master/texmf-dist/doc/latex/metalogox/metalogox.pdf Binary files differindex 19a7a0d5967..4912b1c3192 100644 --- a/Master/texmf-dist/doc/latex/metalogox/metalogox.pdf +++ b/Master/texmf-dist/doc/latex/metalogox/metalogox.pdf diff --git a/Master/texmf-dist/source/latex/metalogox/metalogox.dtx b/Master/texmf-dist/source/latex/metalogox/metalogox.dtx index 471107229a7..25b9bd3ba23 100644 --- a/Master/texmf-dist/source/latex/metalogox/metalogox.dtx +++ b/Master/texmf-dist/source/latex/metalogox/metalogox.dtx @@ -16,7 +16,7 @@ % \iffalse %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<package>\ProvidesPackage{metalogox} -%<package> [2024/01/19 v1.03 Extends the metalogo package with font detection.] +%<package> [2024/01/26 v1.04 Extends the metalogo package with font detection.] % %<*driver> \documentclass{ltxdoc} @@ -73,6 +73,8 @@ \pagestyle{pageheadfoot} +\usepackage{needspace} + @@ -164,6 +166,7 @@ pageanchor=true, % \changes{v1.03}{2024/01/18}{Added Atkinson Hyperlegible, Charis SIL, Cuprum, % Eczar, Ibarra, Inria, Inter, MLModern, Nunito, Oswald.} % \changes{v1.03}{2024/01/19}{2024/01/19} +% \changes{v1.04}{2024/01/26}{2024/01/26} @@ -259,6 +262,9 @@ pageanchor=true, % If the user specifies a package option, its settings override the default and % also anything set by font detection. % +% The \LaTeX\ packages \pkg{hologo} and \pkg{hvlogos} are also supported +% when used with \pkg{metalogox}. +% % % \setlength{\parindent}{0em} % \setlength{\parskip}{2ex} @@ -302,6 +308,8 @@ pageanchor=true, % {\Fontskrivan\adjustlogos{baskerville}\LaTeXe} % \end{sourcedisplay} % +% \needspace{3\baselineskip} +% % \DescribeMacro{\autoadjustlogos} % \cs{autoadjustlogos} may be used to make local changes % according to the current font: @@ -1597,6 +1605,71 @@ pageanchor=true, % \end{macrocode} % % +% \subsection{Support for the \pkg{hologo} and \pkg{hvlogos} packages} +% +% If \pkg{hologo} is used, a few macros are defined to use \pkg{metalogo} kerning. +% (\pkg{hvlogos} uses \pkg{hologo}, so is also supported.) +% \changes{v1.04}{2024/01/25}{Added support for \pkg{hologo}, \pkg{hvlogos}.} +% \begin{macrocode} +\AtBeginDocument{ + +\IfPackageLoadedTF{hologo} +{ +\def\HoLogo@TeX#1{\TeX} + +\def\HoLogo@La#1{% + \@xl@everylogo + L\kern\xl@kern@La@La + {\ifxetex + \XeTeXuseglyphmetrics\@ne + \fi + \sbox\z@ T% + \sbox\@ne{\xl@LaTeX@a}% + \vbox to\ht\z@{% + \hbox{% + \ltx@sh@ft{\ht\z@}% + \xl@sh@ft{\ht\@ne}% + \xl@LaTeX@a + \xl@sh@ft{\ht\z@}% + \ltx@sh@ft{\ht\@ne}}% + \vss}}% + } + +\def\HoLogo@LaTeX#1{\HoLogo@La{La}\kern\xl@kern@LaTeX@aT\TeX} + +\def\HoLogo@LaTeXe#1{% + \hologo{LaTeX}% + \kern\xl@kern@LaTeXe@Xii% + \hbox{% + \HOLOGO@MathSetup + 2% + $_{\textstyle\varepsilon}$% + }% +} + +\def\HoLogo@LaTeXTeX#1{% + (% + \kern\xl@kern@LaTeX@aT + \hologo{La}% + \kern\xl@kern@LaTeX@aT + )% + \kern\xl@kern@LaTeX@aT + \hologo{TeX}% +} +\expandafter\let\csname HoLogo@(La)TeX\endcsname\HoLogo@LaTeXTeX + +\def\HoLogo@XeTeX#1{\Xe\kern\xl@kern@XeTeX@eT\TeX} + +\def\HoLogo@XeLaTeX#1{\Xe\kern\xl@kern@XeLaTeX@eL\LaTeX} + +} +{}% hologo not loaded + +}% AtBeginDocument +% \end{macrocode} +% +% +% % ^^A At end: % % \clearpage diff --git a/Master/texmf-dist/tex/latex/metalogox/metalogox.sty b/Master/texmf-dist/tex/latex/metalogox/metalogox.sty index 9378441b5e8..75dcbad9178 100644 --- a/Master/texmf-dist/tex/latex/metalogox/metalogox.sty +++ b/Master/texmf-dist/tex/latex/metalogox/metalogox.sty @@ -17,7 +17,7 @@ %% version 2005/12/01 or later. \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{metalogox} - [2024/01/19 v1.03 Extends the metalogo package with font detection.] + [2024/01/26 v1.04 Extends the metalogo package with font detection.] \RequirePackage{metalogo} @@ -817,6 +817,61 @@ } \autoadjustlogos* \ProcessOptions\relax +\AtBeginDocument{ + +\IfPackageLoadedTF{hologo} +{ +\def\HoLogo@TeX#1{\TeX} + +\def\HoLogo@La#1{% + \@xl@everylogo + L\kern\xl@kern@La@La + {\ifxetex + \XeTeXuseglyphmetrics\@ne + \fi + \sbox\z@ T% + \sbox\@ne{\xl@LaTeX@a}% + \vbox to\ht\z@{% + \hbox{% + \ltx@sh@ft{\ht\z@}% + \xl@sh@ft{\ht\@ne}% + \xl@LaTeX@a + \xl@sh@ft{\ht\z@}% + \ltx@sh@ft{\ht\@ne}}% + \vss}}% + } + +\def\HoLogo@LaTeX#1{\HoLogo@La{La}\kern\xl@kern@LaTeX@aT\TeX} + +\def\HoLogo@LaTeXe#1{% + \hologo{LaTeX}% + \kern\xl@kern@LaTeXe@Xii% + \hbox{% + \HOLOGO@MathSetup + 2% + $_{\textstyle\varepsilon}$% + }% +} + +\def\HoLogo@LaTeXTeX#1{% + (% + \kern\xl@kern@LaTeX@aT + \hologo{La}% + \kern\xl@kern@LaTeX@aT + )% + \kern\xl@kern@LaTeX@aT + \hologo{TeX}% +} +\expandafter\let\csname HoLogo@(La)TeX\endcsname\HoLogo@LaTeXTeX + +\def\HoLogo@XeTeX#1{\Xe\kern\xl@kern@XeTeX@eT\TeX} + +\def\HoLogo@XeLaTeX#1{\Xe\kern\xl@kern@XeLaTeX@eL\LaTeX} + +} +{}% hologo not loaded + +}% AtBeginDocument \endinput %% %% End of file `metalogox.sty'. |