Am Dienstag, 4. November 2003 10:05 schrieb Jean-Marc Lasgouttes:
> >>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:
>
> Georg> There are still nesting errors with nesting list like
> Georg> environments. They are different than without the patch. I will
> Georg> have a look at that again, but it would be nice if somebody who
> Georg> understands need_deeper, deeper_paragraph, etc. better could
> Georg> help. Apart from nesting the round-trip on the Userguide is
> Georg> better than before.
>
> *sigh*. This has to be me :( I propose that we apply your patch first
> (maybe with a change of the space handling as discussed with andre?).

I filed bug # 1446 as you requested.

> I had actually a different idea for solving the
> extra-space-at-end-of-paragraph problem:
>
> - add a need_space member to Context
>
> - when encountering a \n, set need_space to true
>
> - when doing check_layout(), if need_space is true then
>    * if need_layout is true, reset need_space to false
>    * otherwise, output a space and reset need_space to false
>
> Would that work? It seems reasonably simple now that we have the
> necessary machinery.

I think it would not work for all cases. The problem is that the space at 
the end of the paragraph does matter for some environments (for example 
\centering) and is ignored by others. See the attached example file, the 
second "centering" comes out a bit more right than the first one.

Georg
\documentclass{book}
\begin{document}
\begin{center}
\hfill center
\end{center}

\begin{center}
\hfill center\end{center}

\begin{centering}
\hfill centering
\end{centering}

\begin{centering}
\hfill centering\end{centering}

\begin{verse}
\hfill verse
\end{verse}

\begin{verse}
\hfill verse\end{verse}
\end{document}

Reply via email to