diff options
author | Karl Berry <karl@freefriends.org> | 2009-09-30 00:11:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-09-30 00:11:25 +0000 |
commit | 7a3ad37ae5debe7d7427c0b1efa3e89ad19e59e4 (patch) | |
tree | 5787f38655846985f475303beac52825f86d6637 /Master/texmf-dist/tex/latex/tex-gyre/tgheros.sty | |
parent | 5e098aa246078165cc3b574dd5568e8b1fed2ea0 (diff) |
tex gyre 2.003 (29sep09)
git-svn-id: svn://tug.org/texlive/trunk@15567 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tex-gyre/tgheros.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tex-gyre/tgheros.sty | 36 |
1 files changed, 30 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/tex-gyre/tgheros.sty b/Master/texmf-dist/tex/latex/tex-gyre/tgheros.sty index dede1a48580..79479e01a0c 100644 --- a/Master/texmf-dist/tex/latex/tex-gyre/tgheros.sty +++ b/Master/texmf-dist/tex/latex/tex-gyre/tgheros.sty @@ -8,13 +8,13 @@ %% ---------------------------------------------------------------------------- %% [EN] LaTeX2e support for Tex Gyre Heros fonts %% The declaration `\usepackage{tgheros}' in the LaTeX preamble -%% will set TeX Gyre Heros as the default (sansserif) font for the document. +%% will set TeX Gyre Heros as the default sans serif font for the document. %% %% [PL] Wspomaga stosowanie w LaTeXu kroju Tex Gyre Heros %% Umieszczenie linijki `\usepackage{tgheros}' w preambule spowoduje %% ustawienie TeX Gyre Heros jako podstawowego bezszeryfowego kroju -%% dokumentu, czyli kroju skojarzonego z poleceniem \sffamily. -%% W dokumentach po polsku konieczne jest uaktywnienie kodowania +%% dokumenu, czyli kroju skojarzonego z poleceniem \sffamily. +%% W dokumenach po polsku konieczne jest uaktywnienie kodowania %% T1, QX lub OT4 (najlepiej przy pomocy pakietu 'polski'). Np.: %% %% \usepackage{tgheros} @@ -23,11 +23,35 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{tgheros} - [2007/02/26 v1.0 TeX Gyre Heros as default sansserif family] + [2009/09/27 v1.2 TeX Gyre Heros as default sans serif family] \renewcommand{\sfdefault}{qhv} -\renewcommand{\familydefault}{\sfdefault} -\fontfamily{\familydefault} +\renewcommand\bfdefault{b} + +\def\tg@scale@to@rm#1#2{% + \begingroup + \fontsize{10}{0}\usefont{\encodingdefault}{\rmdefault}{m}{n}% + #1% + \xdef\qhv@scale{% + \strip@pt + \dimexpr 1pt * + \@tempdima / \dimexpr#2pt\relax + \relax}% + \PackageInfo{tgheros}{The qhv family is scaled by \qhv@scale} + \endgroup +} + +\RequirePackage{kvoptions} +\SetupKeyvalOptions{prefix=qhv@} +\DeclareStringOption{scale}[.95] +\define@key{tgheros}{matchlowercase}[1]{% + \tg@scale@to@rm{\@tempdima#1\fontdimen5\font}{5.23999}} +\define@key{tgheros}{matchuppercase}[1]{% + \tg@scale@to@rm{\setbox0\hbox{XWYZH}\@tempdima#1\ht0}{7.31999}} +\DeclareVoidOption{oldspacing}{} +\DeclareVoidOption{condensed}{\renewcommand{\sfdefault}{qhvc}} +\ProcessKeyvalOptions* + \endinput %% |