Texts after typing environment
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
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
I've already solved it now. Just
\setuptyping[after=\noindent]
is perfectly for me.
Thank you anyway.
On 9/29/06, Mojca Miklavec
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
participants (2)
-
Mojca Miklavec
-
Zhichu Chen