如何用棋盘“平衡”双列文档?

如何用棋盘“平衡”双列文档?
\documentclass[12pt,twocolumn]{article}

\usepackage{chessboard}

\usepackage{enumerate}
\usepackage[top=2cm,nofoot,bottom=1cm,left=1cm,right=1cm]{geometry}
\usepackage{fancyhdr}
\usepackage{lastpage}

\lhead{Easy}
%\chead{}
\rhead{test}
%\rhead{SCHOOL NAME}
\lfoot{}
\cfoot{}
\rfoot{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}

%% FONT
\usepackage[T1]{fontenc}
\usepackage[math]{iwona} %nice font

%% OWN command

\newcommand{\game}[3]{
    \item (#1 point) \\
    \chessboard[
    setfen= #2,
    mover= #3
    ]
}


\begin{document}
\pagestyle{fancy}


\begin{enumerate}[Q1.]
\game{1}{1k/pb3p/3p3r/3p3p/1R2rP/2R4B/PP4P/6K}{W}
\game{1}{5b/1pp/6pp/1P1k1p/2KPp/4P/rn2Nppp/2R3K}{W}
\game{1}{/1p2rk/p1pK1n/P/1P/7Q}{B}
\game{1}{4k/p4p//R2pPKPp/3P3P/7r}{B}
\game{1}{r2qkbnr/1p3ppp/p1n/2P/2bpN//PPP1QPPP/R1B1K1NR}{W}
\game{1}{/1p3k/4p1p/Pp2P/1b2qp/1K2Q1p/3B}{W}

\end{enumerate}


\end{document}

由此产生了 在此处输入图片描述

我正在输入一张如上所示的棋盘。我怎样才能“平衡”这两列,就像这样

在此处输入图片描述

此外,

\mainline{1. Rc8#}

似乎不起作用。我也在想办法输入解决方案。

谢谢。

答案1

我会将点信息和板子放在一个表格中,这样它们就不会分开。还可以使用 \raggedbottom,这样列就不会拉伸:

\documentclass[12pt,twocolumn]{article}

\usepackage{chessboard}

\usepackage{enumerate}
\usepackage[top=2cm,nofoot,bottom=1cm,left=1cm,right=1cm]{geometry}
\usepackage{fancyhdr}
\usepackage{lastpage}

\lhead{Easy}
%\chead{}
\rhead{test}
%\rhead{SCHOOL NAME}
\lfoot{}
\cfoot{}
\rfoot{}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}

%% FONT
\usepackage[T1]{fontenc}
\usepackage[math]{iwona} %nice font

%% OWN command

\newcommand{\game}[3]{
    \item \begin{tabular}[t]{l}
     (#1 point) \\
    \chessboard[
    setfen= #2,
    mover= #3
    ]
    \end{tabular}
}


\begin{document}\raggedbottom
\pagestyle{fancy}


\begin{enumerate}[Q1.]
\game{1}{1k/pb3p/3p3r/3p3p/1R2rP/2R4B/PP4P/6K}{W}
\game{1}{5b/1pp/6pp/1P1k1p/2KPp/4P/rn2Nppp/2R3K}{W}
\game{1}{/1p2rk/p1pK1n/P/1P/7Q}{B}
\game{1}{4k/p4p//R2pPKPp/3P3P/7r}{B}
\game{1}{r2qkbnr/1p3ppp/p1n/2P/2bpN//PPP1QPPP/R1B1K1NR}{W}
\game{1}{/1p3k/4p1p/Pp2P/1b2qp/1K2Q1p/3B}{W}

\end{enumerate}


\end{document}

在此处输入图片描述

相关内容