ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Texts after typing environment
@ 2006-09-27 15:50 Zhichu Chen
  2006-09-29  0:57 ` Mojca Miklavec
  0 siblings, 1 reply; 3+ messages in thread
From: Zhichu Chen @ 2006-09-27 15:50 UTC (permalink / raw)


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.

Have I expressed my problem clearly?


yours,
chen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Texts after typing environment
  2006-09-27 15:50 Texts after typing environment Zhichu Chen
@ 2006-09-29  0:57 ` Mojca Miklavec
  2006-09-29  3:56   ` Zhichu Chen
  0 siblings, 1 reply; 3+ messages in thread
From: Mojca Miklavec @ 2006-09-29  0:57 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Texts after typing environment
  2006-09-29  0:57 ` Mojca Miklavec
@ 2006-09-29  3:56   ` Zhichu Chen
  0 siblings, 0 replies; 3+ messages in thread
From: Zhichu Chen @ 2006-09-29  3:56 UTC (permalink / raw)


I've already solved it now. Just
\setuptyping[after=\noindent]
is perfectly for me.

Thank you anyway.

On 9/29/06, Mojca Miklavec <mojca.miklavec.lists@gmail.com> wrote:
> 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
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-29  3:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-27 15:50 Texts after typing environment Zhichu Chen
2006-09-29  0:57 ` Mojca Miklavec
2006-09-29  3:56   ` Zhichu Chen

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).