User Tools

Site Tools


texsupindent

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

texsupindent [2008/02/12 14:23] (current)
kleiner created
Line 1: Line 1:
 +====== Suppressing indendation at the beginning of the following paragraph ======
 +(This is how the sectioning commands of the standard LaTeX classes do it.)
  
 +Put the following in the "​begin"​ commands of the environment:​
 +  \everypar{{\setbox0=\lastbox}\everypar{}}
 +At the start of the first paragraph, the ''​\parindent''​ glue will be removed and be put into box 0. (The braces around the ''​\setbox''​ command are to keep the scope of this box assignment local.) Finally we clear ''​\everypar''​ such that subsequent paragraphs behave normally.
 +
 +//Remark: // One might be tempted to set ''​\everypar{\hskip -\parindent}'',​ but if the user has issued a ''​\noindent''​ command at the start of the environment body then this has an undesirable effect. ​
texsupindent.txt ยท Last modified: 2008/02/12 14:23 by kleiner