multicol 和 columnbreak 如何平息一列中的垂直扩展/平衡?

multicol 和 columnbreak 如何平息一列中的垂直扩展/平衡?

我正在尝试将文本结束在一列中,并跳转到第二列,而不使第一列“平衡”。以下是示例。

\documentclass{report}
\usepackage{multicol}
\usepackage[margin=1in, includefoot]{geometry}

\begin{document}

\chapter{Southern Magic: Magic User}

\begin{multicols}{2}

\section{First Level}

\textbf{Ladder} (Alteration)
\begin{multicols}{2}
  \begin{small}
    Range:          \emph{20 yds} \\
    Duration:       \emph{1 turn} \\
    Area of Effect: \emph{Special} \\
    \columnbreak
    Components:     \emph{V, S, M} \\
    Casting Time:   \emph{1 segment} \\
    Saving Throw:   \emph{None} \\
  \end{small}
\end{multicols}

The caster can use this spell to create a firmly anchored ladder of force, 1' wide, and 10' long 
plus 10' per level of the caster, to a maximum of 60'. This ladder is easy to climb (no dexterity 
check required).

The ladder may be used to climb walls and pits, or it may be laid horizontally and used to cross 
chasms. The material component is a knot of wood.

\columnbreak
\section{Fifth Level}

\textbf{Mummy} (Necromancy)
\begin{multicols}{2}
  \begin{small}
    Range:          \emph{50 yds} \\
    Duration:       \emph{1 turn/level} \\
    Area of Effect: \emph{Special} \\
    \columnbreak
    Components:     \emph{V, S, M} \\
    Casting Time:   \emph{5 segments} \\
    Saving Throw:   \emph{None} \\
  \end{small}
\end{multicols}

With this spell, the mage can animate one corpse for every four levels of experience he possesses. 
These corpses have all the characteristics and abilities, including hit points, of a mummy.

When the spell's duration has expired or the mummies are slain, the corpses crumble to dust. The 
material component is mummy dust.

\section{Seventh Level}

