答案1
答案2
您可以使用以下方式构建图标TikZ
:
代码:
\documentclass{article}
\usepackage{amssymb}
\usepackage{tikz}
\definecolor{playgreen}{RGB}{58,193,62}
\newcommand\PlayButton{%
\begin{tikzpicture}
\node[draw=black,fill=black,thick,minimum width=3.7em,minimum height=3.2ex]
(bframe) {};
\node[minimum size=2ex,circle,fill=playgreen,draw=none,anchor=west,label={0:\textcolor{white}{\sffamily\bfseries Run}}]
(bcircle) at ([xshift=0.3em]bframe.west) {};
\node[scale=0.8]
at ([xshift=0.6pt]bcircle.center) {$\blacktriangleright$};
\end{tikzpicture}%
}
\begin{document}
Test text \PlayButton
\end{document}
对颜色进行了一些细微的更改:
\newcommand\PlayButton{%
\begin{tikzpicture}
\node[draw=playgreen,fill=white,fill opacity=0,thick,minimum width=3.7em,minimum height=3.2ex]
(bframe) {};
\node[minimum size=2ex,circle,fill=playgreen,draw=none,anchor=west,label={0:\textcolor{playgreen!70!black}{\sffamily\bfseries Run}}]
(bcircle) at ([xshift=0.3em]bframe.west) {};
\node[scale=0.8]
at ([xshift=0.6pt]bcircle.center) {$\blacktriangleright$};
\end{tikzpicture}%
}
结果是