ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Re: referencing line numbers of a typing environment
Date: Tue, 08 Apr 2003 18:37:12 +0200	[thread overview]
Message-ID: <5.2.0.9.1.20030408183544.0149c920@server-1> (raw)
In-Reply-To: <20030408.165255.86396563.MarkoSchuetz@web.de>

At 16:52 08/04/2003 +0200, you wrote:
>Just in case anyone else runs into the same problem.
>
>From: Marko Schuetz <MarkoSchuetz@web.de>
>Subject: Re: [NTG-context] Re: referencing line numbers of a typing 
>environment
>Date: Mon, 07 Apr 2003 20:22:50 +0200 (CEST)
>
> > It's not my environment...
> >
> > I narrowed it down to this
> >
> > \starttext
> >
> > \setuptyping[option=commands]
> > \starttyping
> >       cout << "Test!";
> > \stoptyping
> >
> > \stoptext
> >
> > This does not work here. TeX stops at a *-prompt.
>
>This works:
>
>\starttext
>\def\cout{<<}
>\setuptyping[option=commands]
>\starttyping
>     cout /cout "Test";
>\stoptyping
>\stoptext
>
>and so does this:
>
>\starttext
>\starttyping
>     cout << "Test";
>\stoptyping
>\stoptext
>
>and also this: (where reserve.cpp contains <<)
>
>\starttext
>\setuptyping[option=commands]
>\typefile{reserve.cpp}
>\stoptext
>
>but this does not work:
>
>\starttext
>\setuptyping[option=commands]
>\starttyping
>     cout << "Test";
>\stoptyping
>\stoptext

this is a side effect:

option=commands =>

   <</bf bold>>

so, in commands mode the << and >> act as braces

option=slanted =>

   <<this comes out slanted>>

and here it does a font switch.

Maybe we need another option -)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

  reply	other threads:[~2003-04-08 16:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-05 18:12 Marko Schuetz
2003-04-07 17:00 ` Patrick Gundlach
2003-04-07 17:35   ` Marko Schuetz
2003-04-07 18:22     ` Marko Schuetz
2003-04-08 14:52       ` Marko Schuetz
2003-04-08 16:37         ` Hans Hagen [this message]
2003-04-08 17:00           ` Marko Schuetz
2003-04-08 17:49             ` Patrick Gundlach

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=5.2.0.9.1.20030408183544.0149c920@server-1 \
    --to=pragma@wxs.nl \
    --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).