ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Christopher Creutzig <christopher@creutzig.de>
Subject: Re: t-rsteps and starttyping
Date: Thu, 22 Sep 2005 08:56:17 +0200	[thread overview]
Message-ID: <43325591.5000108@creutzig.de> (raw)
In-Reply-To: <1127340987.59949.61.camel@tempete>

David Munger wrote:

> Unfortunately, the \StartLong macro is not meant only for producing
> line-wise content. In the general case, it contains something else than
> just \starttyping block.

 Please try this:

\bgroup

\catcode`\^^M=\active

\gdef\StartLong{\begingroup\obeylines\let^^M^^J\doStartLong}

\egroup

\def\doStartLong#1\StopLong{%
  \setbuffer[x]#1\endbuffer
  \endgroup
  \getbuffer[x]
}


\starttext
\StartLong
\starttyping
abcde
\stoptyping

and now
for something
completely different

\StopLong
\stoptext


Christopher

  reply	other threads:[~2005-09-22  6:56 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-24 16:41 Peter Münster
2005-06-25 11:08 ` Otared KAVIAN
2005-06-25 11:42   ` Peter Münster
2005-06-27 10:56   ` Hans Hagen
2005-06-28 18:16     ` Peter Münster
2005-06-27 22:06 ` David Munger
2005-09-12 17:04   ` Peter Münster
2005-09-12 21:57     ` David Munger
2005-09-21 12:38       ` Christopher Creutzig
2005-09-21 14:00         ` David Munger
2005-09-21 14:13           ` Taco Hoekwater
2005-09-21 22:16             ` David Munger
2005-09-22  6:56               ` Christopher Creutzig [this message]
2005-09-22 15:24                 ` David Munger
2005-09-22 16:56                   ` Hans Hagen
2005-09-22 20:02                     ` David Munger
2005-09-22 20:39                       ` Hans Hagen
2005-09-23  2:34                         ` David Munger
2005-09-23  7:11                           ` Mojca Miklavec
2005-09-23  8:51                         ` Peter Münster
2005-09-23 10:46                           ` Hans Hagen
2005-09-23 13:21                             ` Christopher Creutzig
2005-09-25 21:42                               ` Hans Hagen
2005-09-28 11:13                                 ` Christopher Creutzig
2005-09-26 15:04           ` footnote for author (\thanks) Albrecht Kauffmann
2005-09-26 16:08             ` Adam Lindsay
2005-09-26 15:34           ` footnote numbering Albrecht Kauffmann

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=43325591.5000108@creutzig.de \
    --to=christopher@creutzig.de \
    --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).