Using Herr Oberdiek's rule
approach, but doing the overlay with the convenient \stackon
macro of the just-submitted stackengine
package, it makes the construction more compact.
I first define \stacktype
as "L" meaning a "long" stack in which the stack is calculated baseline-to-baseline (versus a short "S" stack calculated with in inter-item gap size). Then, with \stackon
, the second argument is stacked on the first, preserving the baseline of the first (anchor) argument. The width of the result is the width of the total stack, though that can be set to the width of the anchor, if that makes sense for the stack. With the optional argument, I specify the stacklength, which for an "L" stack is the baseline shift between the items of the stack.
I hope the package propagates this weekend from CTAN.
\documentclass{article}\usepackage{stackengine}\def\cross{% \stackon[1ex]{\rule{0.4pt}{1.5ex}}{\rule{.75ex}{0.4pt}}}\def\invcross{% \stackon[0.5ex]{\rule{0.4pt}{1.5ex}}{\rule{.75ex}{0.4pt}}}\def\stacktype{L}\begin{document}\dag\cross\invcross t\end{document}
Image may be NSFW.
Clik here to view.