latex3/svn-mirror — Issue #50: \prevdepth management in the galley module
Author: blefloch
Created: 2011-10-26 05:01:45+00:00
State: open

One reasonable application of the galley module is to collect material from various places in a vertical box (galley). The naive code for that would be

\box_new:N \g_my_box
\cs_new_protected:Npn \my_append:n #1
{ \vbox_gset:Nn \g_my_box { \vbox_unpack_clear:N \g_my_box #1 } }
\my_append:n { Hello. }
\my_append:n { Hello again. }

This does not quite work: the horizontal boxes from the two lines are on top of each other with no baseline skip. A fix is to somehow preserve the `\prevdepth` before closing the vertical box, and restoring it when collecting the next material. I think this fits in the scope of a galley module.