summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/venturisadf/venturis.sty
blob: d746f39c7cb2281513511f9fe3f87377baa9b73d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
%% 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.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{venturis}[2010/07/03 v1.005 VenturisADF PS]
\RequirePackage{xkeyval}
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
\RequirePackage{nfssext-cfr}
%:boolkeys for roman osf/lf
\define@boolkey{venturis.sty}[venturis@]{osf}[true]{%
	\ifventuris@osf
		\def\venturis@lfosf{j}%
	\else
		\def\venturis@lfosf{}%
	\fi}
\define@boolkey{venturis.sty}[venturis@]{lf}[true]{%
	\ifventuris@lf
		\def\venturis@lfosf{}%
	\else
		\def\venturis@lfosf{j}%
	\fi}

%:defaults to ensure everything is defined to something
\ExecuteOptionsX{osf=true}

%:options override defaults
\ProcessOptionsX

%:make Venturis default for roman text, implementing the relevant option
\renewcommand{\rmdefault}{yvt\venturis@lfosf}
%:make Venturis Sans default for sans-serif text
\renewcommand{\sfdefault}{yv1}

%:introduce special titling commands
\DeclareRobustCommand{\vtstyle}[1][]{%
	\edef\vt@shape{#1}%
	\def\tempo{ol}%
	\def\temps{yv1}%
	\def\tempr{yvt}%
	\not@math@alphabet\vtstyle\relax
%:because the titling fonts have limited availability, don't use the \tistyle set-up, but choose the family explicitly in case we're currently using sans or typewriter - note, though, that some are also called as small-caps commands in certain sans-serif variants (though the seriffed variant seems not to match anything...)
	\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 yv1 or yvt 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 yv1 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