prevent new paragraph when changing font
Hello, is there any way to prevent ending the paragraph when changing the font? I want to keep this in one paragraph: Some text \switchtobodyfont[def]another text in different font. But when after typesetting I get: Some text<new paragraph> another text in different font. Thanks Zdenek
2007/6/13, zs
Hello,
is there any way to prevent ending the paragraph when changing the font?
I want to keep this in one paragraph:
Some text \switchtobodyfont[def]another text in different font.
But when after typesetting I get:
Some text<new paragraph> another text in different font.
Thanks
Zdenek
Hi, I don't what you're doing wrong, the following works for me: \usetypescript[palatino][texnansi] \setupbodyfont[modern] \starttext Hello world! \switchtobodyfont[palatino]% Hello world! \stoptext Can you make a example to show your problem. Wolfgang
On Wed, 13 Jun 2007 10:04:50 +0200
"Wolfgang Schuster"
2007/6/13, zs
: Hello,
is there any way to prevent ending the paragraph when changing the font?
I want to keep this in one paragraph:
Some text \switchtobodyfont[def]another text in different font.
But when after typesetting I get:
Some text<new paragraph> another text in different font.
Thanks
Zdenek
Hi,
I don't what you're doing wrong, the following works for me:
\usetypescript[palatino][texnansi] \setupbodyfont[modern] \starttext Hello world! \switchtobodyfont[palatino]% Hello world! \stoptext
Can you make a example to show your problem.
Thank you for interest. Here is the example: \usetypescript[modern] \definetypeface [def] [latin-modern] [default] \setupbodyfont[modern] \starttext Hello world!\switchtobodyfont[def]Hello world! \stoptext Result(pdf) is attached. ZS
2007/6/13, zs
Here is the example:
\usetypescript[modern] \definetypeface [def] [latin-modern] [default] \setupbodyfont[modern] \starttext Hello world!\switchtobodyfont[def]Hello world! \stoptext
Result(pdf) is attached.
ZS
Hi, the problem is your definetypeface definition. Replace your current one with the next one: \definetypeface[def][rm][serif][latin-modern][default][encoding=texnansi] Wolfgang
On Wed, 13 Jun 2007 10:47:33 +0200
"Wolfgang Schuster"
Hi,
the problem is your definetypeface definition. Replace your current one with the next one:
\definetypeface[def][rm][serif][latin-modern][default][encoding=texnansi]
Wolfgang
...thanks, that's it, although I'm not sure what is wrong with "\definetypeface [def] [latin-modern] [default]" I got no error. Why a new paragraph is made when I use that command? It might be useful for somebody to know why I used such such command: I use DejaVu TTF fonts in my document. I'm rather satisfied with it, but there is one problem probably caused by my not perfect typescriptfiles: when I want to typeset greek capital letter, i.e. $\Omega$, I get nothing useful. I found something about that problem in conference archive, but I didn't really (want to?) understand pretty uneasy solution. I uncovered that when I temporarily switch to default latin modern font ({\switchtobodyfont[def]$\Omega$}) everything works fine. -- Conclusion -- Using command: "\definetypeface [def] [latin-modern] [default]" causes problem with unwanted new paragraph. Command: \definetypeface[def][rm][serif][latin-modern][default][encoding=texnansi] switches correctly to latin modern but is not the solution to trouble with $\Omega$ not being typeset. Finally: \definetypeface[def][mm][latin-modern][default][encoding=texnansi] seems works really fine - so far :-) Regards Zdenek
participants (2)
-
Wolfgang Schuster
-
zs