3

Let's say I have a setuo foo, and I always want to suppress indentation for the next paragraph? Is there a way to achieve this?

\startsetups foo
    FOO
\stopsetups

\setupindenting[yes,medium,next]

\starttext

First paragraph. Not indented.

This paragraph should be indented.

\directsetup{foo}

This paragraph should not be indented.

\stoptext

4
  • Before the paragraph, that should not have an indent, wirte \noindent. This should be it. Commented May 26, 2019 at 13:41
  • Indeed, but I am looking for an automatic solution. Something like indentnext=no.
    – Denis
    Commented May 26, 2019 at 13:46
  • Potential duplicate of tex.stackexchange.com/questions/282559/… but I have not tested if it will work with context
    – user170109
    Commented May 26, 2019 at 13:54
  • No. Not a duplicate. The linked question is about indentation in environments, mine is about indentation after a setup. Besides, the solution both apply only to LaTeX.
    – Denis
    Commented May 26, 2019 at 14:04

1 Answer 1

4

This seems to work:

\startsetups foo
    FOO
    \noindentation
\stopsetups

\setupindenting[yes,medium,next]

\starttext

First paragraph. Not indented.

This paragraph should be indented.

\directsetup{foo}

This paragraph should not be indented.

This paragraph should be indented.

\stoptext

enter image description here

1
  • It works. Too easy -- I was looking for something more complicated. I should have tried that before asking the question, but I didn't expect this to work (just like \noindent would not have worked for this in LaTeX.) Let's hope this is a feature and stays...
    – Denis
    Commented May 26, 2019 at 19:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .