如何为分两栏的页的每一栏设置“栏码”,而不是页码?

发布于 2024-02-28 12:32:55

我想用 xeLaTeX 排版一张类似于高考试卷的文档,请问如何在分两栏情况下为每一栏都设置“栏码”呢?

以b3横向纸为例:

第1页,左栏设置页脚为1,右栏设置页脚为2;
第2页,左栏设置页脚为3,右栏设置页脚为4;
以此类推,得到左页脚为:

2\thepage-1

右页脚为:

2\thepage

不过我不太清楚应该怎么去表述这个页脚和页面的引用之间的关系……

我的初步想法是用fancyhdr使左右页脚偏移到分栏的中间大致位置。

经多方搜索后,冥冥中感觉跟计数器有关,我搞不懂~

以下是mwe:

\documentclass[UTF8,12pt,b3paper,landscape,twocolumn]{ctexart}
\usepackage{geometry}
    \geometry{right=2cm,left=2cm,top=2.5cm,bottom=3cm,centering}
\usepackage{fancyhdr,lastpage}
    \pagestyle{fancy}
    \fancyhead[L,C,R]{}
    \renewcommand{\headrulewidth}{0pt}
    \newcommand{\lpagefoot}{{第\thepage 页(共\pageref{LastPage} 页)}}
    \newcommand{\rpagefoot}{{第\thepage 页(共\pageref{LastPage} 页)}}
    \fancyfoot[L]{\lpagefoot}\fancyfootoffset[L]{-92.5mm}
    \fancyfoot[C]{}%左页脚和右页脚的偏移量不够完美:calc宏包?
    \fancyfoot[R]{\rpagefoot}\fancyfootoffset[R]{-82.5mm}
\usepackage{multicol}
    \setlength{\columnsep}{2cm}
    \columnseprule=1pt
\usepackage{zhlipsum}
%\usepackage{calc}
\begin{document}
    \begin{center}
    {\Large\bfseries{祝\quad 福}}
    \vspace*{0.5cm}
    
    {\kaishu{鲁\quad 迅}}
    \end{center}
    
    \zihao{4}\linespread{1.5}\selectfont
    \zhlipsum[1-120][name=zhufu]
\end{document}

查看更多

关注者
0
被浏览
117
0 个回答
暂无答案,快来添加答案吧

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览