texlive[52144] Master/texmf-dist: xfakebold (21sep19)

commits+karl at tug.org commits+karl at tug.org
Sat Sep 21 23:52:10 CEST 2019


Revision: 52144
          http://tug.org/svn/texlive?view=revision&revision=52144
Author:   karl
Date:     2019-09-21 23:52:09 +0200 (Sat, 21 Sep 2019)
Log Message:
-----------
xfakebold (21sep19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/xfakebold/Changes
    trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf
    trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex
    trunk/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty

Modified: trunk/Master/texmf-dist/doc/latex/xfakebold/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xfakebold/Changes	2019-09-21 21:51:57 UTC (rev 52143)
+++ trunk/Master/texmf-dist/doc/latex/xfakebold/Changes	2019-09-21 21:52:09 UTC (rev 52144)
@@ -1,5 +1,6 @@
 xfakebold.sty ----------------
 
+v 0.05 2019-09-21  fix pdflatex
 v 0.04 2018-08-21  typo in \fake at 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

Modified: trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex	2019-09-21 21:51:57 UTC (rev 52143)
+++ trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex	2019-09-21 21:52:09 UTC (rev 52144)
@@ -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}

Modified: trunk/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty	2019-09-21 21:51:57 UTC (rev 52143)
+++ trunk/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty	2019-09-21 21:52:09 UTC (rev 52144)
@@ -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,16 +13,16 @@
 %% 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 at bold{0.3}%
+\def\fake at bold{0.4}%
 
 \DeclareOptionX{bold}{%
   \def\fake at bold{#1}% 
-  \ifdim\fake at bold pt > \p@
+  \ifdim\fake at bold pt > 0pt
   \else 
     \PackageWarning{fakebold}{The value must be greater than 0. Will chooose 0.3}%
     \def\fake at bold{0.3}%
@@ -29,7 +29,7 @@
   \fi}
 
 \ProcessOptionsX
-
+\typeout{We use fakebold with factor \fake at bold}%
 \ifxetex
   \typeout{We have XeTeX}% 
   \PackageWarning{fakebold}%
@@ -36,17 +36,18 @@
   {^^J    No LuaTeX or PDFTeX running!
    ^^J    For Xe(La)TeX use the FakeBold option from package fontspec!
    \def\fake at bold{-1}}%
-\fi
-
-\ifluatex
+\else
+  \ifluatex
     \def\setBold{\pdfextension literal direct { 2 Tr \fake at bold\space w }\relax}
     \def\unsetBold{\pdfextension literal direct { 0 Tr 0 w }\relax}
     \typeout{We have LuaTeX}% 
-\else
-  \ifdim\fake at bold pt < \p@ \else
-    \def\setBold{\pdfliteral direct { 2 Tr \fake at bold\space w }\relax}
-    \def\unsetBold{\pdfliteral direct { 0 Tr 0 w }\relax}
-    \typeout{We have pdfTeX}% 
+  \else
+    \ifdim\fake at bold pt < \z@ \else
+      \def\setBold{\pdfliteral direct { 2 Tr \fake at 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



More information about the tex-live-commits mailing list