I want to make a "blocks" of words, and I want the to have the same vertical size and alignment.

But when I do:

\newtcbox{\tag}{nobeforeafter, box align=base,size=small}
\tag{Photo} \tag{may}

I get:

enter image description here

Because the box uses the real text height. Is there some kind of "line-height" property as in CSS that can be used for the height of the

  • 1
    box-align=base is suspect
    – Moriambar
    Commented Apr 15, 2017 at 22:00

1 Answer 1


You can insert a \strut:




\newtcbox{\tag}{nobeforeafter, box align=base,size=small,before upper=\strut}
\tag{Photo} \tag{may}


enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .