Re: [NTG-context] hyphens in verbatim text
On 7-4-2010 5:04, Hongwen Qiu wrote: -- in verbatim text displayed as a single -, no matter in \type{} or in typing environment or something like that. looks ok here, so example needed - 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 - ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hyphens in verbatim text
于 2010年04月07日 16:12, Hans Hagen 写道: looks ok here, so example needed I found that the problem can only be produced when using the simplefonts module, while loading the adobesongstd font and some other Chinese fonts. So, the problem maybe something's wrong with the simplefonts module. The following is a simple example. \usemodule[simplefonts] \setcjkmainfont[adobesongstd] \starttext \starttyping -- \stoptyping \type{--} \stoptext And if I use \setmainfont[some Western Fonts] instead of the \setcjkmainfont line, the problem still exists. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hyphens in verbatim text
Am 07.04.10 10:59, schrieb Hongwen Qiu: I found that the problem can only be produced when using the simplefonts module, while loading the adobesongstd font and some other Chinese fonts. So, the problem maybe something's wrong with the simplefonts module. The following is a simple example. \usemodule[simplefonts] \setcjkmainfont[adobesongstd] \starttext \starttyping -- \stoptyping \type{--} \stoptext And if I use \setmainfont[some Western Fonts] instead of the \setcjkmainfont line, the problem still exists. Add '\setmonofont[Latin Modern Mono][features=none]' to your file. You can see the effect also without simplefonts: \starttypescript [serif] [mainfont] \setups[font:fallback:serif] \definefontsynonym [Serif] [name:lmroman10regular] [features=default] \stoptypescript \starttypescript [mono] [monofont] \setups[font:fallback:mono] \definefontsynonym [Mono] [name:lmmono10regular] [features=default] % \definefontsynonym [Mono] [name:lmmono10regular] [features=none] \stoptypescript \definetypeface[simplefonts][rm][serif][mainfont][default] \definetypeface[simplefonts][tt][mono] [monofont][default] \setupbodyfont[simplefonts] \starttext \starttyping -- --- \stoptyping \type{--} \stoptext Comment the first synonym in the mono typescript and uncomment the second to get correct dashes in verbatim mode. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] hyphens in verbatim text
于 2010年04月08日 07:14, Wolfgang Schuster 写道: Add '\setmonofont[Latin Modern Mono][features=none]' to your file. Yes, this works. Tanks. ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] hyphens in verbatim text
-- in verbatim text displayed as a single -, no matter in \type{} or in typing environment or something like that. current version: 2010.03.30 18:56 $ luatex --version This is LuaTeX, Version beta-0.60.0-2010040422 ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___