* \setuptyping
@ 2003-09-17 21:54 Jean-Pierre Le Narzul
2003-09-17 22:18 ` \setuptyping Patrick Gundlach
0 siblings, 1 reply; 6+ messages in thread
From: Jean-Pierre Le Narzul @ 2003-09-17 21:54 UTC (permalink / raw)
Hi,
For typing Java code in a context document, I use \starttyping ...
\stoptyping.
I have a problem when I configure \setuptyping in the following way :
\setuptyping[typing][color=black,style=\ss,escape=/,option=commands]
If I put characters like { or _ in my source (between \starttyping and
\stoptyping)
, they do not appear in the produced document
{ character is replaced by - character
_ character is replaced by ' character
etc....
If I configure setuptyping in the following way
\setuptyping[typing][color=black,style=\tt,escape=/,option=commands]
(just change \ss to \tt)
everything is ok !
Any idea ?
thanks in advance for any help
jp
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \setuptyping
2003-09-17 21:54 \setuptyping Jean-Pierre Le Narzul
@ 2003-09-17 22:18 ` Patrick Gundlach
2003-09-17 22:41 ` \setuptyping Jean-Pierre Le Narzul
0 siblings, 1 reply; 6+ messages in thread
From: Patrick Gundlach @ 2003-09-17 22:18 UTC (permalink / raw)
Hi,
Jean-Pierre Le Narzul <lenarzul@free.fr> writes:
> Any idea ?
Yes: don't use computer-modern fonts. They don't have { } and _
except for typewriter.
Use any other font encoded in ec or texnansi or whatever encoding.
See for example latin-modern:
==================================================
\starttext
\setuptyping[typing][color=black,style=\ss,escape=/,option=commands]
\starttyping
hello_world {brace}
\stoptyping
\setupencoding [default=ec]
\usetypescript [all] [latin-modern] [\defaultencoding]%
\setupbodyfont[reset]%
\setupbodyfont[cmr]%
\starttyping
hello_world {brace}
\stoptyping
\stoptext
==================================================
Patrick
PS: and please (!!!) provide a minimal but complete working (or
no-working) example next time. It would save the others some time.
--
Silent is the goldfish in its bowl
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: \setuptyping
2003-09-17 22:18 ` \setuptyping Patrick Gundlach
@ 2003-09-17 22:41 ` Jean-Pierre Le Narzul
2003-09-18 7:07 ` \setuptyping Patrick Gundlach
0 siblings, 1 reply; 6+ messages in thread
From: Jean-Pierre Le Narzul @ 2003-09-17 22:41 UTC (permalink / raw)
Hi,
Thanks for your explanation.
I understand the problem now !
But unfortunately, the example you provide is not working for me.
The pdf file displays the wrong characters for both \starttyping
\stoptyping ...
jp
PS: sorry for not providing an example in my first mail. I am using
yours now ....
Le jeudi, 18 sep 2003, à 00:18 Europe/Paris, Patrick Gundlach a écrit :
> Hi,
>
> Jean-Pierre Le Narzul <lenarzul@free.fr> writes:
>
>> Any idea ?
>
> Yes: don't use computer-modern fonts. They don't have { } and _
> except for typewriter.
>
> Use any other font encoded in ec or texnansi or whatever encoding.
> See for example latin-modern:
>
>
> ==================================================
> \starttext
>
> \setuptyping[typing][color=black,style=\ss,escape=/,option=commands]
>
> \starttyping
> hello_world {brace}
> \stoptyping
>
> \setupencoding [default=ec]
> \usetypescript [all] [latin-modern] [\defaultencoding]%
> \setupbodyfont[reset]%
> \setupbodyfont[cmr]%
>
> \starttyping
> hello_world {brace}
> \stoptyping
>
> \stoptext
> ==================================================
>
> Patrick
>
> PS: and please (!!!) provide a minimal but complete working (or
> no-working) example next time. It would save the others some time.
>
> --
> Silent is the goldfish in its bowl
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: \setuptyping
2003-09-17 22:41 ` \setuptyping Jean-Pierre Le Narzul
@ 2003-09-18 7:07 ` Patrick Gundlach
2003-09-18 12:50 ` Re: latin-modern font lenarzul
0 siblings, 1 reply; 6+ messages in thread
From: Patrick Gundlach @ 2003-09-18 7:07 UTC (permalink / raw)
Jean-Pierre Le Narzul <lenarzul@free.fr> writes:
Hello,
> Thanks for your explanation.
> I understand the problem now !
>
> But unfortunately, the example you provide is not working for me.
> The pdf file displays the wrong characters for both \starttyping
> \stoptyping ...
Perhaps you don't have latinmodern installed? Visit your local ctan
node and look for fonts/lm. Or try another font with a "good"
encoding.
Patrick
--
Silent is the goldfish in its bowl
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Re: latin-modern font
2003-09-18 7:07 ` \setuptyping Patrick Gundlach
@ 2003-09-18 12:50 ` lenarzul
2003-09-19 9:35 ` Patrick Gundlach
0 siblings, 1 reply; 6+ messages in thread
From: lenarzul @ 2003-09-18 12:50 UTC (permalink / raw)
I always had problems with changing fonts ....
As you suggested, lm is probably not installed on my
system ...
So, I downloaded the lm.tar.gz file from CTAN and got
the following hierachy
atacama[14:42]%ls lm/fonts/
afm/ tfm/ type1/
What should I do for using this font under Context ?
Do I need to write typescript files or is it possible
to use it in a very simple manner ?
Thanks again for your help
jp
Quoting Patrick Gundlach <pg@levana.de>:
> Jean-Pierre Le Narzul <lenarzul@free.fr> writes:
>
> Hello,
>
> > Thanks for your explanation.
> > I understand the problem now !
> >
> > But unfortunately, the example you provide is not working for me.
> > The pdf file displays the wrong characters for both \starttyping
> > \stoptyping ...
>
> Perhaps you don't have latinmodern installed? Visit your local ctan
> node and look for fonts/lm. Or try another font with a "good"
> encoding.
>
> Patrick
>
>
> --
> Silent is the goldfish in its bowl
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
--
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-09-19 9:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-17 21:54 \setuptyping Jean-Pierre Le Narzul
2003-09-17 22:18 ` \setuptyping Patrick Gundlach
2003-09-17 22:41 ` \setuptyping Jean-Pierre Le Narzul
2003-09-18 7:07 ` \setuptyping Patrick Gundlach
2003-09-18 12:50 ` Re: latin-modern font lenarzul
2003-09-19 9:35 ` Patrick Gundlach
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).