texlive[48268] Master: xfakebold (24jul18)
commits+karl at tug.org
commits+karl at tug.org
Tue Jul 24 23:44:54 CEST 2018
Revision: 48268
http://tug.org/svn/texlive?view=revision&revision=48268
Author: karl
Date: 2018-07-24 23:44:53 +0200 (Tue, 24 Jul 2018)
Log Message:
-----------
xfakebold (24jul18)
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/libexec/ctan2tds
trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/xfakebold/
trunk/Master/texmf-dist/doc/latex/xfakebold/Changes
trunk/Master/texmf-dist/doc/latex/xfakebold/README
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/
trunk/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty
trunk/Master/tlpkg/tlpsrc/xfakebold.tlpsrc
Added: trunk/Master/texmf-dist/doc/latex/xfakebold/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xfakebold/Changes (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/xfakebold/Changes 2018-07-24 21:44:53 UTC (rev 48268)
@@ -0,0 +1,4 @@
+xfakebold.sty ----------------
+
+v 0.01 2018-07-23 first CTAN version
+
Added: trunk/Master/texmf-dist/doc/latex/xfakebold/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xfakebold/README (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/xfakebold/README 2018-07-24 21:44:53 UTC (rev 48268)
@@ -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 at tug.org
\ No newline at end of file
Property changes on: trunk/Master/texmf-dist/doc/latex/xfakebold/README
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf 2018-07-24 21:40:31 UTC (rev 48267)
+++ trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf 2018-07-24 21:44:53 UTC (rev 48268)
Property changes on: trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex 2018-07-24 21:44:53 UTC (rev 48268)
@@ -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
Property changes on: trunk/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty 2018-07-24 21:44:53 UTC (rev 48268)
@@ -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 at bold{0.3}%
+
+\DeclareOptionX{bold}{%
+ \def\fake at bold{#1}%
+ \ifdim\fake at bold pt > \p@
+ \else
+ PackageWarning{fakebold}{The value must be greater than 0. Will chooose 0.3}%
+ \def\fake at 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 at bold\space w } }
+ \gdef\unsetBold{\pdfextension literal direct { 0 Tr 0 w } }
+ \typeout{We have LuaTeX}%
+\else
+ \gdef\setBold{\pdliteral direct { 2 Tr \fake at bold\space w } }
+ \gdef\unsetBold{\pdfliteral direct { 0 Tr 0 w } }
+ \typeout{We have pdfTeX}%
+\fi
+
Property changes on: trunk/Master/texmf-dist/tex/latex/xfakebold/xfakebold.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check 2018-07-24 21:40:31 UTC (rev 48267)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2018-07-24 21:44:53 UTC (rev 48268)
@@ -704,7 +704,7 @@
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
Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds 2018-07-24 21:40:31 UTC (rev 48267)
+++ trunk/Master/tlpkg/libexec/ctan2tds 2018-07-24 21:44:53 UTC (rev 48268)
@@ -434,6 +434,7 @@
'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'",
Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2018-07-24 21:40:31 UTC (rev 48267)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc 2018-07-24 21:44:53 UTC (rev 48268)
@@ -1177,6 +1177,7 @@
depend xcomment
depend xdoc
depend xellipsis
+depend xfakebold
depend xfor
depend xhfill
depend xifthen
Added: trunk/Master/tlpkg/tlpsrc/xfakebold.tlpsrc
===================================================================
More information about the tex-live-commits
mailing list