spurious line break in \switchtobodyfont
![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
Hello, there is a misterious linebreak in the second example: abc\switchtobodyfont[ss]def abc\switchtobodyfont[,,ss]def Is this ConTeXt's fault or mine? Mojca
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Mojca Miklavec wrote:
Hello,
there is a misterious linebreak in the second example:
abc\switchtobodyfont[ss]def
abc\switchtobodyfont[,,ss]def
Is this ConTeXt's fault or mine?
lucky you: \def\dodosetfont#1#2% #1 = set/switch state / test added to make it mojca proof {\doifsomething{#2}{\dododosetfont{#1}{#2}{\showmessage\m!fonts4{#2}}}} Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
On 4/26/06, Hans Hagen wrote:
Mojca Miklavec wrote:
Hello,
there is a misterious linebreak in the second example:
abc\switchtobodyfont[ss]def
abc\switchtobodyfont[,,ss]def
Is this ConTeXt's fault or mine?
lucky you:
\def\dodosetfont#1#2% #1 = set/switch state / test added to make it mojca proof {\doifsomething{#2}{\dododosetfont{#1}{#2}{\showmessage\m!fonts4{#2}}}}
Hans
Thanks! That was (at least partially) one of gnuplot's faults, not mine ;) Mojca
participants (2)
-
Hans Hagen
-
Mojca Miklavec