2

I want to do tags like the ones used in blogs (like the tags in the picture shown below). Any ideas how I can do them ?

enter image description here

5
  • It is not clear what you are asking. Please, show us your code. Do you want to create a button style?
    – Sigur
    May 2, 2014 at 21:38
  • I'm sorry, but are you trying to more-or-less duplicate the image shown here? May 2, 2014 at 21:38
  • @SeanAllred no I am just trying to create tags like this in picture. Baiscally a button like shape which I can write in (the rectangle things in the picture) but they wont have an X image on the right
    – Cemre
    May 2, 2014 at 21:40
  • @Sigur I dont have any code since I am trying to come up with the code. I am trying to create tags like in this image which like you said can be in the shape of buttons
    – Cemre
    May 2, 2014 at 21:40
  • The most simple way to insert boxes is \fbox{}. But it works fine with short texts.
    – Sigur
    May 2, 2014 at 21:47

1 Answer 1

4

I ended up using

\usepackage{tcolorbox}
\newtcbox{\blogtag}{nobeforeafter,boxrule=0.5pt,arc=4pt,
  boxsep=0pt,left=3pt,right=3pt,top=4pt,bottom=4pt,tcbox raise base}

\blogtag{mytext}
1
  • This is nice, but tags with risers (like h) and no hangers (like j) don't align vertically with tags with both, or just hangers. Shame...
    – LondonRob
    Jul 3, 2019 at 16:51

You must log in to answer this question.

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