# How to indent every paragraph?

How do I indent every paragraph? Currently, if I use `indent-paragraphs` package, the paragraphs following other environments (e.g., section headings, math expressions) are not indented.

I know this is possible because the built-in amsart style indents all paragraphs. However, I don’t want to use this style.

This seems to work

`<assign|par-first|<macro|12pt>>`

I copied it from the amsart style. I do not know why it is `<assign|par-first|<macro|12pt>>` and not `<assign|par-first|12pt>`. Perhaps @jeroen or @mgubi or @sadhen know?

Edit: after additional investigations, you need to redefine as well `sectional-normal` and `sectional-centered`, which in e.g. the generic style are

``````<assign|sectional-normal|<macro|name|<wide-normal|<arg|name><no-page-break><sectional-no-indent>>>>

<assign|sectional-centered|<macro|name|<wide-centered|<arg|name><no-page-break><sectional-no-indent>>>>
``````

as

``````<assign|sectional-normal|<macro|name|<wide-normal|<arg|name><no-page-break>>>>

<assign|sectional-centered|<macro|name|<wide-centered|<arg|name><no-page-break>>>>
``````

That is, you need to delete the `<sectional-no-indent>` macro from them.

I think the reason is that `par-first` is assumed to be a macro returning the value, this allows the possibility to make it depends on other variables or more complex computations depending on the current environment.

It did not work for me. Where did you put this line?

I tried to put it into preamble, and I don’t see first paragraph indented. Trying to edit generic.ts doesn’t work either, since TeXmacs does not allow me to modify it.

Edit: putting `<assign|par-first|<macro|12pt>>` in the preamble results in every paragraph indented except for the ones right below section headings.

I notice that even amsart style does not indent paragraphs that are right below equations. That is what I want most since not indenting paragraphs makes it very difficult to know whether the words under the equations belong to the original or a new paragraph.

``````<assign|sectional-normal|<macro|name|<wide-normal|<arg|name><no-page-break>>>>

<assign|sectional-centered|<macro|name|<wide-centered|<arg|name><no-page-break>>>>
``````

to the preamble and you will have the paragraphs below section. For the equations:

``````<assign|equation*|<macro|body|<\with|mode|math|math-display|true|par-ver-sep|<eqn-ver-sep>>
<surround|<no-page-break*><vspace*|<eqn-short-above>><no-indent><htab|0fn>|<htab|0fn><vspace|<eqn-short-below>>|<arg|body>>
</with>>>

``````

and as far as I understand one needs to redefine every environment after which there is no indent by default while he wants to have indents, because it is not possible to redefine the `<no-indent*>` macro (“don’t indent after”), which is used in these environments to prescribe the absence of an indent, that is it is not possible to redefine `<no-indent*>` e.g. to do nothing.

Please let me know if now it works for you (keeping in mind that you might have to redefine some other environments).

1 Like

Thanks for the response.

Honestly, I don’t know how to paste this into preamble. I looked here and here but don’t really know how to just paste.

In the menu: Edit -> Paste from -> TeXmacs

1 Like