CTAN Comprehensive TeX Archive Network

maybemath – Make math bold or italic according to context

The \may­bebm and \may­beit macros can be used in maths ex­pres­sions to make the ar­gu­ments type­set as bold or italic re­spec­tively if the sur­round­ing con­text is ap­pro­pri­ate. They are use­ful for writ­ing user macros for use in gen­eral con­texts.

\may­bebm is es­pe­cially ap­pro­pri­ate when sec­tion ti­tles con­tain math ex­pres­sions, since the ti­tle will ap­pear bold but the header and ta­ble of con­tents usu­ally repli­cate the ti­tle in nor­mal width. It uses the bm pack­age to make things bold

\may­beit per­forms a sim­i­lar role to \mathrm{} but the maths ex­pres­sion will be ital­i­cised if the sur­round­ing text is. \may­beit­sub­script is pro­vided to shift sub­scripts to the left if the ex­pres­sion is ital­i­cised.

Ver­sion 2005-02-22
Li­censesThe Project Public Li­cense
Main­tainerAndy Buck­ley
Con­tained inTeX Live as maybe­math
MiKTeX as maybe­math
TopicsFont sel

Down­load the con­tents of this pack­age in one zip archive (60.8k).

Com­mu­nity Com­ments



Here you can see a re­spec­tive di­a­gram in newer browsers.


Guest Book Sitemap Contact Contact Author