大家好吗?我们又开始 TeX 冒险之旅了。
问题是。我的文档中有些页面是 A3 格式,因为它们是巨大的图表。其余的是 A4 格式。页脚设置为 A4 格式,并且相同的页脚显示在 A3 格式中。
我想要实现的是让 A3 页脚中的行更长、间距更长等。也就是说,与 A3 格式成比例。我认为我必须“打破”这个页脚,换成另一个,然后让 A4 页脚从“打破”的位置继续,在下一个 A4 页中。我还附上了一张我现在拥有的图片。任何帮助都将不胜感激。谢谢。
我拥有的标准 A4 页脚代码是:(如果 MWE 太长,我很抱歉,请随意编辑掉不需要的部分)
\lfoot{\footnotesize \texttt{Structured Cabling} \textbullet ~Projeto}
\cfoot{}
\rfoot{\footnotesize Page \thepage\ of \pageref{LastPage}} % "Page 1 of 2"
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.4pt}
梅威瑟:
\documentclass[ DIV=calc,%
paper=a4,%
fontsize=12pt,%
onecolumn]{scrartcl} % KOMA-article class
\usepackage{lipsum} % Package to create dummy text
\usepackage[brazil]{babel} % English language/hyphenation
\usepackage[protrusion=true,expansion=true]{microtype} % Better typography
\usepackage{amsmath,amsfonts,amsthm} % Math packages
\usepackage[pdftex]{graphicx} % Enable pdflatex
\usepackage[svgnames]{xcolor} % Enabling colors by their 'svgnames'
\usepackage[hang, small,labelfont=bf,up,textfont=it,up]{caption} % Custom captions under/above floats
\usepackage{epstopdf} % Converts .eps to .pdf
\usepackage{subfig} % Subfigures
\usepackage{booktabs} % Nicer tables
\usepackage{float}
\usepackage{fix-cm} % Custom fontsizes
\usepackage[utf8]{inputenc}
\usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry}
\usepackage[ddmmyyyy]{datetime}
\addto\captionsenglish{%
\renewcommand\tablename{Tabela}
\renewcommand\figurename{Figura}
}
%%% Custom sectioning (sectsty package)
\usepackage{sectsty} % Custom sectioning (see below)
\allsectionsfont{% % Change font of al section commands
\usefont{OT1}{phv}{b}{n}% % bch-b-n: CharterBT-Bold font
}
\sectionfont{% % Change font of \section command
\usefont{OT1}{phv}{b}{n}% % bch-b-n: CharterBT-Bold font
}
%%% Headers and footers
\usepackage{fancyhdr} % Needed to define custom headers/footers
\pagestyle{fancy} % Enabling the custom headers/footers
\usepackage{lastpage}
% Header (empty)
\lhead{}
\chead{}
\rhead{}
% Footer (you may change this to your own needs)
\lfoot{\footnotesize \texttt{Cabeamento estruturado} \textbullet ~Projeto}
\cfoot{}
\rfoot{\footnotesize Página \thepage\ de \pageref{LastPage}} % "Page 1 of 2"
\renewcommand{\headrulewidth}{0.0pt}
\renewcommand{\footrulewidth}{0.4pt}
%%% Creating an initial of the very first character of the content
\usepackage{lettrine}
\newcommand{\initial}[1]{%
\lettrine[lines=3,lhang=0.3,nindent=0em]{
\color{DarkBlue}
{\textsf{#1}}}{}}
而且我认为我需要展示如何将页面转换为 A3/横向并转换回 A4/纵向。
%create landscape A3
\clearpage
\KOMAoptions{paper=a3, paper=landscape, DIV=20}
\recalctypearea
%\subsection{Topologia}
\begin{figure}
% \centering
\noindent\makebox[\textwidth][c]{
\includegraphics[width=\textwidth]{topologia}
}
\caption{Visão da topologia - Formato A3}
\label{fig1}
\end{figure}
% go back to A4/portrait
\clearpage
\KOMAoptions{paper=a4, paper=portrait, DIV=15}
\recalctypearea