对话诗歌的缩进

对话诗歌的缩进

我正在尝试格式化包含在散文翻译中的对话。我目前正在使用 Poemscol,因为它是我能找到的唯一一种可以方便地让我对诗节进行编号的格式,但我愿意听取其他建议。我正在寻找的大致格式是:

Alavaka:     How can the flood be crossed?
             How overcrossed the sea?
             How dukkha can be overcome?
             How win to purity?                      183

The Buddha:  By faith the flood is overcrossed
             By vigilence the sea
             By effort dukkha's overcome
             By wisdom, purity                       184

Etc.

有什么建议么?

答案1

一种方法是使用description以下环境enumitem

在此处输入图片描述

代码:

\documentclass{article}
%\usepackage{showframe}
\usepackage{enumitem}

\newcommand*{\MyLabel}{}%
\newenvironment{MyDescription}[2][]{%
    \edef\MyLabel{#1}%
    \begin{description}[labelwidth=3.0cm, leftmargin=3.0cm, labelsep=0.0ex, font=\normalfont]
    \item [#2:]
}{%
    \hfill\MyLabel%
    \end{description}%
}

\begin{document}
\begin{MyDescription}[183]{Alavaka}
    How can the flood be crossed? \\
    How overcrossed the sea?      \\
    How dukkha can be overcome?   \\
    How win to purity?            
\end{MyDescription}
\begin{MyDescription}[184]{The Buddha}
    By faith the flood is overcrossed \\
    By vigilence the sea              \\
    By wisdom, purity                 
\end{MyDescription}  
\end{document}

相关内容