Re: [NTG-context] Incompatibility catcodes of characters in ConTeXt and PlainTeX
Dne 27.2.2015 v 19:04 Hans Hagen napsal(a): On 2/27/2015 5:53 PM, Jaroslav Hajtmar wrote: Hello ConTeXist. Petr Olsak (maintainer of Czech/Slovak support for TeX) helped me with simple typing of sign charts. He made a PlainTeX macro who is working too in ConTeXt (see http://tex.stackexchange.com/questions/230273/typing-of-math-sign-charts). Petr Olsak (not ConTeXt even LaTeX user) was modified PlainTeX macro to work in ConTeXt and asked the question: "Does anybody know why ConTeXt sets catcode of & to 12? This means that it is incompatible with plain TeX". Which is imo no big deal. I did not write that he would give redoing some work, after discovering that catcode & is different than in plainTEX. May I therefore ask , what is the reason that has character & catcode other than in Knuth PlainTeX? There are catcodes of other characters incompatible? Because the context table mechanisms don't use & (and never used it) so ther ei sno reason to make & special. The _ and ^ are also normal characters. For now we keep the $ for math (and in math mode the & ^ _ work as expected). Although we're to some extend plain compatible it's not our aim, just like we're not amstex, latex, lamstex or anytex compatible. Ok. Thanks for the explanation. I wrote to Peter that developer context to have a reason, and certainly it would from an ordinary whim not done. Even so, I am very satisfied with the degree of compatibility. Practically all of my old PlainTeX macros in ConTeXt work fine. Thanx Jaroslav Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 ___ ___ 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] siunitx feature in unit module
Hi, with siunitx LaTeX package its possible to obtain physics units like m/s printed in different way changing one option: e.g. \si{\metre\per\second} produce ms^{-1} \si[per-mode=symbol]{\metre\per\second} produce m/s \si[per-mode=fraction]{\metre\per\second} produce \frac{m}{s} have the unit module the same feature? If yes how can obtain the effect (I didn't find nothing on the manual)? Thank you for help -- Andrea De Michele ___ 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] No escape to TeX for inline typing?
On Wed, Wed, 18 Feb 2015 07:03:27 +0100, wrote: > > On Tue, Feb 17, 2015 at 16:30:13 +0100, Wolfgang Schuster < > schuster.wolfg...@gmail.com> wrote: > > > > Am 17.02.2015 um 16:04 schrieb Christoph Reller < > > christoph.rel...@gmail.com>: > > > How do I escape to TeX from inside an inline typing command? It works > > fine from a typing environment. > > > > The \type command doesn’t support a escape function but it can be added > an > > additional line in the code (buff-ver.miv): > > > > \def\buff_verbatim_type_normal#1% > > {\buff_verbatim_initialize_type_two > >\dostarttaggedchained\t!verbatim\currenttype\??type > >\ctxcommand{typestring{ > > data= \!!bs\detokenize{#1}\!!es, > > tab = "\typeparameter\c!tab", > > method = "\typeparameter\c!option", > > +escape = \!!bs\typeparameter\c!escape\!!es, > > nature = "inline", > > compact = "\typeparameter\c!compact", % none | all | last (all > needed > > in tabulate etc for manuals) > > }}% > >\dostoptagged > >\buff_verbatim_right_of_type > >\egroup} > > > > To enable the function add „escape=yes” (or your own delimiters) to > > \definetype. > > > > Wolfgang > > > > Thanks a lot, Wolfgang! > > Dear Hans, > > Can you please add the above patch, or is there a particular reason for not > doing so? > > Kind regards, > > Christoph > Dear Hans, Please say at least "yes" or "no". I am not very keen on maintaining my own version of ConTeXt so I would like to know if I can count on this feature being added. Thanks for your effort and kind regards, Christoph ___ 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 ___