如何对“回忆录”中的诗节或诗句进行负缩进?

如何对“回忆录”中的诗节或诗句进行负缩进?

memoir将该类用于儿童诗集。有些页面有背景图片,我希望能够水平移动诗节,以便更好地适应页面上的图形元素。在某些情况下,我想移动特定的诗节。

文档解释了如何使用缩进\indentpattern,但我只能将文本向右移动,而还没有找到将文本向左移动的方法(即有负缩进)。

在这个例子中,第一节的诗句围绕“A”的右侧流动,我想对第二节的诗句实现类似的效果,使它们位于形状的左侧。

如果无法单独控制每节诗句,将整节诗句向左偏移也是可以接受的。如何使用 LaTeX 实现这一点?

围绕形状流动的文本

这是我用于上述示例的代码:

\documentclass[14pt]{memoir}
\usepackage[pages=some]{background}

\begin{document}

\PlainPoemTitle
\PoemTitle{Lo Remip Sumindentum}

\indentpattern{0123}
\begin{verse}[\versewidth]
\begin{patverse}
one two three four \\
one two three four \\
one two three four \\
one two three four.
\end{patverse}
\end{verse}

\begin{verse}[\versewidth]
six seven eight nine \\
six seven eight nine \\
six seven eight nine \\
six seven eight nine.
\end{verse}


\backgroundsetup{scale = 1,
angle = 0,
opacity = 1,
contents = {\includegraphics[
    width = \paperwidth,
    height = \paperheight]
    {example-image-a}}}
\BgThispage
\end{document}

答案1

可以通过添加负数来手动控制缩进\hspace

\documentclass[14pt]{memoir}
\usepackage[pages=some]{background}

\begin{document}

\PlainPoemTitle
\PoemTitle{Lo Remip Sumindentum}

\indentpattern{0123}
\begin{verse}[\versewidth]
\begin{patverse}
one two three four \\
one two three four \\
one two three four \\
one two three four.
\end{patverse}
\end{verse}

\begin{verse}[\versewidth]
\hspace{-50mm}six seven eight nine \\
\hspace{-53mm}six seven eight nine \\
\hspace{-56mm}six seven eight nine \\
\hspace{-59mm}six seven eight nine.
\end{verse}


\backgroundsetup{scale = 1,
angle = 0,
opacity = 1,
contents = {\includegraphics[
    width = \paperwidth,
    height = \paperheight]
    {example-image-a}}}
\BgThispage
\end{document}

负压痕

相关内容