summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xfakebold/xfakebold-doc.tex
blob: 1bafc865c200162fd32aa4ce81ebafbc5b84d07f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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.02\\ 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}