我想将单词 flower 旋转 5 次,并且旋转应与 c 重叠。这就是我目前得到的结果:
\clap{\rotatebox[origin=c]{0}{flower}}\clap{\rotatebox[origin=c]{20}
{flower}}\clap{\rotatebox[origin=c]{45}{flower}}
\clap{\rotatebox[origin=c]{60}{flower}}\clap{\rotatebox[origin=c]{80}{flower}}
有人可以帮帮我吗?
答案1
像这样?
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\makebox[0pt][c]{\rotatebox[origin=c]{0}{flower}}%
\makebox[0pt][c]{\rotatebox[origin=c]{22.5}{flower}}%
\makebox[0pt][c]{\rotatebox[origin=c]{45}{flower}}%
\makebox[0pt][c]{\rotatebox[origin=c]{67.5}{flower}}%
\makebox[0pt][c]{\rotatebox[origin=c]{90}{flower}}
\end{document}
这里有两件事。\makebox[<alignment>]
将以<alignment>
或l
或c
作为r
值。并且\rotatebox
,根据 的手册graphicx
:
因此您可以使用所有这些选项。
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\makebox[0pt][l]{\rotatebox{0}{flower}}%
\makebox[0pt][l]{\rotatebox{22.5}{flower}}%
\makebox[0pt][l]{\rotatebox{45}{flower}}%
\makebox[0pt][l]{\rotatebox{67.5}{flower}}%
\makebox[0pt][l]{\rotatebox{90}{flower}}
\end{document}