summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chivo/Chivo.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/chivo/Chivo.sty')
-rw-r--r--Master/texmf-dist/tex/latex/chivo/Chivo.sty130
1 files changed, 130 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/chivo/Chivo.sty b/Master/texmf-dist/tex/latex/chivo/Chivo.sty
new file mode 100644
index 00000000000..bfc7b0fdbd5
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/chivo/Chivo.sty
@@ -0,0 +1,130 @@
+%%
+%% This is file `Chivo.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% Chivo.dtx (with options: `package')
+%%
+%% Copyright (C) 2016 Arash Esbati <esbati'at'gmx.de>
+%%
+%% This work may be distributed and/or modified under the conditions
+%% of the LaTeX Project Public License (LPPL), either version 1.3c of
+%% this license or (at your option) any later version. The latest
+%% version of this license is in the file:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesPackage{Chivo}
+ [2016/05/05 v1.0 Support for Chivo fonts (AE)]
+\newif\ifChivo@otf
+\ifdefined\XeTeXinterchartoks % we are in XeTeX
+ \Chivo@otftrue
+\else
+ \ifdefined\directlua % we are in LuaTeX
+ \Chivo@otftrue
+ \fi
+\fi
+\ifChivo@otf
+ \RequirePackage{fontspec}
+\else
+ \RequirePackage{mweights}
+\fi
+\RequirePackage{kvoptions}
+\SetupKeyvalOptions{%
+ family = Chivo ,
+ prefix = Chivo@
+}
+\DeclareBoolOption{regular}
+\DeclareComplementaryOption{light}{regular}
+\DeclareBoolOption{bold}
+\DeclareComplementaryOption{black}{bold}
+\ifChivo@otf
+ \DeclareVoidOption{scale}{\relax}
+\else
+ \DeclareStringOption[1.0]{scale}
+\fi
+\DeclareBoolOption{familydefault}
+\DeclareVoidOption{opentype}{\Chivo@otftrue}
+\DeclareVoidOption{type1}{\Chivo@otffalse}
+\setkeys{Chivo}{regular,bold}
+\ProcessKeyvalOptions{Chivo}
+\ifChivo@otf \else
+ \ifChivo@regular
+ \def\mdseries@sf{m}
+ \else
+ \def\mdseries@sf{l}
+ \fi
+\fi
+\ifChivo@otf \else
+ \ifChivo@bold
+ \def\bfseries@sf{b}
+ \else
+ \def\bfseries@sf{k}
+ \fi
+\fi
+\ifChivo@otf
+ \ifChivo@regular
+ \ifChivo@bold
+ \defaultfontfeatures[Chivo]
+ {
+ Extension = .otf ,
+ BoldFont = Chivo-Bold ,
+ ItalicFont = Chivo-Italic ,
+ BoldItalicFont = Chivo-BoldItalic ,
+ UprightFont = Chivo-Regular
+ }
+ \else
+ \defaultfontfeatures[Chivo]
+ {
+ Extension = .otf ,
+ BoldFont = Chivo-Black ,
+ ItalicFont = Chivo-Italic ,
+ BoldItalicFont = Chivo-BlackItalic ,
+ UprightFont = Chivo-Regular
+ }
+ \fi
+ \else
+ \ifChivo@bold
+ \defaultfontfeatures[Chivo]
+ {
+ Extension = .otf ,
+ BoldFont = Chivo-Bold ,
+ ItalicFont = Chivo-LightItalic ,
+ BoldItalicFont = Chivo-BoldItalic ,
+ UprightFont = Chivo-Light
+ }
+ \else
+ \defaultfontfeatures[Chivo]
+ {
+ Extension = .otf ,
+ BoldFont = Chivo-Black ,
+ ItalicFont = Chivo-LightItalic ,
+ BoldItalicFont = Chivo-BlackItalic ,
+ UprightFont = Chivo-Light
+ }
+ \fi
+ \fi
+\fi
+\ifChivo@otf
+ \AtBeginDocument{%
+ \setsansfont{Chivo}%
+ }
+\else
+ \renewcommand*{\sfdefault}{Chivo-TLF}
+\fi
+\ifChivo@familydefault
+ \renewcommand*{\familydefault}{\sfdefault}
+ \ifChivo@otf\else
+ \ifChivo@regular \else
+ \edef\seriesdefault{\mdseries@sf}
+ \fi
+ \ifChivo@bold \else
+ \edef\bfdefault{\bfseries@sf}
+ \fi
+ \fi
+\fi
+\endinput
+%%
+%% End of file `Chivo.sty'.