Command/definebodyfontenvironment
< Command
Jump to navigation
Jump to search
Contents
\definebodyfontenvironment
Summary
The command \definebodyfontenvironment is used to set relative font sizes.
Settings
\definebodyfontenvironment[...][...][...=...,...] | |
[...] | name |
[...] | default dimension |
big | dimension number |
small | dimension number |
a | dimension number |
b | dimension number |
c | dimension number |
d | dimension number |
text | dimension number |
x | dimension number |
xx | dimension number |
script | dimension number |
scriptscript | dimension number |
interlinespace | dimension |
em | slanted italic style command |
* | number |
Option | Explanation | ||
---|---|---|---|
name of the set, can be font dependent, e.g. “modern” | |||
default | generally, for all sizes | ||
dimension | settings for a specific body font size | ||
interlinespace |
| ||
em |
|
Description
Set up font scaling for [tf]a-[tf]d
All size settings accept a number (factor) or a dimension (e.g. a size in pt).
- a to d, x and xx are used for \tfa … \tfxx.
- small is e.g. used for footnotes.
- script and scriptscript are used for math.
A default setting looks like:
\definebodyfontenvironment[12pt][ text=12pt, script=9pt, scriptscript=7pt, x=10pt, xx=8pt, big=12pt, small=10pt, ]
The first argument specifies the bodyfont size to which the settings apply. All second parameters are specified in dimensions and tell us more about related sizes.
Find out about the current settings with \showbodyfontenvironment:
Examples
Define a new relative size
\definefontsize[e] \definebodyfontenvironment [default] [b=4,e=10] This will be {\tfb really} {\bfe Huge}
yields
Instead of default
you can also specify the fontsize you’re working with.
Set the interlinespace for a special font size
This is e.g. useful for multi-line titles.
\definebodyfontenvironment[28pt][interlinespace=38pt]