脚注和数字超出页边距

脚注和数字超出页边距

我肯定是把加载的包搞乱了。图和脚注超出了文本的边缘。有人知道为什么吗?请参阅下面的 MWE,其中包含我的完整序言。标题中的部分代码旨在确保脚注不缩进。

在此处输入图片描述

平均能量损失

\documentclass[a4paper,11pt]{article}
%\pdfminorversion=6
\usepackage[singlespacing]{setspace}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{mathpazo}
\usepackage{relsize}
\usepackage[a4paper,left=0.8in,right=0.8in,top=0.8in,bottom=0.8in]{geometry}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{subfig}
\usepackage{bbm}
\usepackage{graphicx}
\usepackage{color}
\usepackage{mathtools}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage[table,xcdraw]{xcolor}
\usepackage{graphics}
\usepackage{threeparttable}
\usepackage[]{blindtext}
\usepackage[round]{natbib}
\usepackage[affil-it, auth-sc]{authblk}
\usepackage{nicefrac}
\usepackage{rotating}
\usepackage{eurosym}
\usepackage{float}
\floatstyle{plaintop}
\restylefloat{table}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, positioning}
\usetikzlibrary{calc}
%\usepackage[multiple]{footmisc}
\newcommand\fnsep{\textsuperscript{,}}
\renewcommand\Affilfont{\normalfont \itshape \small}
\renewcommand{\arraystretch}{1.2}
\usepackage{setspace}
\usepackage{ulem}
\renewcommand\Authsep{}
\renewcommand\Authand{}
\renewcommand\Authands{}
\usepackage{ragged2e}
\usepackage{verbatim}
\newcommand{\RomanNumeralCaps}[1]{\MakeUppercase{\romannumeral #1}}
\makeatletter
\newlength{\fnBreite}
\renewcommand{\@makefntext}[1]{%
  \settowidth{\fnBreite}{\footnotesize\@thefnmark.i}
  \protect\footnotesize\upshape%
  \setlength{\@tempdima}{\columnwidth}\addtolength{\@tempdima}{-\fnBreite}%
  \makebox[\fnBreite][l]{\@thefnmark.\phantom{}}%
  \parbox[t]{\@tempdima}{\everypar{\hspace*{1em}}\hspace*{-1em}\upshape#1}}
\makeatother
\makeatletter
\NewDocumentCommand{\appendixsection}{ m }{
    \renewcommand{\@seccntformat}[1]{Appendix\ \csname the##1\endcsname\quad}
    \section{#1}
}
\makeatother
\usepackage{lipsum}  
\newtheorem{theorem}{Theorem}
\newtheorem{hypothesis}[theorem]{Hypothesis}
\definecolor{myauthor}{RGB}{0,120,0}
\usepackage[pdftex,unicode,colorlinks=true,urlcolor=blue,linkcolor=blue,citecolor=myauthor]{hyperref} 
\pagestyle{plain}

\title{A nice title \thanks{\noindent I thank Albert Einstein}}
\author[1]{Albus Dumbledore}
\affil[1]{Hogwarts}

\begin{document}
\selectlanguage{english}
\maketitle
\thispagestyle{empty}

\abstract{\noindent \lipsum[1]
\bigskip
\onehalfspacing
\setcounter{page}{0}
\newpage



\lipsum[2-4]
andginowbghworisb\footnote{adhbgwsoinf nABVDSVSFD ASGCQE ZHDA}
\begin{figure}[H]
    \centering
    \includegraphics[width=\textwidth]{figures/pexels-pixabay-255419.jpg}
\end{figure}


\end{document}

答案1

图表和脚注完全适合页边距,不适合的是您的文本。它仍然具有摘要的较宽页边距。您需要用以下内容结束摘要以\end{abstract}获得文本的正确页边距:

\documentclass[a4paper,11pt]{article}

\usepackage{graphicx}
\usepackage{lipsum}

\begin{document}

\begin{abstract}
  \lipsum[2]
\end{abstract}

\lipsum[2]
andginowbghworisb\footnote{adhbgwsoinf nABVDSVSFD ASGCQE ZHDA}
\begin{figure}[htbp]
    \centering
    \includegraphics[width=\columnwidth]{example-image-duck}
\end{figure}

\end{document}

在此处输入图片描述

相关内容