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
    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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.