3

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 '17 at 22:00
5

You can insert a \strut:

\documentclass[a4paper]{scrartcl}

\usepackage{tcolorbox}

\begin{document}

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


\end{document}

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.