Le 16/04/11 22:17, Richard Heck a écrit :
On 04/16/2011 04:12 PM, Richard Heck wrote:
On 04/16/2011 03:59 PM, Julien Rioux wrote:
On 16/04/2011 3:40 PM, Marcus Kriele wrote:
I am trying to address bug #7301 concerning the Springer layout files,
and the following 4 questions have arisen:

1) NextNoIndent prevents the following paragraph (whether of the
same or
a different layout) from being indented. Is there a possibility to
restrict this behavior such that in only applies if the next paragraph
has a different layout?
Use case: A definition may consist of several paragraphs which
should be
indented. However, the first paragraph in Standard layout following the
definition should not be indented.


I don't see at the moment how you would do that in LaTeX.

I suppose it could be done, but this might really be a bug in
NextNoIndent. I think the intention is as Marcus wants: The next
paragraph AFTER this batch shouldn't be indented. E.g., if we have
NextNoIndent in Theorem, then we don't want to suppress indentation of
the second paragraph of the theorem statement, but of what follows the
whole theorem.

On looking at this now, I see that NextNoIndent should work the way
Marcus describes. Here is the relevant code, from
TextMetrics::leftMargin():

// This happens after sections in standard classes. The 1.3.x
// code compared depths too, but it does not seem necessary
// (JMarc)
if (tclass.isDefaultLayout(par.layout())
&& pit > 0 && pars[pit - 1].layout().nextnoindent)
parindent.erase();

So in fact what this does is suppress the indentation if the current
paragraph is Standard (or whatever the default is) and the previous
paragraph had NextNoIndent.

Note also that NextNoIndent only changes the presentation on screen, not the latex output. It merely describes what the class does.

JMarc

Reply via email to