I want to place a word into a \tcbox
, but the box has too much space around the word. For example, the word "EQUAL".
[Tex/LaTex] How to set fit height and width for tcbox according to the text inside
formattingheighttcolorboxwidth
formattingheighttcolorboxwidth
I want to place a word into a \tcbox
, but the box has too much space around the word. For example, the word "EQUAL".
Best Answer
You have several options here: you can use the
top
,left
,bottom
,right
keys (and perhaps alsoboxsep
) to control the space between text and frame on each of the sides or you could use thesize
key to get some predefined sizes (the accepted valuesminimal
,tight
,fbox
,small
,title
, andnormal
and their effect are illustrated in my example code):