
답변1
당신에게 맞는 분리를 값으로 설정하는 것은 당신에게 맡깁니다 \topsep
. \partopsep
는 앞에 빈 줄이 있을 때 추가되므로 대신 verse
설정하거나 와 함께 설정하는 것이 좋습니다 \topsep
.
\documentclass{article}
\usepackage{xpatch}
\xpatchcmd\verse
{\itemsep}
{\topsep=0pt \partopsep=0pt \itemsep}
{}{}
\begin{document}
In the beginning, when God created the heavens and the
earth, the earth was a formless wasteland, and darkness covered
the abyss, while a mighty wind swept over the waters.
\begin{verse}
La vispa Teresa gridava sospesa: \\
l'ho presa, l'ho presa, la vispa Teresa! \\
Gridava sospesa: L'ho presa, l'ho presa, \\
La vispa Teresa! Grida sospesa
\end{verse}
Then God said, Let there be light, and there was light. God
saw how good the light was. God then separated the light from
the darkness.
\end{document}
답변2
myverse
구절 위/아래의 수직 간격을 조정하는 자신만의 환경을 정의할 수 있습니다 :
\documentclass{article}
\usepackage[paper=a5paper]{geometry}% Just for this example
\usepackage{mdframed,xkeyval}
\newlength{\mvskipabove}
\newlength{\mvskipbelow}
\makeatletter
\define@key{myverse}{skipabove}{\setlength{\mvskipabove}{#1}}
\define@key{myverse}{skipbelow}{\setlength{\mvskipbelow}{#1}}
\makeatother
\newenvironment{myverse}[1][]
{\setkeys{myverse}{skipabove=0pt,skipbelow=0pt,#1}%
\begin{mdframed}[
leftmargin=1.5em,
linewidth=0pt,
innertopmargin=\mvskipabove,
innerbottommargin=\mvskipbelow]}
{\end{mdframed}}
\begin{document}
In the beginning, when God created the heavens and the
earth, the earth was a formless wasteland, and darkness covered
the abyss, while a mighty wind swept over the waters.
\begin{verse}
La vispa Teresa gridava sospesa: \\
l'ho presa, l'ho presa, la vispa Teresa! \\
Gridava sospesa: L'ho presa, l'ho presa, \\
La vispa Teresa! Grida sospesa
\end{verse}
Then God said, Let there be light, and there was light. God
saw how good the light was. God then separated the light from
the darkness.
\begin{myverse}
La vispa Teresa gridava sospesa: \\
l'ho presa, l'ho presa, la vispa Teresa! \\
Gridava sospesa: L'ho presa, l'ho presa, \\
La vispa Teresa! Grida sospesa
\end{myverse}
Then God said, Let there be light, and there was light. God
saw how good the light was. God then separated the light from
the darkness.
\begin{myverse}[skipabove=5\baselineskip,skipbelow=1pt]
La vispa Teresa gridava sospesa: \\
l'ho presa, l'ho presa, la vispa Teresa! \\
Gridava sospesa: L'ho presa, l'ho presa, \\
La vispa Teresa! Grida sospesa
\end{myverse}
Then God said, Let there be light, and there was light. God
saw how good the light was. God then separated the light from
the darkness.
\end{document}
위의 myverse
환경은 실제로 mdframed
일반 verse
. 그러나 이러한 기본값에 추가하거나 및/또는 myverse
형식의 선택적 인수로 지정할 수 있습니다 . 여기서 은 길이입니다.skipabove=<len>
skipbelow=<len>
<len>