From 77cef1d14e947b4899f54ca0311ca5ce9d253164 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sun, 22 Sep 2019 03:01:01 +0000 Subject: CTAN sync 201909220301 --- macros/latex/contrib/xfakebold/Changes | 1 + .../latex/contrib/xfakebold/doc/xfakebold-doc.pdf | Bin 78552 -> 78838 bytes .../latex/contrib/xfakebold/doc/xfakebold-doc.tex | 4 +-- macros/latex/contrib/xfakebold/latex/xfakebold.sty | 29 +++++++++++---------- 4 files changed, 18 insertions(+), 16 deletions(-) (limited to 'macros/latex/contrib/xfakebold') diff --git a/macros/latex/contrib/xfakebold/Changes b/macros/latex/contrib/xfakebold/Changes index 64af8d5c42..923320521b 100644 --- a/macros/latex/contrib/xfakebold/Changes +++ b/macros/latex/contrib/xfakebold/Changes @@ -1,5 +1,6 @@ xfakebold.sty ---------------- +v 0.05 2019-09-21 fix pdflatex v 0.04 2018-08-21 typo in \fake@bold v 0.03 2018-08-07 small fixes and typos in the documentation v 0.02 2018-07-25 fix bug in pdflatex part diff --git a/macros/latex/contrib/xfakebold/doc/xfakebold-doc.pdf b/macros/latex/contrib/xfakebold/doc/xfakebold-doc.pdf index 6732fcabe7..d9b058589a 100644 Binary files a/macros/latex/contrib/xfakebold/doc/xfakebold-doc.pdf and b/macros/latex/contrib/xfakebold/doc/xfakebold-doc.pdf differ diff --git a/macros/latex/contrib/xfakebold/doc/xfakebold-doc.tex b/macros/latex/contrib/xfakebold/doc/xfakebold-doc.tex index 710a6fa7a2..d2bd92ef2b 100644 --- a/macros/latex/contrib/xfakebold/doc/xfakebold-doc.tex +++ b/macros/latex/contrib/xfakebold/doc/xfakebold-doc.tex @@ -1,4 +1,4 @@ -% $Id: xfakebold-doc.tex 793 2018-08-06 16:39:25Z herbert $ +% $Id: xfakebold-doc.tex 1087 2019-09-21 11:53:40Z herbert $ \listfiles \documentclass[english]{article} \usepackage{dejavu-otf} @@ -8,7 +8,7 @@ \usepackage{babel} \usepackage[a4paper,tmargin=1cm,bmargin=1.5cm,includeheadfoot]{geometry} \usepackage{listings} -\title{\texttt{xfakebold}, v. 0.04\\ using bold characters with \texttt{pdflatex} or \texttt{lualatex}} +\title{\texttt{xfakebold}, v. 0.05\\ using bold characters with \texttt{pdflatex} or \texttt{lualatex}} \author{Herbert Voß} \lstset{basicstyle=\ttfamily\small,language={[LaTeX]TeX},frame=lrtb} 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 -- cgit v1.2.3