Again I'm having some problems generating my ASCII table, this time it's { and } that are the culprits. I'm currently using $\{$ and $\}$ for them, but it would be great if there was a way to get them rendered like the other characters that have \type{...} surrounding them. There doesn't seem to be an easy way to do this...is there perhaps a hard one? nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
* Patrick Gundlach
\starttext \textbraceleft
in enco-def.tex this is \definecharacter textbraceleft {\mathematics{\{}} which means wrapping {\tt ...} around it doesn't give a teletyped brace but a nice mathematics one.
\type-{-
This doesn't seem to work well inside a table: ! Missing { inserted. <inserted text> { <to be read again> & \normalTABLEquote ->\unskip \!ttRightGlue & \omit \tablepos & \NC ...rentTABLEcolumn \plusone \normalTABLEquote \fi l.754 \NC \type{|} \NC $\}$ \NC \type{~} \NC {\tt DEL} \NC\AR ? where my .tex source reads: \NC 120 \NC \type{x} \NC \type{y} \NC \type{z} \NC \type-{- \NC \type{|} \NC $\}$ \NC \type{~} \NC {\tt DEL} \NC\AR
\stoptext
It would be great if one could get the second version (\type-{-) working inside a table, as this is the prettier solution. Currently I just did my own \definecharacter textbraceleft 123 (which some of the other enco-*.tex files did) for this and wrapped that inside a {\tt ...}: {\tt \textbraceleft} Anyway, thanks for the suggestions, nikolai P.S. Here's a small testfile: \starttext \starttable[|c|] \NC \type-{- \NC\AR \stoptable \stoptext D.S. -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
At 11:59 29/05/2004, you wrote:
* in enco-def.tex this is \definecharacter textbraceleft {\mathematics{\{}} which means wrapping {\tt ...} around it doesn't give a teletyped brace but a nice mathematics one.
\type-{-
the problem is in (1) not all fonts having all chars [esp cmr have gaps] and (2) handling catcodes when args are passed around, in tables this is very nasty (and related to typeset tex in its own language; compare xml where you have to escape < > " to do the same) \tttf\string{ works quite well unless the scanner wants matching {}'s as do \texescape \leftargument \rightargument Hans
participants (3)
-
Hans Hagen
-
Nikolai Weibull
-
Patrick Gundlach