## LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

 Options: Use Forum View Use Monospaced Font Show Text Part by Default Show All Mail Headers Message: [<< First] [< Prev] [Next >] [Last >>] Topic: [<< First] [< Prev] [Next >] [Last >>] Author: [<< First] [< Prev] [Next >] [Last >>]

 Subject: Re: Help with Expl3-izing some code From: Will Robertson <[log in to unmask]> Reply To: Mailing list for the LaTeX3 project <[log in to unmask]> Date: Sat, 22 Aug 2015 12:29:13 +0930 Content-Type: text/plain Parts/Attachments: text/plain (35 lines)
Hi Joel,

Always good to see what people are interested in trying out :)

>
> The commit message at
> <https://github.com/latex3/latex3/commit/432d3d9> indicates that xbox
> does not yet have the equivalent of \parbox. For the restricted use
> I’m putting this to (\parbox[t][0pt]{\somedim}{one or two lines of
> text}), can somebody suggest a lightweight alternative? Neither
> wrapping \hbox_to_wd:nn within \vbox_to_zero:n nor the other way
> around worked for me.

As you've discovered, this is an area that we haven't spent much time
working on.

Basically, providing new versions of \parbox and so on requires going
back to the drawing board and figuring out not just *what* should be
implemented but the user interface as well -- and we're still a way
from deciding how parameters for document elements should work.

For example, you could imagine a CCS-like approach where you can give
a box an ID or class and then style it from the preamble. The idea of
a "typeset" module for providing bare-bones elements for typesetting
might include box support but for your purposes is still some way off.
The coffins commands might help if you're stacking boxes together, but
they don't exactly qualify for "lightweight".

So for the time being I would probably recommend sticking to 2e
commands... sorry if that's not what you wanted to hear!

Cheers,
Will