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

  • Before the paragraph, that should not have an indent, wirte \noindent. This should be it. – DonFangzahn May 26 at 13:41
  • Indeed, but I am looking for an automatic solution. Something like indentnext=no. – Denis May 26 at 13:46
  • Potential duplicate of tex.stackexchange.com/questions/282559/… but I have not tested if it will work with context – KJO May 26 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 May 26 at 14:04
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

  • 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 May 26 at 19:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.