From c30495a208807bdd077250937a5a41e39b4ff3e0 Mon Sep 17 00:00:00 2001 From: Alexandre Dupas Date: Sun, 31 Oct 2010 23:19:24 +0100 Subject: [PATCH] Templates: add fallback for venturisold font (which requires texlive-fonts-extra) in ancient template instead of crash Conflicts: templates/ancient.tmpl --- fonts/venturisold.sty | 30 ++++++++++++++++++++++++++++++ templates/ancient.tmpl | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 fonts/venturisold.sty diff --git a/fonts/venturisold.sty b/fonts/venturisold.sty new file mode 100644 index 00000000..0fa21368 --- /dev/null +++ b/fonts/venturisold.sty @@ -0,0 +1,30 @@ +%% 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{venturisold}[2010/07/03 v1.005 VenturisOldADF PS] +\RequirePackage[T1]{fontenc} +\RequirePackage{textcomp} +\RequirePackage{nfssext-cfr} +%:Make Venturis Old default for roman text +\renewcommand{\rmdefault}{yvo} +%:introduce special titling commands +\DeclareRobustCommand{\vtstyle}[1][]{% allow an optional argument for consistency with venturis.sty + \not@math@alphabet\vtstyle\relax + \fontfamily{yvod}\selectfont} +\DeclareTextFontCommand{\textvt}{\vtstyle} +\DeclareTextFontCommand{\textvtl}{\vtstyle} +\endinput +%% end venturisold.sty diff --git a/templates/ancient.tmpl b/templates/ancient.tmpl index 1e7d5b71..d8943c20 100644 --- a/templates/ancient.tmpl +++ b/templates/ancient.tmpl @@ -48,7 +48,7 @@ \usepackage[utf8]{inputenc} \usepackage[english,french,spanish]{babel} \usepackage[T1]{fontenc} -\usepackage{venturisold} +\usepackage{fonts/venturisold} \title{\gettitle} \author{\getauthor}