diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/venturisadf/venturis2.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/venturisadf/venturis2.sty | 121 |
1 files changed, 80 insertions, 41 deletions
diff --git a/Master/texmf-dist/tex/latex/venturisadf/venturis2.sty b/Master/texmf-dist/tex/latex/venturisadf/venturis2.sty index e28fcbaef45..0bf9ebdec49 100644 --- a/Master/texmf-dist/tex/latex/venturisadf/venturis2.sty +++ b/Master/texmf-dist/tex/latex/venturisadf/venturis2.sty @@ -1,50 +1,89 @@ -%% Copyright 2010 Clea F. Rees -% -% This work may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either version 1.3 -% of this license or (at your option) any later version. -% The latest version of this license is in -% http://www.latex-project.org/lppl.txt -% and version 1.3 or later is part of all distributions of LaTeX -% version 2005/12/01 or later. -% -% This work has the LPPL maintenance status `maintained'. -% -% The Current Maintainer of this work is Clea F. Rees. -% -% This work consists of all files listed in manifest.txt. +%% +%% This is file `venturis2.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% venturis2.dtx (with options: `sty') +%% Copyright (C) 2008-2024 Clea F. Rees. +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% https://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status `maintained'. +%% +%% The Current Maintainer of this work is Clea F. Rees. +%% +%% This file may only be distributed together with a copy of the package +%% venturisadf. You may however distribute the package venturisadf without +%% such generated files. +%% +%% This work consists of all files listed in manifest.txt. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{venturis2}[2010/07/03 v1.005 VenturisADFNo2 PS] +\RequirePackage{svn-prov} +\ProvidesPackageSVN[\filebase.sty]{$Id: venturis2.dtx 10366 2024-09-18 14:25:21Z cfrees $}[v2.0 \revinfo for VenturisADFNo2 PS 1.005] +\DefineFileInfoSVN[venturisii] \RequirePackage[T1]{fontenc} -\RequirePackage{textcomp} -\RequirePackage{nfssext-cfr} +\RequirePackage{nfssext-cfr}[2024/01/01] +\IfFormatAtLeastTF {2020-02-02}{% + \DeclareEncodingSubset{TS1}{yv2}{1}% + \DeclareEncodingSubset{TS1}{yv3}{1}% +}{% + \RequirePackage{textcomp}} +\UndeclareTextCommand{\textperthousand}{T1} +\ExplSyntaxOn +\keys_define:nn { venturis ii } +{ + scale ~ rm .tl_set:N = \yvii@scale, + scale ~ rm .initial:V = \@empty, + scale ~ sf .tl_set:N = \yviii@scale, + scale ~ sf .initial:V = \@empty, + scale .code:n = { + \gdef\yvii@scale{#1} + \gdef\yviii@scale{#1} + }, +} +\ProcessKeyOptions[venturis ii] +\ExplSyntaxOff \renewcommand{\rmdefault}{yv2} \renewcommand{\sfdefault}{yv3} -%:introduce special titling commands \DeclareRobustCommand{\vtstyle}[1][]{% - \edef\vt@shape{#1}% - \def\tempo{ol}% - \def\temps{yv3}% - \def\tempr{yv2}% - \not@math@alphabet\vtstyle\relax -%:because the titling fonts have limited availability, don't use the \tistyle set-up which won't work with venturis2 in any case, but choose the family explicitly in case we're currently using sans or typewriter +\edef\vt@shape{#1}% +\def\tempo{ol}% +\def\temps{yv3}% +\def\tempr{yv2}% +\not@math@alphabet\vtstyle\relax \ifx\vt@shape\tempo - \fontfamily{yvtd}\fontshape{ol}\selectfont - \else - \edef\tempf{\expandafter\exfs@get@base\f@family\@nil}% - \ifx\tempf\temps - \fontfamily{yv1d}\selectfont - \else - \ifx\tempf\tempr - \fontfamily{yvtd}\selectfont - \else - \PackageWarning{venturis.sty}{\tempf is unknown. This command requires that yv2 or yv3 be active in order to determine whether serif or sans-serif titling is required. I am going to guess that you want serif titling. If this is wrong, be sure to activate yv3 first or copy and adapt the styling command from venturis.sty.}% - \fontfamily{yvtd}\selectfont - \fi - \fi - \fi - } +\fontfamily{yvtd}\fontshape{ol}\selectfont +\else +\edef\tempf{\expandafter\exfs@get@base\f@family\@nil}% +\ifx\tempf\temps +\fontfamily{yv1d}\selectfont +\else +\ifx\tempf\tempr +\fontfamily{yvtd}\selectfont +\else +\PackageWarning{venturis.sty}{% + \tempf is unknown. + This command requires that yv2 or yv3 be active in order to determine whether serif or sans-serif titling is required. + I am going to guess that you want serif titling. + If this is wrong, be sure to activate yv3 first or copy and adapt the styling command from venturis.sty.% + }% +\fontfamily{yvtd}\selectfont +\fi +\fi +\fi +} \DeclareTextFontCommand{\textvt}{\vtstyle} \DeclareTextFontCommand{\textvtl}{\vtstyle[ol]} - +%% end venturis2.sty \endinput +%% +%% End of file `venturis2.sty'. |