![如何对“回忆录”中的诗节或诗句进行负缩进?](https://linux22.com/image/460050/%E5%A6%82%E4%BD%95%E5%AF%B9%E2%80%9C%E5%9B%9E%E5%BF%86%E5%BD%95%E2%80%9D%E4%B8%AD%E7%9A%84%E8%AF%97%E8%8A%82%E6%88%96%E8%AF%97%E5%8F%A5%E8%BF%9B%E8%A1%8C%E8%B4%9F%E7%BC%A9%E8%BF%9B%EF%BC%9F.png)
我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}