ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
Subject: Re: Texts after typing environment
Date: Fri, 29 Sep 2006 02:57:26 +0200	[thread overview]
Message-ID: <6faad9f00609281757v41bc4748hdc833cae6bd52424@mail.gmail.com> (raw)
In-Reply-To: <769ba7780609270850j503ba7ffwc2e9f911fd919cab@mail.gmail.com>

On 9/27/06, Zhichu Chen wrote:
> Hello everybody,
>
> If I type:
>
> -------------------------------------------
> \starttyping
> some verbatim texts
> \stoptyping
> --------------------------------------------
>
> does ConTeXt treat it as a complete paragraph?
> In LaTeX, when I type:
>
> --------------------------------------
> \begin{verbatim}
> some texts here
> \end{verbatim}
> some other texts
> \begin{verbatim}
> some texts here
> \end{verbatim}
>
> other materials
> ---------------------------------------
>
> The output will be
>
> ---------------------------------------
> some texts here
> some other texts
> some texts here
>     other meterials -----> This line is indented !!
> ----------------------------------------
>
> What should I do in ConTeXt? I really want to control this. but
> whether I leave a blank line after \stoptyping or not, nothing
> changed.

In LaTeX paragraph indenting is turned on by default. In ConTeXt you
have to turn it on first, for example with
    \setupindenting[first,big,yes]

After that you probably have contrary problems: you have to turn
indenting explicitely off if you don't want "some other texts" to be
indented:

\starttyping
some texts here
\stoptyping
\noindent some other texts
\starttyping
some texts here
\stoptyping

other materials

But this should be configurable somehow. (I bet it is.) I tried some
of \setuptyping options, but none of those I tried was of any help.
Perhaps some other users may help figuring out the proper option if
available.

As a workaround this might help temporary.

Mojca

  reply	other threads:[~2006-09-29  0:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-27 15:50 Zhichu Chen
2006-09-29  0:57 ` Mojca Miklavec [this message]
2006-09-29  3:56   ` Zhichu Chen

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=6faad9f00609281757v41bc4748hdc833cae6bd52424@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --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).