Re: [NTG-context] Re: Getting { in the input.

2004-06-01 Thread Hans Hagen
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 escapeto do the same)

\tttf\string{
works quite well unless the scanner wants matching {}'s
as do \texescape \leftargument \rightargument
Hans  

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Getting { in the input.

2004-05-29 Thread Nikolai Weibull
* Patrick Gundlach [EMAIL PROTECTED] [May 28, 2004 13:30]:
 \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);}
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Getting { in the input.

2004-05-28 Thread Patrick Gundlach
Hello Nikolai,

 Again I'm having some problems generating my ASCII table, this time it's
 { and } that are the culprits.  

try one of these:


\starttext
\textbraceleft
\type-{-
\stoptext


Patrick
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context