diff options
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/xfakebold/Changes | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/xfakebold/README | 14 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf | bin | 0 -> 64970 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex | 81 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty | 52 |
5 files changed, 151 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/xfakebold/Changes b/Master/texmf-dist/doc/latex/xfakebold/Changes new file mode 100644 index 00000000000..6668f7a8912 --- /dev/null +++ b/Master/texmf-dist/doc/latex/xfakebold/Changes @@ -0,0 +1,4 @@ +xfakebold.sty ---------------- + +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 new file mode 100644 index 00000000000..4f88583c69e --- /dev/null +++ b/Master/texmf-dist/doc/latex/xfakebold/README @@ -0,0 +1,14 @@ +This package akkows to use bold characters in text math mode. +It works only with vectorfonts which are created by outlines. + + +%% It may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3c +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. + + +Herbert Voß, hvoss@tug.org
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf b/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf Binary files differnew file mode 100644 index 00000000000..99145c631c1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf diff --git a/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex b/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex new file mode 100644 index 00000000000..71fa8372720 --- /dev/null +++ b/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex @@ -0,0 +1,81 @@ +% $Id: xfakebold-doc.tex 787 2018-07-23 18:03:13Z herbert $ +\listfiles +\documentclass[english]{article} +\usepackage{dejavu-otf} +\usepackage{xfakebold} +%\usepackage{luatex85} +%\pdfcompresslevel=0 +\usepackage{babel} +\usepackage[a4paper,tmargin=1cm,bmargin=1.5cm,includeheadfoot]{geometry} +\usepackage{listings} +\title{\texttt{xfakebold}, v. 0.01\\ using bold characters with \texttt{pdflatex} or \texttt{lualatex}} +\author{Herbert Voß} + +\lstset{basicstyle=\ttfamily\small,language={[LaTeX]TeX},frame=lrtb} +\begin{document} + +\maketitle + +\tableofcontents +\section{Introduction} +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. + +%\meaning\setBold + +%\meaning\unsetBold + +\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} +\end{lstlisting} + +makes the characters more bold. + +\section{The example code} + +\begin{lstlisting} +\documentclass{article} +\usepackage{fakebold} +\begin{document} +An example: +$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ +$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$ + +\setBold\noindent +An example: +$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ +$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$ + +\unsetBold\noindent +An example: +$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ +$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$ +\end{document} +\end{lstlisting} + +\section{The output} + + +An example: +$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ +$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$ + +\setBold\noindent +An example: +$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ +$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$ + +\unsetBold\noindent +An example: +$\pi^{\pi}=\directlua{tex.print(math.pi^math.pi)}$ +$\displaystyle\int\limits_1^{\infty}\frac1{x^2}\symup dx=1$ + + +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty b/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty new file mode 100644 index 00000000000..78610704a85 --- /dev/null +++ b/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty @@ -0,0 +1,52 @@ +% $Id: xfakebold.sty 787 2018-07-23 18:03:13Z herbert $ +%% +%% This is file `xfakebold.sty', +%% +%% Copyright (C) 2018 Herbert Voss +%% +%% It may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3c +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3c or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +%% +%% +\ProvidesPackage{xfakebold}[2018/07/23 v0.01 using bold characters] +\RequirePackage{ifluatex,ifxetex,xkeyval} + +\def\setBold{} +\def\unsetBold{} +\def\fake@bold{0.3}% + +\DeclareOptionX{bold}{% + \def\fake@bold{#1}% + \ifdim\fake@bold pt > \p@ + \else + 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}% + {^^J No LuaTeX or PDFTeX running! + ^^J For Xe(La)TeX use the FakeBold option from package fontspec! + \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 } } + \typeout{We have LuaTeX}% +\else + \gdef\setBold{\pdliteral direct { 2 Tr \fake@bold\space w } } + \gdef\unsetBold{\pdfliteral direct { 0 Tr 0 w } } + \typeout{We have pdfTeX}% +\fi + |