Debian Codegraph @

texmf-dist/doc/latex/maybemath/README

raw
1 maybemath LaTeX style, by Andy Buckley <[email protected]>
2 --------------------------------------------------------------
3
4 maybemath provides LaTeX macros for making math bold, upright, italic
5 or sans-serif according to context.
6
7 The \maybebm and \maybeit macros can be used in math expressions to make
8 the arguments typeset as bold or italic respectively if the surrounding
9 context is appropriate. They are useful for writing user macros for use
10 in general contexts.
11
12 \maybebm is especially appropriate when section titles contain math
13 expressions, since the title will appear bold but the header and table
14 of contents usually replicate the title in normal width.
15
16 \maybeit performs a similar role to \mathrm{} but the math expression will
17 be italicised if the surrounding text is. \maybeitsubscript is provided to
18 shift subscripts to the left if the expression is italicised.
19
20 \maybesf makes the argument typeset with \mathsf{} if the surrounding text
21 context is sans-serif. Note that there is no sans-serif italic math font,
22 so this command is not compatible with any italic-forcing commands.
23
24 A convenience macro, \maybebmsf is available for handling boldness and
25 sans-serif issues at the same time, as these are probably the most frequent
26 problematic environments. Other combined handling is possible with nested
27 use of the above commands.
28
29 Thanks to Viet-Trung Luu on comp.text.tex for providing the first steps
30 to solving this problem.
31
32 This material is subject to the LaTeX Project Public License.
33 See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for
34 the details of that license.