summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/xfakebold/Changes1
-rw-r--r--Master/texmf-dist/doc/latex/xfakebold/README2
-rw-r--r--Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdfbin65176 -> 78566 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex75
-rw-r--r--Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty16
5 files changed, 72 insertions, 22 deletions
diff --git a/Master/texmf-dist/doc/latex/xfakebold/Changes b/Master/texmf-dist/doc/latex/xfakebold/Changes
index 72d3d4d7d24..7484aef5a6c 100644
--- a/Master/texmf-dist/doc/latex/xfakebold/Changes
+++ b/Master/texmf-dist/doc/latex/xfakebold/Changes
@@ -1,5 +1,6 @@
xfakebold.sty ----------------
+v 0.03 2018-08-07 small fixes and typos in the documentation
v 0.02 2018-07-25 fix bug in pdflatex part
v 0.01 2018-07-23 first CTAN version
diff --git a/Master/texmf-dist/doc/latex/xfakebold/README b/Master/texmf-dist/doc/latex/xfakebold/README
index 4f88583c69e..86cf330d387 100644
--- a/Master/texmf-dist/doc/latex/xfakebold/README
+++ b/Master/texmf-dist/doc/latex/xfakebold/README
@@ -1,4 +1,4 @@
-This package akkows to use bold characters in text math mode.
+This package allows to use bold characters in text and math mode.
It works only with vectorfonts which are created by outlines.
diff --git a/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf b/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf
index 0800fbcef86..743c61b7d08 100644
--- a/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf
+++ b/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex b/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex
index 1bafc865c20..b57caba338f 100644
--- a/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex
+++ b/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex
@@ -1,14 +1,14 @@
-% $Id: xfakebold-doc.tex 787 2018-07-23 18:03:13Z herbert $
+% $Id: xfakebold-doc.tex 793 2018-08-06 16:39:25Z herbert $
\listfiles
\documentclass[english]{article}
\usepackage{dejavu-otf}
\usepackage{xfakebold}
-%\usepackage{luatex85}
+\usepackage{graphicx}
%\pdfcompresslevel=0
\usepackage{babel}
\usepackage[a4paper,tmargin=1cm,bmargin=1.5cm,includeheadfoot]{geometry}
\usepackage{listings}
-\title{\texttt{xfakebold}, v. 0.02\\ using bold characters with \texttt{pdflatex} or \texttt{lualatex}}
+\title{\texttt{xfakebold}, v. 0.03\\ using bold characters with \texttt{pdflatex} or \texttt{lualatex}}
\author{Herbert Voß}
\lstset{basicstyle=\ttfamily\small,language={[LaTeX]TeX},frame=lrtb}
@@ -17,23 +17,53 @@
\maketitle
\tableofcontents
-\section{Introduction}
+
+\begin{abstract}
The package fakes a vector font with outline characters by the text render of PDF.
It writes directly into the pdf output with \verb|\pdfliteral| (pdflatex ) or \verb|\pdfextension| \verb|literal|
(lualatex). The package defines two macros which can be used in text and in math mode. However, for the text
mode one should use the bold version of the text font which should be available in most cases. This is different to the
math mode where only some free math fonts provide a bold version.
+\end{abstract}
+\vfill
+\small Thanks to: Will Robertson;
%\meaning\setBold
%\meaning\unsetBold
+\newpage
+
+\section{How does it work?}
+PDF knows different text render modes for outline fonts.
+
+\def\OFF{\pdfextension literal direct { 0 Tr 0 w }\relax}
+\def\Verb|#1|{\texttt{\{#1\}}}
+
+\makebox[3cm][l]{Mode 0 \Verb| 0 Tr 0 w |} \tabular{l}\pdfextension literal direct { 0 Tr 0 w }\scalebox{10}{OTTO} OTTO\OFF\endtabular
+
+\makebox[3cm][l]{Mode 1 \Verb| 1 Tr 0 w |} \tabular{l}\pdfextension literal direct { 1 Tr 0 w }\scalebox{10}{OTTO} OTTO\OFF\endtabular
+
+\makebox[3cm][l]{Mode 1 \Verb| 1 Tr 0.3 w |} \tabular{l}\pdfextension literal direct { 1 Tr 0.3 w }\scalebox{10}{OTTO} OTTO\OFF\endtabular
+
+\makebox[3cm][l]{Mode 2 \Verb| 2 Tr 0 w |} \tabular{l}\pdfextension literal direct { 2 Tr 0 w }\scalebox{10}{OTTO} OTTO\OFF\endtabular
+
+\makebox[3cm][l]{Mode 2 \Verb| 2 Tr 0.3 w |} \tabular{l}\pdfextension literal direct { 2 Tr 0.3 w }\scalebox{10}{OTTO} OTTO\OFF\endtabular
+
+
+In mode 0 the character is filled but without drawing its outline which can be seen when printing in mode 1, where
+the linewidth of the outline is the smallest one which the system allows. Setting the linewidth to 0.3\,bp, which is
+nearly the same as 0.3\,pt, the linewidth of the outline increases. In mode 2 the character is printed with filling \emph{and}
+drawing the outline, which is mode 0 and 1 together. The reason why the character is bold by default. Increasing the linewidth
+makes it more bold.
+
+
\section{Optional argument}
The only package option is \verb|bold| which is preset by 0.3, which is the linewidth of
the outlines of the characters.
\begin{lstlisting}
-\usepackage[bold=0.6]{fakebold}
+\usepackage[bold=0.6]{xfakebold}
\end{lstlisting}
makes the characters more bold.
@@ -42,20 +72,20 @@ makes the characters more bold.
\begin{lstlisting}
\documentclass{article}
-\usepackage{fakebold}
+\usepackage{xfakebold}
\begin{document}
An example:
-$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$
+$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ and
$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$
\setBold\noindent
An example:
-$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$
+$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ and
$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$
\unsetBold\noindent
An example:
-$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$
+$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ and
$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$
\end{document}
\end{lstlisting}
@@ -64,17 +94,38 @@ $\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$
An example:
-$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$
+$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ and
+$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$
+
+\setBold\noindent
+An example:
+$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ and
+$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$
+
+\unsetBold\noindent
+An example:
+$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ and
+$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$
+
+
+\vspace{2cm}\noindent
+The same for \verb|\usepackage[bold=1]{xfakebold}|:
+
+\gdef\setBold{\pdfextension literal direct { 2 Tr 1 w }\relax}
+\gdef\unsetBold{\pdfextension literal direct { 0 Tr 0 w }\relax}
+\noindent
+An example:
+$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ and
$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$
\setBold\noindent
An example:
-$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$
+$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ and
$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$
\unsetBold\noindent
An example:
-$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$
+$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ and
$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$
diff --git a/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty b/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty
index 3fb30f20840..c6532bc535a 100644
--- a/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty
+++ b/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty
@@ -1,4 +1,4 @@
-% $Id: xfakebold.sty 788 2018-07-25 16:22:47Z herbert $
+% $Id: xfakebold.sty 793 2018-08-06 16:39:25Z herbert $
%%
%% This is file `xfakebold.sty',
%%
@@ -13,7 +13,7 @@
%% version 2005/12/01 or later.
%%
%%
-\ProvidesPackage{xfakebold}[2018/07/25 v0.02 using bold characters]
+\ProvidesPackage{xfakebold}[2018/08/07 v0.03 using bold characters]
\RequirePackage{ifluatex,ifxetex,xkeyval}
\def\setBold{}
@@ -24,13 +24,12 @@
\def\fake@bold{#1}%
\ifdim\fake@bold pt > \p@
\else
- PackageWarning{fakebold}{The value must be greater than 0. Will chooose 0.3}%
+ \PackageWarning{fakebold}{The value must be greater than 0. Will chooose 0.3}%
\def\fake@bold{0.3}%
\fi}
\ProcessOptionsX
-
\ifxetex
\typeout{We have XeTeX}%
\PackageWarning{fakebold}%
@@ -39,14 +38,13 @@
\def\fakebold{0}}%
\fi
-
\ifluatex
- \gdef\setBold{\pdfextension literal direct { 2 Tr \fake@bold\space w } }
- \gdef\unsetBold{\pdfextension literal direct { 0 Tr 0 w } }
+ \gdef\setBold{\pdfextension literal direct { 2 Tr \fake@bold\space w }\relax}
+ \gdef\unsetBold{\pdfextension literal direct { 0 Tr 0 w }\relax}
\typeout{We have LuaTeX}%
\else
- \gdef\setBold{\pdfliteral direct { 2 Tr \fake@bold\space w } }
- \gdef\unsetBold{\pdfliteral direct { 0 Tr 0 w } }
+ \gdef\setBold{\pdfliteral direct { 2 Tr \fake@bold\space w }\relax}
+ \gdef\unsetBold{\pdfliteral direct { 0 Tr 0 w }\relax}
\typeout{We have pdfTeX}%
\fi