![创作十四行诗的命令或环境](https://linux22.com/image/448884/%E5%88%9B%E4%BD%9C%E5%8D%81%E5%9B%9B%E8%A1%8C%E8%AF%97%E7%9A%84%E5%91%BD%E4%BB%A4%E6%88%96%E7%8E%AF%E5%A2%83.png)
我想知道是否有命令或环境可以适应短诗的写作,即使缺少诗行也能提供押韵格式。也许通过某种数组?我尝试写一首十四行诗,但因 9 个参数的限制而受阻,但我怀疑这不是最好的方法。\ph(占位符} 功能是否可以内置到环境中?
下面的 CODE 吸引我的地方在于它看起来很简洁;在写作时很有帮助。(我认识到 LaTeX 不是某些人会选择的写作环境。)
\documentclass{article}
\usepackage[utf8]{inputenc}
\newcommand{\sonnet}[9]{
{#1 \textsuperscript{\emph{a}} \\}
{#2 \textsuperscript{\emph{b}} \\}
{#3 \textsuperscript{\emph{a}} \\}
{#4 \textsuperscript{\emph{b}} \\}
{#5 \textsuperscript{\emph{b}} \\}
{#6 \textsuperscript{\emph{c}} \\}
{#7 \textsuperscript{\emph{b}} \\}
{#8 \textsuperscript{\emph{c}} \\}
{#9 \textsuperscript{\emph{c}} \\}
}
\newcommand{\ph}{{\underline{\hspace{5em}}}\ }
\begin{document}
\begin{verse}
\sonnet
{When writing verse, \LaTeX\ as often helps}
{As hinders, fostering the nascent notion}
{As fast as the imagination whelps,}
{And no philosophy shows such devotion}
{To the \ph, amidst the commotion}
{Of composition, so needful to poet}
{And coder alike, adrift in an ocean}
{Of signs and signifiers, content to go it}
{Alone, 'till 9-argument limit blow it---}
\end{verse}
\end{document}