summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/venturisadf/venturis2.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/venturisadf/venturis2.sty')
-rw-r--r--Master/texmf-dist/tex/latex/venturisadf/venturis2.sty31
1 files changed, 29 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/venturisadf/venturis2.sty b/Master/texmf-dist/tex/latex/venturisadf/venturis2.sty
index 73a64305024..e28fcbaef45 100644
--- a/Master/texmf-dist/tex/latex/venturisadf/venturis2.sty
+++ b/Master/texmf-dist/tex/latex/venturisadf/venturis2.sty
@@ -1,4 +1,4 @@
-%% Copyright 2008 Clea F. Rees
+%% 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
@@ -14,10 +14,37 @@
%
% This work consists of all files listed in manifest.txt.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{venturis2}[2008/11/05 v1.004 VenturisADFNo2 PS]
+\ProvidesPackage{venturis2}[2010/07/03 v1.005 VenturisADFNo2 PS]
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\RequirePackage{nfssext-cfr}
\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
+\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
+ }
+\DeclareTextFontCommand{\textvt}{\vtstyle}
+\DeclareTextFontCommand{\textvtl}{\vtstyle[ol]}
+
\endinput