summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/xfakebold
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-22 03:01:01 +0000
committerNorbert Preining <norbert@preining.info>2019-09-22 03:01:01 +0000
commit77cef1d14e947b4899f54ca0311ca5ce9d253164 (patch)
treeb641044ef8a3372df30ea6e27d7c822bccc58cb0 /macros/latex/contrib/xfakebold
parent31d764f773a47d4d8cfa2cd2c0c3a4d5a7dff3e6 (diff)
CTAN sync 201909220301
Diffstat (limited to 'macros/latex/contrib/xfakebold')
-rw-r--r--macros/latex/contrib/xfakebold/Changes1
-rw-r--r--macros/latex/contrib/xfakebold/doc/xfakebold-doc.pdfbin78552 -> 78838 bytes
-rw-r--r--macros/latex/contrib/xfakebold/doc/xfakebold-doc.tex4
-rw-r--r--macros/latex/contrib/xfakebold/latex/xfakebold.sty29
4 files changed, 18 insertions, 16 deletions
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
--- a/macros/latex/contrib/xfakebold/doc/xfakebold-doc.pdf
+++ b/macros/latex/contrib/xfakebold/doc/xfakebold-doc.pdf
Binary files 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