A4 纸张大小报告中 A3 纸张大小的页眉和页脚

A4 纸张大小报告中 A3 纸张大小的页眉和页脚

我如何让第 1 章下的线跟随整个 A3 纸?就像底部的线一样。

 \documentclass[a4paper,11pt,fleqn,twoside,openany]{memoir}
 \usepackage{lipsum}
 \usepackage[dvipsnames]{xcolor}
 \makepagestyle{Uni}
 \makepsmarks{Uni}{%
 \createmark{chapter}{left}{shownumber}{}{. \ }
 \createmark{section}{right}{shownumber}{}{. \ }
 \createplainmark{toc}{both}{\contentsname}
 \createplainmark{lof}{both}{\listfigurename}
 \createplainmark{lot}{both}{\listtablename}
 \createplainmark{bib}{both}{\bibname}
 \createplainmark{index}{both}{\indexname}
 \createplainmark{glossary}{both}{\glossaryname}
 }
 \makeevenhead{Uni}{example}{}{\leftmark}
 \makeoddhead{Uni}{\rightmark}{}{example}           
 \makeevenfoot{Uni}{\thepage}{}{}                           
 \makeoddfoot{Uni}{}{}{\thepage}                                
 \makeheadrule{Uni}{\textwidth}{0.5pt}                      
 \makefootrule{Uni}{\textwidth}{0.5pt}{1mm}                 

 \copypagestyle{Unichap}{Uni}                               
 \makeoddhead{Unichap}{}{}{}
 \makeevenhead{Unichap}{}{}{}
 \makeheadrule{Unichap}{\textwidth}{0pt}
 \aliaspagestyle{chapter}{Unichap}                          
 \pagestyle{Uni}

 \newsavebox{\ChpNumBox}
 \definecolor{ChapBlue}{RGB}{120,200,240}
 \makeatletter
 \newcommand*{\thickhrulefill}{%
 \leavevmode\leaders\hrule height 1\p@ \hfill \kern \z@}
 \newcommand*\BuildChpNum[2]{%
 \begin{tabular}[t]{@{}c@{}}
 \makebox[0pt][c]{#1\strut} \\[.5ex]
 \colorbox{ChapBlue}{%
 \rule[-3,5em]{0pt}{0pt}%
 \rule{1ex}{0pt}\color{black}#2\strut
 \rule{1ex}{0pt}}%
 \end{tabular}}
 \makechapterstyle{BlueBox}{%
 \renewcommand{\chapnamefont}{\large\scshape}
 \renewcommand{\chapnumfont}{\Huge\bfseries}
 \renewcommand{\chaptitlefont}{\raggedright\Huge\bfseries}
 \setlength{\beforechapskip}{10pt}
 \setlength{\midchapskip}{16pt}
 \setlength{\afterchapskip}{10pt}
 \renewcommand{\printchaptername}{}
 \renewcommand{\chapternamenum}{}
 \renewcommand{\printchapternum}{%
 \sbox{\ChpNumBox}{%
 \BuildChpNum{\chapnamefont\@chapapp}%
 {\chapnumfont\thechapter}}}
 \renewcommand{\printchapternonum}{%
 \sbox{\ChpNumBox}{%
 \BuildChpNum{\chapnamefont\vphantom{\@chapapp}}%
 {\chapnumfont\hphantom{\thechapter}}}}
 \renewcommand{\afterchapternum}{}
 \renewcommand{\printchaptertitle}[1]{%
 \usebox{\ChpNumBox}\hfill
 \parbox[t]{\hsize-\wd\ChpNumBox-1em}{%
 \vspace{\midchapskip}%
 \thickhrulefill\par
 \chaptitlefont ##1\par}}%
 } 
 \chapterstyle{BlueBox}    

 \begin{document}



 \thispagestyle{empty}
 {\pdfpagewidth=2\pdfpagewidth
 \textwidth=350mm

 \chapter{example}

 \begin{table}
 \centering
 \begin{tabular}{l|l}
 1.1 & 295 \\
 1.2 & 345 \\
 \end{tabular}
 \end{table}

 \lipsum 

 \end{document}

答案1

解决您的问题最简单的方法是使用固定宽度设置线条350mm,而不是使用跨越的引线\textwidth

\newcommand*{\thickhrulefill}{%
  \makebox[0pt][l]{\rule{350mm}{1pt}}}
  %\leavevmode\leaders\hrule height 1\p@ \hfill \kern \z@}

在此处输入图片描述

相关内容