summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-07-24 21:44:53 +0000
committerKarl Berry <karl@freefriends.org>2018-07-24 21:44:53 +0000
commita30761b01ce80a822f0c544edc4c2b3264dbc876 (patch)
tree8377e5e48856baf63224b5e23bab48b7aa74bfbc
parent1b726505a6706626ec3f57ce6205d1665a963f2f (diff)
xfakebold (24jul18)
git-svn-id: svn://tug.org/texlive/trunk@48268 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/xfakebold/Changes4
-rw-r--r--Master/texmf-dist/doc/latex/xfakebold/README14
-rw-r--r--Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdfbin0 -> 64970 bytes
-rw-r--r--Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex81
-rw-r--r--Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty52
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds1
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/xfakebold.tlpsrc0
9 files changed, 154 insertions, 1 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
new file mode 100644
index 00000000000..99145c631c1
--- /dev/null
+++ 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
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
+
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 8d7dbc23520..b68cecb53fb 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -704,7 +704,7 @@ my @TLP_working = qw(
xepersian xesearch xespotcolor
xetex-devanagari xetex-itrans xetex-pstricks xetex-tibetan
xetexfontinfo xetexko
- xetexref xevlna xfor xgreek xhfill
+ xetexref xevlna xfakebold xfor xgreek xhfill
xifthen xii xii-lat xint xits
xkeyval xlop xltabular xltxtra xmltex xmpincl xnewcommand
xoptarg xpatch xpeek xpiano xpicture xpinyin xprintlen xpunctuate
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index 315dfc520c7..2c511691562 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -434,6 +434,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'expressgx', "&MAKEexpressg",
'extractpdfmark', "die 'skipping, compiled program'",
'fac', "die 'skipping, noinfo license'",
+ 'xfakebold', "&MAKEflatten",
'fancyvrb', "&MAKEfancyvrb",
'faq', "die 'skipping, use FAQ-en'",
'faq-en', "die 'skipping, use FAQ-en'",
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index 504401c16ae..8f84d9efb71 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -1177,6 +1177,7 @@ depend xcolor-solarized
depend xcomment
depend xdoc
depend xellipsis
+depend xfakebold
depend xfor
depend xhfill
depend xifthen
diff --git a/Master/tlpkg/tlpsrc/xfakebold.tlpsrc b/Master/tlpkg/tlpsrc/xfakebold.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/xfakebold.tlpsrc