具有奇数/偶数页边距的多页图表列表

具有奇数/偶数页边距的多页图表列表

我的论文与内边距(奇数/偶数页)有关,这让我很头疼。

我的大学要求标题页没有编号;前言(致谢、献词、摘要、目录、表格/图表列表等)有罗马编号;论文的其余部分有阿拉伯编号。

我已完成所有操作,但为了使简介从阿拉伯语页面“1”开始,我不得不使用\setcounter{page}{1}。为了使一切正常,即获得连续的奇数/偶数页边距,我不得不在\blankpage偶数页紧随另一个偶数页的任何地方散布命令。

在执行此操作时,我注意到我的表格列表有两个偶数页(窄内边距)。当我在 Sumatra PDF 查看器中查看时,我可以看到表格列表从第页开始viii,并且表格列表的第二页viii.i在页面底部没有页码。

奇怪的是,目录没有这个问题。

我不知道如何使用\blankpage命令来修复这个问题,我的表格列表占用了大约整整两页。表格列表后面的页面是简介的第一页,即阿拉伯语第 1 页。

谢谢你的帮助!

答案1

您可以使用\frontmatter\mainmatter将第一部分(摘要等)与其余部分分开,从而允许不同的编号。

您可以使用该fancyhdr包自定义页面布局,\cleardoublepage{}并使章节始终从奇数页开始。

由于您没有添加 mwe,我想您正在使用book带有twosided(默认)选项的 documentclass:

% arara: pdflatex
% arara: biber
% arara: pdflatex
% arara: pdflatex
\documentclass[11pt,openright]{book}
\usepackage[english]{babel}

\usepackage{mwe}% only for testing purpose

% page layout
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=3cm,bmargin=3.5cm,lmargin=4cm,rmargin=3cm,marginparwidth=70pt}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

\usepackage{fancyhdr}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage[margin=10pt,font=small,labelfont=bf,labelsep=period,format=hang,indention=0cm]{caption}
\captionsetup[table]{position=above, belowskip=4pt}
\usepackage[style=authoryear-icomp, backend=biber]{biblatex}
\usepackage{csquotes}
\addbibresource{biblatex-examples.bib}

% fixes the page number of the first page of each chapter
\fancypagestyle{plain}{
    \fancyhead{}
    \renewcommand{\headrulewidth}{0pt}
    \renewcommand{\footrulewidth}{0pt}
    \fancyfoot[OC]{\begin{flushright}\thepage\end{flushright}}
}

% fancy headers for the thesis
\fancyhead{}
\fancyhead[LE]{\slshape \nouppercase \leftmark}
\fancyhead[RO]{\slshape \nouppercase \rightmark}
\fancyfoot[EC]{\begin{flushleft}\thepage\end{flushleft}}
\fancyfoot[OC]{\begin{flushright}\thepage\end{flushright}}
\renewcommand{\headrulewidth}{0.4pt}
\setlength{\headheight}{14pt}

\begin{document}
    \frontmatter
    \pagenumbering{Alph} % avoid the problem with page anchors
    \pagestyle{empty}
    \vfill  
    \begin{center}
        Title page
    \end{center}
    \begin{center}
        \Huge Why people never add a mwe to their post?
    \end{center}
    \begin{center}
        The title page has no numbers. 

        I haven't adjust the geometry of the first page, I leave that to you, because I use \texttt{frontespizio} package.
    \end{center}
    \vfill
    \cleardoublepage{}

    \pagenumbering{roman}
    \pagestyle{fancy}

    \chapter{Acknowledgments}
    \markboth{Acknowledgments}{Acknowledgments}
    Roman numbering starts from here.
    \cleardoublepage{}

    % dedication
    \pagestyle{plain}

    \begin{flushright}
        \emph{To all my \TeX -\LaTeX\ friends!}

        I don't know if you want the dedication page this way.
    \end{flushright}
    \cleardoublepage{}

    \pagestyle{fancy}

    \chapter{Abstract}
    \markboth{Abstract}{Abstract}
    Please always add a mwe!
    \cleardoublepage{}

    \tableofcontents{}
    \cleardoublepage{}

    \listoftables
    \cleardoublepage{}

    \listoffigures
    \cleardoublepage{}

    \mainmatter
    \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
    \renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}

    \chapter{This is the first}
    \section{A section}
    The Arabic numbering starts from here.

    \blindtext
    Just to don't have am empy bibliography: \textcite{knuth:ct}. 
    \begin{figure}
        \centering
        \includegraphics[width=0.5\textwidth]{example-image-a}
        \caption{A figure}
    \end{figure}
    \begin{table}
        \centering
        \begin{tabular}{cc}
            \toprule
            A & B \\
            \midrule
            1 & 2 \\
            \bottomrule
        \end{tabular}
        \caption{A Table}
    \end{table}
    \cleardoublepage{}

    \chapter{This is the second}
    \section{A section}
    \blindtext
    \begin{figure}
        \centering
        \includegraphics[width=0.5\textwidth]{example-image-a}
        \caption{A figure}
    \end{figure}
    \begin{table}
        \centering
        \begin{tabular}{cc}
            \toprule
            A & B \\
            \midrule
            1 & 2 \\
            \bottomrule
        \end{tabular}
        \caption{A Table}
    \end{table}
    \cleardoublepage{}

    \chapter*{Conclusions}
    \addcontentsline{toc}{chapter}{Conclusions}
    \markboth{Conclusions}{Conclusions}
    \blindtext
    \cleardoublepage{}

    \addcontentsline{toc}{chapter}{Bibliography}
    \markboth{Bibliography}{Bibliography}
    \printbibliography
    Just for example I've used \texttt{biblatex}.

