* How to place a verbatim environment in the text such that the following paragraph is not indented?
@ 2014-05-07 10:46 Thomas Möbius
2014-05-07 12:27 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Möbius @ 2014-05-07 10:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear list,
how do I place a verbatim environment in the text such that the
following paragraph is not indented? I expect the environment to
behave the same as the formula-environment. How can I achieve this?
--- minimal example ---
\starttext
\setupindenting[1.3em]
\setupindenting[yes]
\definetyping
[R]
[options=R,
style={\ss},
before={\startframedtext
[width=.975\makeupwidth,
frame=off,
bottomframe=on,
topframe=on,
background=screen,
backgroundscreen=.95]},
after={\stopframedtext},
bodyfont=9pt,
margin=1.3em]
\input ward
You can use the following syntax
\startR
f <- function(x) x^2
\stopR
to define a function. (Begging of line should not be indented.)
\input ward
Have a look at
\startformula
f(x) = x^2
\stopformula
where $f$ is a function. (No indent as expected.)
\input ward
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to place a verbatim environment in the text such that the following paragraph is not indented?
2014-05-07 10:46 How to place a verbatim environment in the text such that the following paragraph is not indented? Thomas Möbius
@ 2014-05-07 12:27 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2014-05-07 12:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 07.05.2014 um 12:46 schrieb Thomas Möbius <kontakt@thomasmoebius.de>:
> Dear list,
>
> how do I place a verbatim environment in the text such that the
> following paragraph is not indented? I expect the environment to
> behave the same as the formula-environment. How can I achieve this?
Add “indentnext=auto” to your \definetyping setups.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-07 12:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-07 10:46 How to place a verbatim environment in the text such that the following paragraph is not indented? Thomas Möbius
2014-05-07 12:27 ` Wolfgang Schuster
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).