summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/anyfontsize/anyfontsize.tex
blob: 630c3c5e2eb598d2bcc890b88610ec5a13d5d3a2 (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
\documentclass[pagesize=auto]{scrartcl}

\usepackage{fixltx2e}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[utf8]{inputenc}
\usepackage{microtype}

\addtokomafont{title}{\rmfamily}

\leftmargini=3.8mm
\labelsep=1.2mm

\makeatletter
\l@addto@macro\@listI{\parsep=0mm \itemsep=0mm }
\makeatother

\title{The \textsf{anyfontsize} package}
\author{Péter Szabó \texttt{<pts@fazekas.hu>}}
\date{Sat Feb  3 13:56:49 CET 2007}


\begin{document}

\maketitle

\noindent
\textsf{anyfontsize.sty} is a \LaTeXe\ package that lets the user select any 
font size (via e.\,g.\ \verb+\fontsize{...}{...}\selectfont+), even those 
sizes that are not listed in the \texttt{.fd} file. If such a size is requested, 
\LaTeX\ will search the nearest listed size, and \textsf{anyfontsize} will scale 
that font to the requested size. For a similar functionality that 
works only for the CM fonts, try the \textsf{type1cm.sty} package, or, even 
better, use the new Latin Modern (LM) fonts, which are available at 
any size.

For PostScript \texttt{Type1} fonts (such as Times (with \textsf{times.sty}) or Latin Modern
(with \textsf{lmodern.sty})), you usually don't need \textsf{anyfontsize.sty}, because these
fonts are available at all sizes.

\textsf{anyfontsize.sty} doesn't work well with pdf\/\LaTeX\ + the EC fonts (because
pdf\/\TeX\ won't regenarate missing PK fonts for you). Compile the document
with \texttt{latex(1)} first (which will regenarte the missing PK fonts), and after
that you can use \texttt{pdflatex(1)}.

Test with this document:
%
\begin{verbatim}
\documentclass{article}
\usepackage{anyfontsize}
\usepackage{t1enc}
%\input t1cmr.fd
%\DeclareFontFamily{T1}{cmr}{}
%\DeclareFontShape{T1}{cmr}{m}{n}{<10>ecrm1000}{}
\begin{document}
\fontsize{23}{28}\selectfont foo
\end{document}
\end{verbatim}


\minisec{History:}

\begin{itemize}
\item 2007/02/04: original release
\item 2007/11/22: added space bugfix, as suggested by Christian Schroeppel
\end{itemize}

\end{document}