| 1 |
\documentclass[pagesize=auto]{scrartcl} |
| 2 |
|
| 3 |
\usepackage{fixltx2e} |
| 4 |
\usepackage{lmodern} |
| 5 |
\usepackage[T1]{fontenc} |
| 6 |
\usepackage{textcomp} |
| 7 |
\usepackage[utf8]{inputenc} |
| 8 |
\usepackage{microtype} |
| 9 |
|
| 10 |
\addtokomafont{title}{\rmfamily} |
| 11 |
|
| 12 |
\leftmargini=3.8mm |
| 13 |
\labelsep=1.2mm |
| 14 |
|
| 15 |
\makeatletter |
| 16 |
\l@addto@macro\@listI{\parsep=0mm \itemsep=0mm } |
| 17 |
\makeatother |
| 18 |
|
| 19 |
\title{The \textsf{anyfontsize} package} |
| 20 |
\author{Péter Szabó \texttt{<[email protected]>}} |
| 21 |
\date{Sat Feb 3 13:56:49 CET 2007} |
| 22 |
|
| 23 |
|
| 24 |
\begin{document} |
| 25 |
|
| 26 |
\maketitle |
| 27 |
|
| 28 |
\noindent |
| 29 |
\textsf{anyfontsize.sty} is a \LaTeXe\ package that lets the user select any |
| 30 |
font size (via e.\,g.\ \verb+\fontsize{...}{...}\selectfont+), even those |
| 31 |
sizes that are not listed in the \texttt{.fd} file. If such a size is requested, |
| 32 |
\LaTeX\ will search the nearest listed size, and \textsf{anyfontsize} will scale |
| 33 |
that font to the requested size. For a similar functionality that |
| 34 |
works only for the CM fonts, try the \textsf{type1cm.sty} package, or, even |
| 35 |
better, use the new Latin Modern (LM) fonts, which are available at |
| 36 |
any size. |
| 37 |
|
| 38 |
For PostScript \texttt{Type1} fonts (such as Times (with \textsf{times.sty}) or Latin Modern |
| 39 |
(with \textsf{lmodern.sty})), you usually don't need \textsf{anyfontsize.sty}, because these |
| 40 |
fonts are available at all sizes. |
| 41 |
|
| 42 |
\textsf{anyfontsize.sty} doesn't work well with pdf\/\LaTeX\ + the EC fonts (because |
| 43 |
pdf\/\TeX\ won't regenarate missing PK fonts for you). Compile the document |
| 44 |
with \texttt{latex(1)} first (which will regenarte the missing PK fonts), and after |
| 45 |
that you can use \texttt{pdflatex(1)}. |
| 46 |
|
| 47 |
Test with this document: |
| 48 |
% |
| 49 |
\begin{verbatim} |
| 50 |
\documentclass{article} |
| 51 |
\usepackage{anyfontsize} |
| 52 |
\usepackage{t1enc} |
| 53 |
%\input t1cmr.fd |
| 54 |
%\DeclareFontFamily{T1}{cmr}{} |
| 55 |
%\DeclareFontShape{T1}{cmr}{m}{n}{<10>ecrm1000}{} |
| 56 |
\begin{document} |
| 57 |
\fontsize{23}{28}\selectfont foo |
| 58 |
\end{document} |
| 59 |
\end{verbatim} |
| 60 |
|
| 61 |
|
| 62 |
\minisec{History:} |
| 63 |
|
| 64 |
\begin{itemize} |
| 65 |
\item 2007/02/04: original release |
| 66 |
\item 2007/11/22: added space bugfix, as suggested by Christian Schroeppel |
| 67 |
\end{itemize} |
| 68 |
|
| 69 |
\end{document} |