* Getting { in the input.
@ 2004-05-28 11:13 Nikolai Weibull
2004-05-28 11:22 ` Patrick Gundlach
0 siblings, 1 reply; 4+ messages in thread
From: Nikolai Weibull @ 2004-05-28 11:13 UTC (permalink / raw)
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);}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Getting { in the input.
2004-05-28 11:13 Getting { in the input Nikolai Weibull
@ 2004-05-28 11:22 ` Patrick Gundlach
2004-05-29 9:59 ` Nikolai Weibull
0 siblings, 1 reply; 4+ messages in thread
From: Patrick Gundlach @ 2004-05-28 11:22 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Getting { in the input.
2004-05-28 11:22 ` Patrick Gundlach
@ 2004-05-29 9:59 ` Nikolai Weibull
2004-06-01 18:50 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Nikolai Weibull @ 2004-05-29 9:59 UTC (permalink / raw)
* Patrick Gundlach <pg@levana.de> [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);}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: Getting { in the input.
2004-05-29 9:59 ` Nikolai Weibull
@ 2004-06-01 18:50 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2004-06-01 18:50 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-06-01 18:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-28 11:13 Getting { in the input Nikolai Weibull
2004-05-28 11:22 ` Patrick Gundlach
2004-05-29 9:59 ` Nikolai Weibull
2004-06-01 18:50 ` Hans Hagen
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).