格式噩梦

格式噩梦

这是我第一次用 LaTeX 写论文。我对文档的格式有几个头疼的地方:

  1. 12pt 在纸上看起来比正常的 12pt 字体大小要小。这是已知的问题还是我的设置覆盖了默认大小?

    \documentclass[12pt, oneside, a4paper, leqno]{report}
        \linespread{1.5}
        \usepackage{geometry}
        \geometry{a4paper, left=30.5mm, right=22.5mm, top=30mm, bottom=20mm}
    
  2. 今天早些时候我有一个很棒的 hdr,但它消失了。不知道为什么或如何恢复它。

    \pagestyle{fancy}
        \fancyhf{}
        \rhead{Fraud Discovery Using Data Mining}
        \rfoot{Page \thepage}
    
  3. 我有从简介开始的页码,但它们也消失了。我有一个没有页码的目录和摘要。

  4. 如何将页脚固定为距离页面底部 XX 厘米?就像在 Word 中一样。我的某些页面的页脚底部和页面底部之间有很大空间。

这是序言,抱歉!我对 LaTeX 还很陌生,把它弄得一团糟。

    \documentclass[12pt, oneside, a4paper, leqno]{report}
    \linespread{1.5}
    \usepackage{geometry}
    \geometry{a4paper, left=30.5mm, right=22.5mm, top=30mm, bottom=20mm}
    %\usepackage{times}
    \usepackage[export]{adjustbox}
    \usepackage{fancyhdr}
    \usepackage{tikz}
    \usetikzlibrary{arrows}
    \usepackage{cite}
    \usepackage{mathtools}
    \usepackage{scrextend}
    \usepackage{apacite}
    \usepackage{float}
    \setcounter{tocdepth}{4}
    \usepackage{amsfonts}
    \usepackage{tabularx}
    \usepackage{array}
    \usepackage{amsmath}
    \usepackage{eurosym}
    \usepackage{tikz}
    \usepackage{booktabs}
    \usepackage[flushleft]{threeparttable}
    \usepackage{graphicx}
    %\usepackage{epstopdf}
    \usepackage{url}
    \usepackage[english]{babel}
    \usepackage{multicol} 
    \usepackage{pgf}
    \graphicspath{ {images/} }
    \usepackage{caption}
    \usepackage{boldline}
    \usepackage{pdflscape}
    \usepackage{tcolorbox}
    \usepackage{pgfplots}
    \usepackage{pst-plot}
    \usepackage{pdfpages}
    \usepackage{appendix}
    \usepackage{mathtools}
    \usepackage{array}
    \usepackage{makecell}
    \pgfplotsset{xticklabel={\tick},scaled x ticks=false}
    \pgfplotsset{plot coordinates/math parser=false}
    \pgfplotsset{compat=1.8}
    \usepgfplotslibrary{statistics}
    %\newcommand*{\h}{\hspace{5pt}}% for indentation
    %\newcommand*{\hh}{\h\h}% double indentation
    \usepackage{amsmath}
    \newtcolorbox[auto counter,number within=section]{pabox}[2][]{colback=black!5!white,colframe=black!75!white,fonttitle=\bfseries, title=Figure \thetcbcounter:#1}
    \usetikzlibrary{arrows}
    \setlength{\parindent}{15pt}
    \setlength{\arrayrulewidth}{.05em}
    %\pagestyle{fancy}
    \fancyhf{}
    \rhead{Fraud Discovery Using Data Mining}
    \rfoot{Page \thepage}


     %Beginning of document:


        \begin{document}  
           % \input{cover_page}
            \thispagestyle{empty}
            \include{abstract}
            \thispagestyle{empty}
            \renewcommand\contentsname{Table of Contents}\pagestyle{empty} 
            \tableofcontents{\protect\thispagestyle{empty} % Table of contents
        \pagestyle{empty} 
        \cleardoublepage
        \pagestyle{plain}
    \section{Intro}
    Researchers have conducted studies in order to develop a deep 
    understanding of fraudulent behavior. We believe understanding the 
    psychological aspects of fraud can be very beneficial for fraud detection 
    and prevention.

\end{document}

答案1

在此处输入图片描述

你定义了一个漂亮的页面样式,但注释掉了该样式的使用,即使取消注释,你也覆盖了它多种的空样式和纯样式的次数。此外,还报告了几个错误和未关闭的组。

  \documentclass[12pt, oneside, a4paper, leqno]{report}
    \linespread{1.5}
    \usepackage{geometry}
    \geometry{a4paper, left=30.5mm, right=22.5mm, top=30mm, bottom=20mm}
    \usepackage[export]{adjustbox}
    \usepackage{fancyhdr}
    \usepackage{tikz}
    \usetikzlibrary{arrows}
    \usepackage{cite}
    \usepackage{tcolorbox}
    \usepackage{amsmath}
    \newtcolorbox[auto counter,number within=section]{pabox}[2][]{colback=black!5!white,colframe=black!75!white,fonttitle=\bfseries, title=Figure \thetcbcounter:#1}

    \setlength{\parindent}{15pt}
    \setlength{\arrayrulewidth}{.05em}

    \fancyhf{}
    \rhead{Fraud Discovery Using Data Mining}%<- this is quite odd, to have fixed head!!
    \rfoot{Page \thepage}
    \pagestyle{fancy}

     %Beginning of document:


        \begin{document}  
            %\input{cover_page}
            \thispagestyle{empty}
            \include{abstract}
%            \thispagestyle{empty}
% no!            \renewcommand\contentsname{Table of Contents}\pagestyle{empty} 
            \tableofcontents
%{\protect\thispagestyle{empty} % Table of contents %% no idea what 
       % \pagestyle{empty} 
        \cleardoublepage
      %  \pagestyle{plain}
    \section{Intro}
    Researchers have conducted studies in order to develop a deep 
    understanding of fraudulent behavior. We believe understanding the 
    psychological aspects of fraud can be very beneficial for fraud detection 
    and prevention.

\end{document}

相关内容