我尝试在 reledmac 中将 \leftskip 和 \rightskip 与 \pstart 和 \pend 一起使用。我的目标是将标题设置为居中,并增加左右边距。这是我目前所做的:
\documentclass{scrbook}
\usepackage{reledmac}
\begin{document}
\beginnumbering
\rightskip=3em
\leftskip=3em
{\centering\pstart Romeo and Juliet \pend}
{\centering\pstart (First performance by the Theatre in the Winter 1564, played by Shakespeare and his company the Lord Chamberlain’s Men)\pend}
\rightskip=0em
\leftskip=0em
\pstart Romeo and Juliet is a tragedy written by William Shakespeare early in his career about two young star-crossed lovers whose deaths ultimately reconcile their feuding families. It was among Shakespeare's most popular plays during his lifetime and, along with Hamlet, is one of his most frequently performed plays. Today, the title characters are regarded as archetypal young lovers.
\pend
{}\endnumbering
\end{document}
不幸的是,标题和副标题没有响应 skip 命令。我知道我可以使用 eledchapter 等命令,但这意味着我必须完全重写它们,因为我不需要前后空格、目录中没有任何内容、标题和副标题与文本之间没有空格等等。
答案1
移动\rightskip
和\leftskip
之后\pstart
。后者重置这些值。像这样:
\documentclass{scrbook}
\usepackage{reledmac}
\begin{document}
\beginnumbering
\pstart\noindent\centering
Romeo and Juliet
\pend
\pstart\noindent\leftskip=3em plus1fill\rightskip\leftskip
(First performance by the Theatre in the Winter 1564,
played by Shakespeare and his company the Lord Chamberlain’s Men)
\pend
\medskip
\pstart
Romeo and Juliet is a tragedy written by William Shakespeare
early in his career about two young star-crossed lovers whose deaths
ultimately reconcile their feuding families. It was among
Shakespeare's most popular plays during his lifetime and, along with
Hamlet, is one of his most frequently performed plays. Today, the
title characters are regarded as archetypal young lovers.
\pend
\endnumbering
\end{document}
答案2
我建议手动控制标题中的换行符,无论如何这都是有意义的。( \medskip
如果您不想在标题和文本之间留有空格,请省略。)
\documentclass{scrbook}
\usepackage{reledmac}
\begin{document}
\beginnumbering
{\centering
\pstart Romeo and Juliet \pend
\pstart (First performance by the Theatre in the Winter 1564,\\
played by Shakespeare and his company the Lord Chamberlain’s Men)
\pend
}\medskip
\pstart
Romeo and Juliet is a tragedy written by William Shakespeare
early in his career about two young star-crossed lovers whose deaths
ultimately reconcile their feuding families. It was among
Shakespeare's most popular plays during his lifetime and, along with
Hamlet, is one of his most frequently performed plays. Today, the
title characters are regarded as archetypal young lovers.
\pend
\endnumbering
\end{document}