\textbf{Time Loop} (Alteration)
\begin{multicols}{2}
  \begin{small}
    Range:          \emph{Self} \\
    Duration:       \emph{1 round/level} \\
    Area of Effect: \emph{10' cube} \\
    \columnbreak
    Components:     \emph{V, S, M} \\
    Casting Time:   \emph{7 segments} \\
    Saving Throw:   \emph{Special} \\
  \end{small}
\end{multicols}

This spell creates an area where the flow of time repeats itself continuously, until the duration 
of the spell (as timed in the outside word) expires.

Creatures caught in the time loop see the world as flickering chaos and are unable to affect it in 
any way. Anyone outside the loop perceives those trapped within as endlessly repeating one set of 
actions; those outside may affect the beings within the time loop with ranged spells and attacks, 
but if they physically enter it, they too are trapped.

\end{multicols}

\end{document}

下面提供了该行为的屏幕截图。如何防止左列垂直扩展以匹配右列?我更希望在左侧条目下方留出大量空白空间。

咒语列表

可能在章节末尾也会出现同样的效果。我希望所有文本都位于左栏,而不是分散在各个栏之间。 章节结束

答案1

好的,所以这可以相当直接地处理。首先,我们将在报告类中调用 twocolumn 选项,然后删除最外层的多列。如果您仍然想控制何时使用 \columnbreak(仅在多列中有效),请使用分页符。调整后的文档如下:

\documentclass[twocolumn]{report}
\usepackage{multicol}
\usepackage[margin=1in, includefoot]{geometry}

\begin{document}

\chapter{Southern Magic: Magic User}



\section{First Level}

\textbf{Ladder} (Alteration)
\begin{multicols}{2}
  \begin{small}
    Range:          \emph{20 yds} \\
    Duration:       \emph{1 turn} \\
    Area of Effect: \emph{Special} \\
    \columnbreak
    Components:     \emph{V, S, M} \\
    Casting Time:   \emph{1 segment} \\
    Saving Throw:   \emph{None} \\
  \end{small}
\end{multicols}

The caster can use this spell to create a firmly anchored ladder of force, 1' wide, and 10' long 
plus 10' per level of the caster, to a maximum of 60'. This ladder is easy to climb (no dexterity 
check required).

The ladder may be used to climb walls and pits, or it may be laid horizontally and used to cross 
chasms. The material component is a knot of wood.

\section{Fifth Level}

\textbf{Mummy} (Necromancy)
\begin{multicols}{2}
  \begin{small}
    Range:          \emph{50 yds} \\
    Duration:       \emph{1 turn/level} \\
    Area of Effect: \emph{Special} \\
    \columnbreak
    Components:     \emph{V, S, M} \\
    Casting Time:   \emph{5 segments} \\
    Saving Throw:   \emph{None} \\
  \end{small}
\end{multicols}

With this spell, the mage can animate one corpse for every four levels of experience he possesses. 
These corpses have all the characteristics and abilities, including hit points, of a mummy.

When the spell's duration has expired or the mummies are slain, the corpses crumble to dust. The 
material component is mummy dust.
\pagebreak
\section{Seventh Level}

\textbf{Time Loop} (Alteration)
\begin{multicols}{2}
  \begin{small}
    Range:          \emph{Self} \\
    Duration:       \emph{1 round/level} \\
    Area of Effect: \emph{10' cube} \\
    \columnbreak
    Components:     \emph{V, S, M} \\
    Casting Time:   \emph{7 segments} \\
    Saving Throw:   \emph{Special} \\
  \end{small}
\end{multicols}

This spell creates an area where the flow of time repeats itself continuously, until the duration 
of the spell (as timed in the outside word) expires.

Creatures caught in the time loop see the world as flickering chaos and are unable to affect it in 
any way. Anyone outside the loop perceives those trapped within as endlessly repeating one set of 
actions; those outside may affect the beings within the time loop with ranged spells and attacks, 
but if they physically enter it, they too are trapped.



\end{document}

另外,如果您想保留多列,只需在分列前使用 \vspace{\fill},就像这样。您应该注意,咒语的 2 列描述不会在您希望它分列的地方分列。

\documentclass{report}
\usepackage{multicol}
\usepackage[margin=1in, includefoot]{geometry}

\begin{document}

\chapter{Southern Magic: Magic User}

\begin{multicols}{2}

\section{First Level}

\textbf{Ladder} (Alteration)\\
\begin{multicols}{2}
  \begin{small}
    Range:          \emph{20 yds} \\
    Duration:       \emph{1 turn} \\
    Area of Effect: \emph{Special} \\

    \columnbreak
    Components:     \emph{V, S, M} \\
    Casting Time:   \emph{1 segment} \\
    Saving Throw:   \emph{None} \\
  \end{small}
\end{multicols}

The caster can use this spell to create a firmly anchored ladder of force, 1' wide, and 10' long 
plus 10' per level of the caster, to a maximum of 60'. This ladder is easy to climb (no dexterity 
check required).\\

The ladder may be used to climb walls and pits, or it may be laid horizontally and used to cross 
chasms. The material component is a knot of wood.
\vspace*{\fill}
\columnbreak
\section{Fifth Level}

\textbf{Mummy} (Necromancy)
\begin{multicols}{2}
  \begin{small}
    Range:          \emph{50 yds} \\
    Duration:       \emph{1 turn/level} \\
    Area of Effect: \emph{Special} \\
    
    \columnbreak
    Components:     \emph{V, S, M} \\
    Casting Time:   \emph{5 segments} \\
    Saving Throw:   \emph{None} \\
  \end{small}
\end{multicols}

With this spell, the mage can animate one corpse for every four levels of experience he possesses. 
These corpses have all the characteristics and abilities, including hit points, of a mummy.

When the spell's duration has expired or the mummies are slain, the corpses crumble to dust. The 
material component is mummy dust.

\section{Seventh Level}

\textbf{Time Loop} (Alteration)
\begin{multicols}{2}
  \begin{small}
    Range:\emph{Self}\\    
    Duration: \emph{1 rnd/level} \\    
    Area of Effect: \emph{10' cube} 
    
    \columnbreak
    Components:     \emph{V, S, M} \\
    Casting Time:   \emph{7 segments} \\
    Saving Throw:   \emph{Special} \\
  \end{small}
\end{multicols}

This spell creates an area where the flow of time repeats itself continuously, until the duration 
of the spell (as timed in the outside word) expires.

Creatures caught in the time loop see the world as flickering chaos and are unable to affect it in 
any way. Anyone outside the loop perceives those trapped within as endlessly repeating one set of 
actions; those outside may affect the beings within the time loop with ranged spells and attacks, 
but if they physically enter it, they too are trapped.
\end{multicols}
\end{document}

答案2

我认为multicols环境不太适合手头的工作。这里有一个替代解决方案,它使用并排tabular环境,并将它们封装在center环境中。

在此处输入图片描述

\documentclass{report}
\usepackage{multicol,array}
\usepackage[letterpaper, margin=1in, includefoot]{geometry}

\newcommand\mytab[1]{%
  \begin{tabular}[t]{@{} r >{\em}l @{}} #1 \end{tabular}}


\begin{document}

\chapter{Southern Magic: Magic User}

\begin{multicols}{2}

\section{First Level}

\textbf{Ladder} (Alteration)

\begin{center}
\setlength\tabcolsep{2pt}
\small
\mytab{ Range &          20 yds \\
        Duration &       1 turn \\
        Area of Effect & Special }
\quad
\mytab{ Components &     V, S, M   \\
        Casting Time &   1 segment \\
        Saving Throw &   None }
\end{center}

The caster can use this spell to create a firmly anchored ladder of force, 1' wide, and 10' long  plus 10' per level of the caster, to a maximum of 60'. This ladder is easy to climb (no dexterity check required).

The ladder may be used to climb walls and pits, or it may be laid horizontally and used to cross chasms. The material component is a knot of wood.


\section{Fifth Level}

\textbf{Mummy} (Necromancy)

\begin{center}
\setlength\tabcolsep{2pt}
\small
\mytab{ Range &          50 yds \\
        Duration &       1 turn/level \\
        Area of Effect & Special
}
\quad
\mytab{ Components &     V, S, M \\
        Casting Time &   5 segments \\
        Saving Throw &   None 
}
\end{center}

With this spell, the mage can animate one corpse for every four levels of experience he possesses. These corpses have all the characteristics and abilities, including hit points, of a mummy.

When the spell's duration has expired or the mummies are slain, the corpses crumble to dust. The material component is mummy dust.


\section{Seventh Level}

\textbf{Time Loop} (Alteration)

\begin{center}
\setlength\tabcolsep{2pt}
\small
\mytab{ Range &          Self \\
        Duration &       1 round/level \\
        Area of Effect & 10' cube }
\quad
\mytab{ Components &     V, S, M \\
        Casting Time &   7 segments \\
        Saving Throw &   Special } 
\end{center}

This spell creates an area where the flow of time repeats itself continuously, until the duration of the spell (as timed in the outside word) expires.

Creatures caught in the time loop see the world as flickering chaos and are unable to affect it in any way. Anyone outside the loop perceives those trapped within as endlessly repeating one set of actions; those outside may affect the beings within the time loop with ranged spells and attacks, but if they physically enter it, they too are trapped.

\end{multicols}

\end{document}

相关内容