I defined a Tikz macro and I want to use it so the item of an inline itemize is passed as its argument. So far, my solution is this:
\documentclass{article}
\usepackage[inline]{enumitem}
\usepackage{tikz}
\newcommand\itemvalue[1]{
\tikz[baseline=(o.base)] {
\node[
inner xsep=0pt,
inner ysep = 1pt,
outer xsep=2pt,
outer ysep=2pt
] (o) at (0,0) {\textcolor{blue!80!black}{\fontsize{10}{16}\textbf{#1}}};
\draw[color=gray!50, thick] ([xshift=(-1.3)]o.south west) -- ([xshift=(1.3)]o.south east);
}
}
\begin{document}
\let\olditem\item
\renewcommand\item[1]{\olditem\itemvalue{#1}}
\begin{itemize*}[label={}, labelsep=2em, parsep=2ex]
\item {First}
\item {Second}
\item {Third}
\end{itemize*}
\end{document}
The output looks like this:
This is what I want but I was wondering if there was a way of redefining \item so it reads the full word (not only its first letter). If I remove the braces on each item, the output looks like this:
This makes sense as far as I can tell how \item works, but I'd like a workaround that doesn't use braces on each item.
Thanks!




\itemwork? Does it always gobbles only one word?