summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/xfakebold/latex/xfakebold.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/xfakebold/latex/xfakebold.sty')
-rw-r--r--macros/latex/contrib/xfakebold/latex/xfakebold.sty29
1 files changed, 15 insertions, 14 deletions
diff --git a/macros/latex/contrib/xfakebold/latex/xfakebold.sty b/macros/latex/contrib/xfakebold/latex/xfakebold.sty
index 70dc0e678c..51d030dedf 100644
--- a/macros/latex/contrib/xfakebold/latex/xfakebold.sty
+++ b/macros/latex/contrib/xfakebold/latex/xfakebold.sty
@@ -1,8 +1,8 @@
-% $Id: xfakebold.sty 793 2018-08-06 16:39:25Z herbert $
+% $Id: xfakebold.sty 1087 2019-09-21 11:53:40Z herbert $
%%
%% This is file `xfakebold.sty',
%%
-%% Copyright (C) 2018 Herbert Voss
+%% Copyright (C) 2019 Herbert Voss
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -13,40 +13,41 @@
%% version 2005/12/01 or later.
%%
%%
-\ProvidesPackage{xfakebold}[2018/08/21 v0.04 using bold characters]
+\ProvidesPackage{xfakebold}[2019/09/21 v0.05 using bold characters]
\RequirePackage{ifluatex,ifxetex,xkeyval}
\def\setBold{}
\def\unsetBold{}
-\def\fake@bold{0.3}%
+\def\fake@bold{0.4}%
\DeclareOptionX{bold}{%
\def\fake@bold{#1}%
- \ifdim\fake@bold pt > \p@
+ \ifdim\fake@bold pt > 0pt
\else
\PackageWarning{fakebold}{The value must be greater than 0. Will chooose 0.3}%
\def\fake@bold{0.3}%
\fi}
\ProcessOptionsX
-
+\typeout{We use fakebold with factor \fake@bold}%
\ifxetex
\typeout{We have XeTeX}%
\PackageWarning{fakebold}%
{^^J No LuaTeX or PDFTeX running!
^^J For Xe(La)TeX use the FakeBold option from package fontspec!
\def\fake@bold{-1}}%
-\fi
-
-\ifluatex
+\else
+ \ifluatex
\def\setBold{\pdfextension literal direct { 2 Tr \fake@bold\space w }\relax}
\def\unsetBold{\pdfextension literal direct { 0 Tr 0 w }\relax}
\typeout{We have LuaTeX}%
-\else
- \ifdim\fake@bold pt < \p@ \else
- \def\setBold{\pdfliteral direct { 2 Tr \fake@bold\space w }\relax}
- \def\unsetBold{\pdfliteral direct { 0 Tr 0 w }\relax}
- \typeout{We have pdfTeX}%
+ \else
+ \ifdim\fake@bold pt < \z@ \else
+ \def\setBold{\pdfliteral direct { 2 Tr \fake@bold\space w }\relax}
+ \def\unsetBold{\pdfliteral direct { 0 Tr 0 w }\relax}
+ \typeout{We have pdfTeX}%
+ \fi
\fi
\fi
+\endinput \ No newline at end of file