# [NTG-context] fundamental problem with headings

Fri Mar 11 00:17:59 CET 2005

Steffen Wolfrum said this at Thu, 10 Mar 2005 23:11:41 +0100:

>But if the heading should be set in general in a bold face what do I
>use instead of \rm so that italic parts of he heading will be typeset
>in bold-italic (and \sc parts to bold-smallcaps)?
>I guess something (next to serif, sans, mono, ...) like serifbold
>(\brm?) should be defined in my typescript?

I'm a bit confused why you're not using \em in this situation, as it
adapts to both bold and roman contexts. If you dislike that it defaults
to slanted, then there's:

\setupbodyfontenvironment[default][em=italic]
{\bf Hello \em World} Hello \em World

switches, then you could look at these goodies already defined in font-ini:

%D \macros
%D   {emphbf,emphit,emphsl,emphtf}
%D
%D The next emphasis alternatives are for \THANH. They adapt
%D their style as good as possible.

\def\emphbf{\groupedcommand{\bf\def\emphit{\bi}\def\emphsl{\bs}}{}}
\def\emphit{\groupedcommand{\it\def\emphbf{\bi}\def\emphsl{\sl}}{}}
\def\emphsl{\groupedcommand{\sl\def\emphbf{\bs}\def\emphit{\it}}{}}
\def\emphtf{\groupedcommand{\tf\def\e
mphbf{\bf}\def\emphit{\it}\def\emphsl{\sl}}
{}}

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay, Computing Dept.     atl at comp.lancs.ac.uk
Lancaster University, InfoLab21        +44(0)1524/510.514
Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8582555055618286, "perplexity": 20398.007687174093}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-42/segments/1414637901687.31/warc/CC-MAIN-20141030025821-00069-ip-10-16-133-185.ec2.internal.warc.gz"}