如何并排排版两个诗句环境

如何并排排版两个诗句环境

我正在对一些翻译成瑞典语的英文诗进行诗歌分析。我想将这首诗包含在两种语言中,如下所示:

\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{verse}

\begin{document}

\settowidth{\versewidth}{Mitt hjärta, stilla dina slag,}
\begin{verse}[\versewidth]
  Mitt hjärta, stilla dina slag, \\
  sen andra hjärtan slutits till! \\
  Men - kan jag ej bli älskad, jag \\
  \vin dock älska vill.
\end{verse}

\begin{verse}[\versewidth]
  'T is time this heart should be unmoved, \\
  \vin Since others it hath ceased to move: \\
  Yet, though I cannot be beloved, \\
  \vin \vin Still let me love!
\end{verse}

From this part we can see that bla bla bla \dots

\end{document}

此代码的结果是:

在此处输入图片描述

但我还想将这两个版本并排排版,放在两个单独的栏中。我该怎么做?

答案1

有多种方法可以实现您的目的。一种可能性是使用minipages;每个小页面的宽度将由相应的\versewidth(给出+1pt,因为\versewidth单独使用 不起作用)。

\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{verse}

\begin{document}

\settowidth{\versewidth}{Men - kan jag ej bli älskad, jag}
\begin{minipage}[t]{\dimexpr\versewidth+1pt\relax}
\begin{verse}[\versewidth]
  Mitt hjärta, stilla dina slag, \\
  sen andra hjärtan slutits till! \\
  Men - kan jag ej bli älskad, jag \\
  \vin dock älska vill.
\end{verse}
\end{minipage}\hfill
\settowidth{\versewidth}{'T is time this heart should be unmoved,}%
\begin{minipage}[t]{\dimexpr\versewidth+1pt\relax}
\begin{verse}[\versewidth]
  'T is time this heart should be unmoved, \\
  \vin Since others it hath ceased to move: \\
  Yet, though I cannot be beloved, \\
  \vin\vin Still let me love!
\end{verse}
\end{minipage}\bigskip

From this part we can see that bla bla bla \dots

\end{document}

在此处输入图片描述

答案2

\begin{center}
\settowidth{\versewidth}{Men - kan jag ej bli älskad, jag}
\begin{minipage}[t]{\dimexpr\versewidth+1sp\relax}
\begin{verse}[\versewidth]
  Mitt hjärta, stilla dina slag, \\
  sen andra hjärtan slutits till! \\
  Men - kan jag ej bli älskad, jag \\
  \vin dock älska vill.
\end{verse}
\end{minipage}\hfill
\settowidth{\versewidth}{'T is time this heart should be unmoved,}
\begin{minipage}[t]{\dimexpr\versewidth+1sp\relax}
\begin{verse}[\versewidth]
  'T is time this heart should be unmoved, \\
  \vin Since others it hath ceased to move: \\
  Yet, though I cannot be beloved, \\
  \vin \vin Still let me love!
\end{verse}
\end{minipage}
\end{center}

奇怪的是,\begin{minipage}[t]{\versewidth}这还不够。

最好设置\versewidth为最大诗句长度。

相关内容