早上好,我正在写论文,需要在 A4 文档中插入一张 A3 页面,打印后折叠起来,以便插入一张非常大的图表。我需要保留 A4 页面的布局,然后在 A3 页面的左侧水平书写,只有超出 A4 尺寸的图像才会向右扩展。我使用以下代码:
\documentclass[%
corpo=11pt,
twoside,
stile=classica,
oldstyle,
tipotesi=custom,
greek,
evenboxes,
]{toptesi}
\usepackage[paper=A4,pagesize]{typearea}
\usepackage{pdflscape}
\usepackage{graphicx}
\usepackage{afterpage}
\usepackage{setspace}
\usepackage{booktabs}
\usepackage{multicol}
\usepackage{multirow}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{hyperref}
\hypersetup{%
pdfpagemode={UseOutlines},
bookmarksopen,
pdfstartview={FitH},
colorlinks,
linkcolor={blue},
citecolor={blue},
urlcolor={blue}
}
\usepackage[table,xcdraw]{xcolor}
\usepackage{lipsum}
\usepackage{geometry}
\newcommand\fillin[1][4cm]{\makebox[#1]{\dotfill}}
\usepackage{dcolumn}
\newcolumntype{d}{D{.}{.}{-1} }
\usepackage{amsmath}
\newtheorem{osservazione}{Osservazione}
\newtheorem{observation}{Observation}
\usepackage[
backend=biber,
style= numeric,
sorting=none,
defernumbers=true
]{biblatex}
\addbibresource{references.bib}
\usepackage{csquotes}
\begin{document}\errorcontextlines=9
\figurespagetrue
\indici
\mainmatter
\chapter{AAA}
\section{BBB}
\lipsum[150]
\afterpage{% Insert after the current page
\clearpage
\begin{landscape}
\begin{sideways}
\KOMAoptions{paper=A3,pagesize}
\recalctypearea
\section{lalala}
\lipsum[100] \newline
\begin{figure}
\includegraphics[scale=0.4]{Picture}
\caption{caption}\label{caption}
\end{figure}
\end{sideways}
\end{landscape}
\clearpage
\KOMAoptions{paper=A4,pagesize}
\recalctypearea
}
\newpage
\section{CCC}
\end{document}
我得到的结果是文本打印在页面的左侧而不是右侧,并且打印的页眉和页码旋转了 90°。
答案1
不幸的是,您的示例既不起作用(有几条错误消息),也不够简洁(有多个未使用的包,甚至多次加载的包)。所以我不得不制作自己的示例:
\documentclass[%
corpo=11pt,% unknown option
twoside,
stile=classica,% unknown option
oldstyle,
tipotesi=custom,% unknown option
greek,
evenboxes,
]{toptesi}
\usepackage[paper=A4,usegeometry]{typearea}
\usepackage{geometry}
\usepackage{mwe}
\begin{document}
\errorcontextlines=\maxdimen
\chapter{AAA}
\section{BBB}
\lipsum[150]
\clearpage
\storeareas\Aivarea% see KOMA-Script manual section 20.2
\KOMAoption{paper}{a3,landscape}% -"-
\areaset[current]{\dimexpr\textwidth+.5\paperwidth\relax}{\textheight}% -"-
\restoregeometry% But dont use, the enlarged area, use the area of geometry
\section{lalala}
\lipsum[100]
\begin{figure}
\makebox[\textwidth][l]{% avoid overfull \hbox
\begin{minipage}{\dimexpr\textwidth+.5\paperwidth\relax}% extend the width
% for the image and caption
\includegraphics[angle=90,width=\textwidth,height=.7\textheight]{example-image}% Just an example image
\caption{Example image}\label{fig:example}
\end{minipage}%
}
\end{figure}
\clearpage
\Aivarea
\section{CCC}
\end{document}
有关将 A3 横向页面插入 A4 文档的更多信息,请参阅 KOMA-Script 手册第 20.2 节。