diff options
author | Karl Berry <karl@freefriends.org> | 2011-05-08 23:21:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-05-08 23:21:03 +0000 |
commit | f8eda54904065f5f259e8702c1b0c821335df27f (patch) | |
tree | 8e0fe7e357f60f80cbc117eadc70f3999ba412a1 /Master/texmf-dist/tex/latex/cantarell/cantarell.sty | |
parent | 5d5a3ce7983e13fe5456b264448248f94d236f6d (diff) |
cantarell (8may11)
git-svn-id: svn://tug.org/texlive/trunk@22361 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cantarell/cantarell.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/cantarell/cantarell.sty | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/cantarell/cantarell.sty b/Master/texmf-dist/tex/latex/cantarell/cantarell.sty new file mode 100644 index 00000000000..7662e1c16d6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/cantarell/cantarell.sty @@ -0,0 +1,47 @@ +%% cantarell.sty +%% Copyright 2011 Mohamed El Morabity +% +% 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 Mohamed El Morabity +% +% This work consists of all files listed in manifest.txt. + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{cantarell}[2011/04/02 Cantarell] + +\RequirePackage{keyval} +\RequirePackage{slantsc} + +% Taken from inconsolata.sty +\define@key{cantarell}{scale}[1.0]{\def\cantarell@scale{s*[#1]}} +\DeclareOption*{% + \begingroup + \edef\x{\endgroup + \noexpand\setkeys{cantarell}{\CurrentOption}}% + \x% +} + +\DeclareOption{defaultsans}{% + \renewcommand*{\sfdefault}{fca}% +} + +\DeclareOption{default}{% + \renewcommand*{\familydefault}{fca}% + \renewcommand*{\sfdefault}{fca}% +} + +\ProcessOptions* + +\newcommand{\fcafamily}{% + \fontfamily{fca}% + \selectfont% +} + +\endinput |