![]() |
| Home > Software > |
TeX, LaTeX, etc.: Frequently Asked Questions with Answers [Monthly] |
Section 3 of 3 - Prev - Next
All sections - 1 - 2 - 3
flush margins and most other styles have followed, so this may not
work in many cases. You should definitely avoid hyphenation in titles.
To force line breaks in a title, but not in the table of contents,
use the optional argument for \section:
\section[This is the Title]{This is\\ the Title}
One benefit of this is that \\ is safe and no \protect is needed.
49) In LaTeX, how do I number equations by section?
In a style file (or between \makeatletter ... \makeatother, see
question 6), put:
\renewcommand\theequation{\thesection.\arabic{equation}}
\@addtoreset{equation}{section}
If you have chapters with a preamble that comes before the first
section, you should not put equations there, as you will get funny
numbers like 3.0.1. There are also two style files available from
any CTAN site called seceqn.sty and apeqnum.sty. The first numbers
equations by section, and the second gives individual equation
numbers to equations in the appendix.
50) What is the fontinst package?
Fontinst is a package written and supported by Alan Jeffrey. It
makes the inclusion of PostScript fonts in LaTeX very easy by
providing a set TeX macros which allows users to install virtual
fonts. It can convert fonts from Adobe Font Metric (afm) or TeX
Property List (pl) format into Virtual Property List (vpl)
format. These Virtual Fonts (vfs) can then be used by your
favorite device driver, such as dvips. Fontinst is available from
any CTAN archive (see question 22) in ./fonts/utilities/fontinst.
The package is written in TeX, for maximum portability at the cost
of speed. It supports the OT1 (Computer Modern) and T1 (Cork)
encodings, and allows fonts to be generated in an arbitrary
encoding, with arbitrary `fake' characters---for example the `ij'
character can be faked if necessary by putting an `i' next to a
`j'. In addition, it can be customized by the user to deal with
arbitrary font encodings.
The package allows kerning to be shared between characters, for
example `ij' can be kerned on the left as if it were an `i' and on
the right as if it were a `j'. This is useful, since many
PostScript fonts only include kerning information for characters
without diacriticals. Fontinst allows more than one PostScript
font to contribute to a TeX font, for example the `ffi' ligatures
for a font can be taken from the Expert encoding, if you have it,
and it automatically generates an fd file for use with LaTeX. You
can generate math fonts with nextlarger, varchar, and arbitrary
font dimensions. Caps and small caps fonts can be generated with
letter spacing and kerning.
You use fontinst by writing a short LaTeX source file describing
which fonts you want to combine, which transformations are
necessary and what fonts you want to have finally. There are many
contributions that can serve as a base for you to get started with
fontinst. Running LaTeX on this source file will then produce the
desired font definition and property files.
--
Bobby Bodenheimer @hot.caltech.edu
// ARPA : bobby@hot.caltech.edu |
// BITNET: bobby@caltech.bitnet | Woof!
// UUCP : {amdahl,ames!elroy}!cit-vax!bobby |
Section 3 of 3 - Prev - Next
All sections - 1 - 2 - 3
| Back to category Software - Use Smart Search |
| Home - Smart Search - About the project - Feedback |
© allanswers.org | Terms of use