* prevent new paragraph when changing font
@ 2007-06-13 6:46 zs
2007-06-13 8:04 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: zs @ 2007-06-13 6:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: prevent new paragraph when changing font
2007-06-13 6:46 prevent new paragraph when changing font zs
@ 2007-06-13 8:04 ` Wolfgang Schuster
2007-06-13 8:29 ` zs
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2007-06-13 8:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
2007/6/13, zs <stryhal@sci.ujep.cz>:
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: prevent new paragraph when changing font
2007-06-13 8:04 ` Wolfgang Schuster
@ 2007-06-13 8:29 ` zs
2007-06-13 8:47 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: zs @ 2007-06-13 8:29 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 1025 bytes --]
On Wed, 13 Jun 2007 10:04:50 +0200
"Wolfgang Schuster" <schuster.wolfgang@googlemail.com> wrote:
> 2007/6/13, zs <stryhal@sci.ujep.cz>:
> > 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
[-- Attachment #2: pokus.pdf --]
[-- Type: application/pdf, Size: 21310 bytes --]
[-- Attachment #3: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: prevent new paragraph when changing font
2007-06-13 8:29 ` zs
@ 2007-06-13 8:47 ` Wolfgang Schuster
2007-06-13 20:07 ` zs
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2007-06-13 8:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
2007/6/13, zs <stryhal@sci.ujep.cz>:
>
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: prevent new paragraph when changing font
2007-06-13 8:47 ` Wolfgang Schuster
@ 2007-06-13 20:07 ` zs
0 siblings, 0 replies; 5+ messages in thread
From: zs @ 2007-06-13 20:07 UTC (permalink / raw)
To: ntg-context
On Wed, 13 Jun 2007 10:47:33 +0200
"Wolfgang Schuster" <schuster.wolfgang@googlemail.com> wrote:
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-06-13 20:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-13 6:46 prevent new paragraph when changing font zs
2007-06-13 8:04 ` Wolfgang Schuster
2007-06-13 8:29 ` zs
2007-06-13 8:47 ` Wolfgang Schuster
2007-06-13 20:07 ` zs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).