LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Date: Fri, 21 Aug 2015 13:16:32 -0400
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Message-ID: <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=UTF-8
From: "Joel C. Salomon" <[log in to unmask]>
Parts/Attachments: text/plain (36 lines)
Last night, I wrote:
> What is the cleanest way to do this with Expl3? Specifically, what are
> the Expl3 equivalents of `\parbox` and `\llap`, at least in the way
> this code uses them?
> (I understand that `\raggedleft` would be in a very different layer of
> the code [the galley?] and probably doesn’t have a useable Expl3
> equivalent yet; and that using `\tex_kern:D` is no clearer than
> `\kern`, and that its Expl3ization will probably be in the fonts
> module. On the other hand, I see that l3trial/xfont/xfss.dtx includes
> a definition for `\mode_leave_vertical:` so perhaps I’ll copy its
> definition and use that.)

Hunting around the latex3 repository it seems I’m anticipating what
l3trial/xbox is doing. (It’s not stable, I understand, but is xbox in
a somewhat usable state if I take it from the repository? I’m quite
willing to change my [private] code as xbox updates, assuming the
current state at least broadly approximates future plans.)

Experimentation, and looking at xbox code, shows me that
`\hbox_overlap_left:n` can substitute for `\llap`. I’m not sure why
l3trial/xbox’s `\llap` includes `\xbox_leave_vmode:`, though—probably
for the same reason the Memoir example code included `\leavevmode`,
but I don’t understand that either; it seems to work just fine without

The commit message at
<> 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.

—Joel C. Salomon