\end{document}

编辑:

正如 Johannes_B 所说,您之前有一个问题,与此类似,我从中意识到您正在使用 documentclass report,它不提供\frontmatter\mainmatter。但是,这不是问题,因为无论如何您都可以轻松修复编号。

% arara: pdflatex
% arara: biber
% arara: pdflatex
% arara: pdflatex
\documentclass[11pt,a4paper,twoside]{report}
\usepackage[inner=4cm,outer=2cm,bottom=3cm]{geometry}
\usepackage{setspace}
\onehalfspacing
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}

% only for testing purpose - start
\usepackage{mwe}
% the following instructions are taken from here: http://tex.stackexchange.com/a/37396
% and are used only to repeat tables and figures n times in order to create
% long LoT and LoF
\usepackage{forloop}% http://ctan.org/pkg/forloop
\newcounter{loopcntr}%
\newcommand{\rpt}[2][1]{%
    \forloop{loopcntr}{0}{\value{loopcntr}<#1}{#2}%
}
% only for testing purpose - stop

% page layout
\usepackage{fancyhdr}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage[margin=10pt,font=small,labelfont=bf,labelsep=period,format=hang,indention=0cm]{caption}
\captionsetup[table]{position=above, belowskip=4pt}
\usepackage[style=authoryear-icomp, backend=biber]{biblatex}
\usepackage{csquotes}
\addbibresource{biblatex-examples.bib}

% fixes the page number of the first page of each chapter
\fancypagestyle{plain}{
    \fancyhead{}
    \renewcommand{\headrulewidth}{0pt}
    \renewcommand{\footrulewidth}{0pt}
    \fancyfoot[OC]{\begin{flushright}\thepage\end{flushright}}
}

% fancy headers for the thesis
\fancyhead{}
\fancyhead[LE]{\slshape \nouppercase \leftmark}
\fancyhead[RO]{\slshape \nouppercase \rightmark}
\fancyfoot[EC]{\begin{flushleft}\thepage\end{flushleft}}
\fancyfoot[OC]{\begin{flushright}\thepage\end{flushright}}
\renewcommand{\headrulewidth}{0.4pt}
\setlength{\headheight}{14pt}

\begin{document}

    \pagenumbering{Alph} % avoid the problem with page anchors
    \pagestyle{empty}
    \vfill  
    \begin{center}
        Title page
    \end{center}
    \begin{center}
        \Huge Why people never add a mwe

         to their post?
    \end{center}
    \begin{center}
        The title page has no numbers. 

        I haven't adjust the geometry of the first page, I leave that to you, because I use \texttt{frontespizio} package.
    \end{center}
    \vfill
    \cleardoublepage{}

    \pagenumbering{roman}
    \pagestyle{fancy}

    \chapter*{Acknowledgments}
    \addcontentsline{toc}{chapter}{Acknowledgments}
    \markboth{Acknowledgments}{Acknowledgments}
    Roman numbering starts from here.
    \cleardoublepage{}

    % dedication
    \pagestyle{plain}

    \begin{flushright}
        \emph{To all my \TeX -\LaTeX\ friends!}

        I don't know if you want the dedication page this way.
    \end{flushright}
    \cleardoublepage{}

    \pagestyle{fancy}

    \chapter*{Abstract}
    \addcontentsline{toc}{chapter}{Abstract}
    \markboth{Abstract}{Abstract}
    Please always add a mwe!
    \cleardoublepage{}

    \tableofcontents{}
    \cleardoublepage{}

    \listoftables
    \cleardoublepage{}

    \listoffigures
    \cleardoublepage{}

    \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
    \renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}

    \pagenumbering{arabic}
    \chapter{Introduction}
    \section{A section}
    The Arabic numbering starts from here.

    \blindtext

    An citation: \textcite{knuth:ct}.

    \rpt[40]{% this is only to repeat the figure n times
        \begin{figure}
            \centering
            \includegraphics[width=0.5\textwidth]{example-image-a}
            \caption{A figure}
    \end{figure}
    } 
    \rpt[10]{% this is only to repeat the table n times
    \begin{table}
        \centering
        \begin{tabular}{cc}
            \toprule
            A & B \\
            \midrule
            1 & 2 \\
            \bottomrule
        \end{tabular}
        \caption{A Table}
    \end{table}
    \blindtext
    }
    \cleardoublepage

    \chapter{Literature Review}
    \section{A section}
    \blindtext
    \begin{figure}
        \centering
        \includegraphics[width=0.5\textwidth]{example-image-a}
        \caption{A figure}
    \end{figure}
    \begin{table}
        \centering
        \begin{tabular}{cc}
            \toprule
            A & B \\
            \midrule
            1 & 2 \\
            \bottomrule
        \end{tabular}
        \caption{A Table}
    \end{table}
    \cleardoublepage

    \chapter*{Conclusions}
    \addcontentsline{toc}{chapter}{Conclusions}
    \markboth{Conclusions}{Conclusions}
    \blindtext
    \cleardoublepage{}

    \addcontentsline{toc}{chapter}{Bibliography}
    \markboth{Bibliography}{Bibliography}
    \printbibliography
    Just for example I've used \texttt{biblatex}.

\end{document}

相关内容