fundamental problem with headings
Hi, there seems to be a fundamental problem with headings - or at least I have :( Each kind of "emphasizing" - like \it \bf \cap \sc etc. - lets the respective phrase fall back to the documents bodyfont (see example below). How can I avoid this bug? Do I use wrong code? Thank you, Steffen \starttext \def\Textit{\groupedcommand\it\/} \definefont[SectionFont][Serif at 20pt] \def\SectionStyle{\SectionFont\setupinterlinespace[line=30pt]} \setuphead[section] [alternative=paragraph,style=\SectionStyle] text \section{heading \Textit{italic} heading} text \stoptext
Steffen Wolfrum wrote:
Hi,
Each kind of "emphasizing" - like \it \bf \cap \sc etc. - lets the respective phrase fall back to the documents bodyfont (see example below).
How can I avoid this bug?
not a bug, this is the expected behaviour of \definefont.
Do I use wrong code?
Yes. \definefont defines a single font (hence it's name). What you actually need is a full-blown bodyfont switch: \def\SectionStyle{% \switchtobodyfont[rm,20pt] \setupinterlinespace[line=30pt] } Greetings, Taco
Hi Steffen Hm, so I misinterpreted your first mail. Indeed, the emphasized part is at bodyfontsize... Sorry for the wrong answer Willi Taco Hoekwater wrote:
Steffen Wolfrum wrote:
Hi,
Each kind of "emphasizing" - like \it \bf \cap \sc etc. -
lets the respective phrase fall back to the documents bodyfont (see example below).
How can I avoid this bug?
not a bug, this is the expected behaviour of \definefont.
Do I use wrong code?
Yes. \definefont defines a single font (hence it's name).
What you actually need is a full-blown bodyfont switch:
\def\SectionStyle{% \switchtobodyfont[rm,20pt] \setupinterlinespace[line=30pt] }
Greetings, Taco
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Hi Steffen, I used your code here just adding \setupoutput[pdftex] The result seems ok. to me. See attachment. Running: TeXExec 5.2.3 pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2c 7.5.3) ConTeXt ver: 2005.01.13 fmt: 2005.1.18 int: english mes: english Willi Steffen Wolfrum wrote:
Hi,
there seems to be a fundamental problem with headings - or at least I have :(
Each kind of "emphasizing" - like \it \bf \cap \sc etc. - lets the respective phrase fall back to the documents bodyfont (see example below).
How can I avoid this bug? Do I use wrong code?
Thank you,
Steffen
\starttext
\def\Textit{\groupedcommand\it\/} \definefont[SectionFont][Serif at 20pt] \def\SectionStyle{\SectionFont\setupinterlinespace[line=30pt]} \setuphead[section] [alternative=paragraph,style=\SectionStyle]
text
\section{heading \Textit{italic} heading}
text
\stoptext
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (3)
-
Steffen Wolfrum
-
Taco Hoekwater
-
Willi Egger