我的科学论文快要完成了,但我遇到了一个恼人的问题。我的论文中的一些页边距发生了偏移。请查看附件。我的编辑没有任何错误或警告。我收到的唯一消息是下面的消息。我该如何修复这个页边距偏移?:)
\documentclass[a4paper,12pt,english,twoside]{extreport}
% ustawienia marginesów
\usepackage{geometry}
\geometry{
a4paper,
top=25mm,
inner=35mm,
outer=25mm,
bottom=25mm,
}
% ustawienie interlinii na 1.5
\renewcommand{\baselinestretch}{1.5}
% ustawienia paragrafów
\setlength{\parskip}{1em}
% zmiana punktowania list na myślniki
\renewcommand\labelitemi{---}
% polskie znaki
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
% \usepackage[polish]{babel}
% \usepackage{polski}
% bibliografia
\usepackage{csquotes}
\usepackage[backend=biber,style=numeric,sorting=none]{biblatex}
\addbibresource{bibliography.bib}
\usepackage{hyperref}
% listingi i spis listingów
\usepackage{listings}
\usepackage[center]{caption}
\DeclareCaptionType{code}[Listing][List of listings]
\lstset{breaklines=true,basicstyle=\ttfamily\scriptsize}
% rysunki i spis rysunków
\usepackage{float}
\usepackage{graphicx}
\graphicspath{ {./img/} }
\usepackage[nottoc]{tocbibind}
% tabele
\floatstyle{plaintop}
\restylefloat{table}
\captionsetup[table]{name=Tabel}
\usepackage{color}
\usepackage{listings}
\lstset{ %
language=Python, % choose the language of the code
basicstyle=\footnotesize, % the size of the fonts that are used for the code
numbers=left, % where to put the line-numbers
numberstyle=\footnotesize, % the size of the fonts that are used for the line-numbers
stepnumber=1, % the step between two line-numbers. If it is 1 each line will be numbered
numbersep=5pt, % how far the line-numbers are from the code
backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
showspaces=false, % show spaces adding particular underscores
showstringspaces=false, % underline spaces within strings
showtabs=false, % show tabs within strings adding particular underscores
frame=single, % adds a frame around the code
tabsize=2, % sets default tabsize to 2 spaces
captionpos=b, % sets the caption-position to bottom
breaklines=true, % sets automatic line breaking
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
escapeinside={\%*}{*)} % if you want to add a comment within your code
}
% strona tytułowa
\usepackage{pdfpages}
% treść
\begin{document}
\pagenumbering{gobble}
\includepdf[pages={1}]{pdf/title_page}
% \null\newpage
\pagenumbering{arabic}
\input{tableofcontents}
\input{./Chapters/chapter1}
\input{./Chapters/chapter2}
\input{./Chapters/chapter3}
\input{./Chapters/chapter4}
\input{./Chapters/chapter5}
\input{./Chapters/chapter6}
\input{./Chapters/chapter7}
\input{./Chapters/onsetDetection}
% \section{Wstawianie odniesień do literatury}
% Odniesienie do książki \cite{example_book}. Odniesienie do strony internetowej \cite{example_website}.
\newpage
\printbibliography[heading=bibintoc]
\newpage
\listoffigures
\newpage
\listofcodes
\newpage
\renewcommand{\listtablename}{List of tabels}
\listoftables
\end{document}
答案1
由于您使用文档选项,页边距会发生偏移twoside
。此选项设置页边距,使其在双页时感觉正确(感谢@Ulrike!),因此它会在偶数页和奇数页之间移动页边距(此外,页码、页眉等的位置可能取决于偶数/奇数页)。
顺便说一句,这些underfull
盒子完全不相关......
(可能是重复的。让我们看看我是否可以找到它......)