ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Nikolai Weibull <context-list@pcppopper.org>
Subject: Re: Getting { in the input.
Date: Sat, 29 May 2004 11:59:39 +0200	[thread overview]
Message-ID: <20040529095939.GB4113@puritan.pcp.ath.cx> (raw)
In-Reply-To: <m2isegx0cu.fsf@levana.de>

* 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);}

  reply	other threads:[~2004-05-29  9:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-28 11:13 Nikolai Weibull
2004-05-28 11:22 ` Patrick Gundlach
2004-05-29  9:59   ` Nikolai Weibull [this message]
2004-06-01 18:50     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040529095939.GB4113@puritan.pcp.ath.cx \
    --to=context-list@pcppopper.org \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).