.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "AUTOINST 1" .TH AUTOINST 1 2023-12-30 fontools "Marc Penninga" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME autoinst \- wrapper around the LCDF TypeTools, for installing and using OpenType fonts in LaTeX. .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBautoinst\fR \fI\-help\fR .PP \&\fBautoinst\fR [\fIoptions\fR] \fBfont(s)\fR .SH DESCRIPTION .IX Header "DESCRIPTION" Eddie Kohler's \fILCDF TypeTools\fR are superb tools for installing OpenType fonts in LaTeX, but they can be hard to use: they need many, often long, command lines and don't generate the \fIfd\fR and \fIsty\fR files LaTeX needs. \&\fBautoinst\fR simplifies the use of the \fITypeTools\fR for font installation by generating and executing all commands for \fIotftotfm\fR, and by creating and installing all necessary \fIfd\fR and \fIsty\fR files. .PP Given a family of font files (in \fIotf\fR or \fIttf\fR format), \&\fBautoinst\fR will create several LaTeX font families: .RS 2 .IP \- 3 Four text families (with lining and oldstyle digits, each in both tabular and proportional variants), all with the following shapes: .RS 3 .RS 2 .IP \fIn\fR 8 .IX Item "n" Roman (i.e., upright) text .IP "\fIit\fR, \fIsl\fR" 8 .IX Item "it, sl" Italic and slanted (sometimes called oblique) text .IP \fIsc\fR 8 .IX Item "sc" Small caps .IP "\fIscit\fR, \fIscsl\fR" 8 .IX Item "scit, scsl" Italic and slanted small caps .IP \fIsw\fR 8 .IX Item "sw" Swash .IP \fInw\fR 8 .IX Item "nw" "Upright swash" .RE .RS 2 .RE .RE .RS 3 .RE .IP \- 3 For each T1\-encoded text family: a family of TS1\-encoded symbol fonts, in roman, italic and slanted shapes. .IP \- 3 Families with superiors, inferiors, numerators and denominators, in roman, italic and slanted shapes. .IP \- 3 Families with "Titling" characters; these \fI"... replace the default glyphs with corresponding forms designed specifically for titling. These may be all-capital and/or larger on the body, and adjusted for viewing at larger sizes"\fR (according to the OpenType Specification). .IP \- 3 An ornament family; also in roman, italic and slanted shapes. .RE .RS 2 .RE .PP Of course, if your fonts don't contain italics, oldstyle digits, small caps etc., the corresponding shapes and families are not created. In addition, the creation of most families and shapes can be controlled by the user (see "COMMAND-LINE OPTIONS" below). .PP These families use the \fIFontPro\fR project's naming scheme: \&\fI\-\fR, where \fI\fR is: .IP \fILF\fR 8 .IX Item "LF" proportional (i.e., figures have varying widths) lining figures .IP \fITLF\fR 8 .IX Item "TLF" tabular (i.e., all figures have the same width) lining figures .IP \fIOsF\fR 8 .IX Item "OsF" proportional oldstyle figures .IP \fITOsF\fR 8 .IX Item "TOsF" tabular oldstyle figures .IP \fISup\fR 8 .IX Item "Sup" superior characters (note that most fonts have only an incomplete set of superior characters: digits, some punctuation and the letters \fIabdeilmnorst\fR; normal forms are used for other characters) .IP \fIInf\fR 8 .IX Item "Inf" inferior characters; usually only digits and some punctuation, normal forms for other characters .IP \fITitl\fR 8 .IX Item "Titl" Titling characters; see above .IP \fIOrn\fR 8 .IX Item "Orn" ornaments .IP "\fINumr\fR, \fIDnom\fR" 8 .IX Item "Numr, Dnom" numerators and denominators .PP The individual fonts are named \fI\-\-\-\fR, where \fI\fR is the same as above (but in lowercase), \&\fI\fR is either empty, "sc" or "swash", and \fI\fR is the encoding (also in lowercase). A typical name in this scheme would be \fIFiraSans\-Light\-osf\-sc\-ly1\fR. .SS "Using the fonts in your LaTeX documents" .IX Subsection "Using the fonts in your LaTeX documents" \&\fBautoinst\fR generates a style file for using the fonts in LaTeX documents, named \fI.sty\fR. This style file also loads the \fIfontenc\fR and \fItextcomp\fR packages, if necessary. To use the fonts, add the command \f(CW\*(C`\eusepackage{\fR\f(CI\fR\f(CW}\*(C'\fR to the preamble of your document. .PP This style file has a few options: .ie n .IP """mainfont""" 4 .el .IP \f(CWmainfont\fR 4 .IX Item "mainfont" Redefine \f(CW\*(C`\efamilydefault\*(C'\fR to make this font the main font for the document. This is a no-op if the font is installed as a serif font; but if the font is installed as a sanserif or typewriter font, this option saves you from having to redefine \f(CW\*(C`\efamilydefault\*(C'\fR yourself. .ie n .IP """lining"", ""oldstyle"", ""tabular"", ""proportional""" 4 .el .IP "\f(CWlining\fR, \f(CWoldstyle\fR, \f(CWtabular\fR, \f(CWproportional\fR" 4 .IX Item "lining, oldstyle, tabular, proportional" Choose which figure style to use. The defaults are "oldstyle" and "proportional" (if available). .ie n .IP """scale=\fI\fR"", ""scale=MatchLowercase""" 4 .el .IP "\f(CWscale=\fR\f(CI\fR\f(CW\fR, \f(CWscale=MatchLowercase\fR" 4 .IX Item "scale=, scale=MatchLowercase" Scale the font by \fI\fR; as an example, \f(CW\*(C`\eusepackage[scale=1.05]{\fR\f(CI\fR\f(CW}\*(C'\fR will increase the font's size by 5%. The special value \f(CW\*(C`MatchLowercase\*(C'\fR may be used to scale the font so that its x\-height matches that of the current main font (which is usually Computer Modern Roman, unless you have loaded another font package before this one). The word "scale" may also be spelled as "scaled". .ie n .IP """medium"", ""book"", ""text"", ""normal"", ""regular""" 4 .el .IP "\f(CWmedium\fR, \f(CWbook\fR, \f(CWtext\fR, \f(CWnormal\fR, \f(CWregular\fR" 4 .IX Item "medium, book, text, normal, regular" Select the weight that LaTeX will use as the "regular" weight. .ie n .IP """heavy"", ""black"", ""extrabold"", ""demibold"", ""semibold"", ""bold""" 4 .el .IP "\f(CWheavy\fR, \f(CWblack\fR, \f(CWextrabold\fR, \f(CWdemibold\fR, \f(CWsemibold\fR, \f(CWbold\fR" 4 .IX Item "heavy, black, extrabold, demibold, semibold, bold" Select the weight that LaTeX will use as the "bold" weight. .PP The last two groups of options will only work if you have the \fImweights\fR package installed. The default here is not to change LaTeX's default, i.e. use the "m" and "b" weights. .PP The style file will also try to load the \fIfontaxes\fR package (on CTAN), which gives easy access to various font shapes and styles. Using the machinery set up by \fIfontaxes\fR, the generated style file defines a number of commands (which take the text to be typeset as argument) and declarations (which don't take arguments, but affect all text up to the end of the current group) to access titling, superior and inferior characters: .PP .Vb 1 \& DECLARATION COMMAND SHORT FORM OF COMMAND \& \& \etlshape \etexttitling \etexttl \& \esupfigures \etextsuperior \etextsup, \etextsu \& \einffigures \etextinferior \etextinf, \etextin .Ve .PP In addition, the existing \f(CW\*(C`\eswshape\*(C'\fR and \f(CW\*(C`\etextsw\*(C'\fR commands are redefined to place swash on \fIfontaxes\fR' secondary shape axis (\fIfontaxes\fR places it on the primary shape axis) to make them behave properly when nested, so that \&\f(CW\*(C`\eswshape\eupshape\*(C'\fR will give upright swash. .PP Finally, the style file redefines Latex's \f(CW\*(C`\etextsuperscript\*(C'\fR and \&\f(CW\*(C`\etextsubscript\*(C'\fR commands to use the fonts' superior and inferior figures, and modifies Latex's footnote mechanism to use \f(CW\*(C`\etextsuperscript\*(C'\fR instead of reduced-size numerals from the regular text font. The old versions of these commands are still available as \&\f(CW\*(C`\etextsuperscript*\*(C'\fR and \f(CW\*(C`\etextsubscript*\*(C'\fR. .PP There are no commands for accessing the numerator and denominator fonts; these can be selected using \fIfontaxes\fR' standard commands, e.g., \f(CW\*(C`\efontfigurestyle{numerator}\eselectfont\*(C'\fR. .PP Once again: all these commands are only generated for existing shapes and number styles; no commands are generated for shapes and styles that are missing from your fonts. Note that all these commands are built on top of \fIfontaxes\fR; if that package cannot be found, you're limited to using lower-level commands from standard NFSS (\f(CW\*(C`\efontfamily\*(C'\fR, \f(CW\*(C`\efontseries\*(C'\fR, \f(CW\*(C`\efontshape\*(C'\fR etc.). .PP By default, \fBautoinst\fR generates text fonts with OT1, LY1 and T1 encodings, and the generated style files use T1 as the default text encoding. Other encodings can be chosen using the \fI\-encoding\fR option (see "COMMAND-LINE OPTIONS" below). .SS Maths .IX Subsection "Maths" This is an experimental feature; \fBUSE AT YOUR OWN RISK!\fR Test the results thoroughly before using them in real documents, and be warned that future versions of \fBautoinst\fR may introduce incompatible changes. .PP The \fI\-math\fR option tells \fBautoinst\fR to generate basic math fonts. When enabled, the generated style file defines a few extra options to access these math fonts: .ie n .IP """math""" 4 .el .IP \f(CWmath\fR 4 .IX Item "math" Use these fonts for the maths in your document. .ie n .IP """mathlining"", ""matholdstyle"", ""mathtabular"", ""mathproportional""" 4 .el .IP "\f(CWmathlining\fR, \f(CWmatholdstyle\fR, \f(CWmathtabular\fR, \f(CWmathproportional\fR" 4 .IX Item "mathlining, matholdstyle, mathtabular, mathproportional" Choose which figure style and alignment to use in maths. The defaults are "mathlining" and "mathtabular". .ie n .IP """mathcal""" 4 .el .IP \f(CWmathcal\fR 4 .IX Item "mathcal" Use the swash characters from these fonts as the \f(CW\*(C`\emathcal\*(C'\fR alphabet. (This option will only exist if your fonts actually contain both swash characters and a \f(CW\*(C`swsh\*(C'\fR feature to access them). .ie n .IP """nomathgreek""" 4 .el .IP \f(CWnomathgreek\fR 4 .IX Item "nomathgreek" Don't redeclare greek letters in math. .ie n .IP """math\-style=\fI