我猜想可以以某种方式做到这一点。我尝试了以下方法,但还做不到。有人能帮我得到这个页眉和页脚吗?
从偶数到奇数:
从奇数到偶数:
这就是我尝试过的:
\documentclass[twoside,numbers=noenddot]{scrartcl}
\usepackage{lipsum}
\usepackage{multicol}
\usepackage{fancyhdr}
\fancyfoot[LE]{January/February 2013}
\fancyfoot[CE]{Copublished by the IEEE Computer and Reliability Societies}
\fancyfoot[RE]{1540-7993/15/\$31.00 2015 IEEE}
\fancyhead[LO,RE]{bar}
\pagestyle{fancy}
\begin{document}
\pagenumbering{arabic}
\begin{multicols}{2}
\lipsum[3-20]
\end{multicols}
\end{document}
提前致谢。
答案1
这是另一个建议scrlayer-scrpage
\documentclass[twoside,numbers=noenddot]{scrartcl}
\usepackage{lipsum}
\usepackage{multicol}
\usepackage{xcolor}
\newcommand\pagenumberspace{3em}
\usepackage[
headwidth=paper,
footwidth=\the\textwidth+\pagenumberspace:0pt,
headtopline=.5pt,
headsepline=.5pt,
]{scrlayer-scrpage}
\clearscrheadfoot
\lehead*{\rule[-\dp\strutbox]{3em}{\headheight}\quad BAR}
\rohead*{\rule[-\dp\strutbox]{3em}{\headheight}}
\lefoot*{\makebox[0pt][l]{\pagemark}{\normalsize\hspace*{\pagenumberspace}}%
January/February 2013}
\cefoot*{Copublished by the IEEE Computer and Reliability Societies}
\refoot*{1540-7993/15/\$31.00 2015 IEEE}
\lofoot*{www.wherever}
\cofoot*{}
\rofoot*{\pagemark}%
\addtokomafont{pageheadfoot}{\upshape}
\addtokomafont{pagehead}{\color{blue!50!green}}
\addtokomafont{pagefoot}{\tiny}
\addtokomafont{pagenumber}{\normalsize\bfseries}
\begin{document}
\pagenumbering{arabic}
\begin{multicols}{2}
\lipsum[3-20]
\end{multicols}
\end{document}
答案2
\documentclass[twoside,numbers=noenddot]{scrartcl}
\usepackage{lipsum}
\usepackage{multicol}
\usepackage{fancyhdr}
\fancyfoot[LE]{\makebox[0pt][r]{\textbf{\thepage}\hspace{3em}}%
\tiny January/February 2013}
\fancyfoot[CE]{\tiny Copublished by the IEEE Computer and Reliability Societies}
\fancyfoot[RE]{\tiny 1540-7993/15/\$31.00 2015 IEEE}
\fancyhead[LO,RE]{bar}
\fancyfoot[LO]{\tiny www.wherever}
\fancyfoot[CO]{}
\fancyfoot[RO]{\makebox[0pt][l]{\hspace{3em}\textbf{\thepage}}}%
\pagestyle{fancy}
\begin{document}
\pagenumbering{arabic}
\begin{multicols}{2}
\lipsum[3-20]
\end{multicols}
\end{document}
答案3
与 David 的内容相同,但scrlayer-scrpage
建议在 KOMA 课程中使用。最好不要fancyhdr
在这里使用。
\documentclass[twoside,numbers=noenddot]{scrartcl}
\usepackage{lipsum}
\usepackage{multicol}
\usepackage[headsepline]{scrlayer-scrpage}
\lefoot*{\makebox[0pt][r]{\textbf{\thepage}\hspace{3em}}%
\tiny January/February 2013}
\cefoot*{\tiny Copublished by the IEEE Computer and Reliability Societies}
\refoot*{\tiny 1540-7993/15/\$31.00 2015 IEEE}
\ihead*{bar}
\lofoot*{\tiny www.wherever}
\cofoot*{}
\rofoot*{\makebox[0pt][l]{\hspace{3em}\textbf{\thepage}}}%
\begin{document}
\pagenumbering{arabic}
\begin{multicols}{2}
\lipsum[3-20]
\end{multicols}
\end{document}
*
in \cofoot
etc 使参数plain scrheadings
也出现在设置中。有关详细信息,请阅读 KOMA 手册(texdoc scrguien
或 www.texdoc.net)第 5 章第 203 页及以后的内容。