答案1
您可以使用shapepar
並tikz
獲取
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows.blur}
\usepackage{shapepar}
\newsavebox\TestBox
\newcommand\CirledText[1]{\begin{lrbox}{\TestBox}
\Shapepar{\circleshape}\sffamily\hspace{-0.5ex}#1\par
\end{lrbox}%
\begin{tikzpicture}[baseline={([yshift=-0.5em]tst.center)}]
\pgfmathsetmacro{\myradius}{max(\wd\TestBox,\ht\TestBox)+18pt}%
\node[circle,draw=black!70!blue,line width=8pt,fill=white,inner sep=-0.02*\myradius,minimum size=\myradius,
blur shadow={shadow xshift=1ex,shadow yshift=-1ex}] (tst) {\usebox\TestBox};
\end{tikzpicture}
}
\begin{document}
\CirledText{Test}\hspace{3em}
\CirledText{Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}
\end{document}
人們可以使其非常可調,但如何精確管理這一點取決於用例。