如何改变两列的顺序?

如何改变两列的顺序?

是否可以在两列页面样式中更改第 1 列和第 2 列的顺序?换句话说,我想要一个如下所示的乳胶页面:

在此处输入图片描述

谢谢。

答案1

要在从左到右和从右到左的排版列之间切换,multicol包提供了\RLmulticolcolumns\LRmulticolcolumns命令,可以反转生成列的顺序。

\documentclass{article}
\usepackage{multicol}
\usepackage{lipsum}

\begin{document}
\begin{multicols}{2}
\lipsum[1]
\end{multicols}
\RLmulticolcolumns
\begin{multicols}{2}
\lipsum[1]
\end{multicols}
\end{document}

在此处输入图片描述

答案2

ConTeXt 的环境columns允许您使用键更改列的顺序direction

\setupcolumns
  [direction=left]

\starttext

\startcolumns
The Earth, as a habitat for animal life, is in old age and
has a fatal illness. Several, in fact. It would be happening
whether humans had ever evolved or not. But our presence is
like the effect of an old-age patient who smokes many packs
of cigarettes per day – and we humans are the cigarettes.
\stopcolumns

\stoptext

在此处输入图片描述

mixedcolumns使用较新的环境时,必须使用reverse关键字作为direction键。

\setupmixedcolumns
  [align=verytolerant,
   balance=yes,
   direction=reverse]

\starttext

\startmixedcolumns
The Earth, as a habitat for animal life, is in old age and
has a fatal illness. Several, in fact. It would be happening
whether humans had ever evolved or not. But our presence is
like the effect of an old-age patient who smokes many packs
of cigarettes per day – and we humans are the cigarettes.
\stopmixedcolumns

\stoptext

在此处输入图片描述

答案3

这不是一个通用的答案,但很有用。如果我们使用泽佩斯安包然后我们可以使用 \RTLmulticolcolumns 和 \LTRmulticolcolumns 命令来反转顺序。

    \documentclass{article}
    \usepackage{multicol}
    \usepackage{lipsum}
    \usepackage{xepersian}
    \settextfont[Scale=1]{B Nazanin}.
    \setlatintextfont{Times New Roman}
    \setdigitfont[Scale=1]{Yas}
    \begin{document}

    \RTLmulticolcolumns
    \begin{multicols}{2}

    some persian tex

    \end{multicols}
    \LTRmulticolcolumns
    \begin{multicols}{2}

    some persian tex

    \end{multicols}
    \end{document}

相关内容