相互矛盾的序言

相互矛盾的序言

我的页眉显示在文档的每一页上(章节页除外),但出现了问题。我将 MWE 包含在我使用的所有软件包中,想看看是否有人知道导致页眉和页脚无法构建的矛盾之处。

梅威瑟:

\documentclass[twoside, openany]{book}
\usepackage[subpreambles=true]{standalone}
\usepackage[utf8]{inputenc} 
\usepackage{pdfpages}
\usepackage[paperheight=7.5in,paperwidth=7.5in,left=1in,right=1in,top=1in,bottom=1in]{geometry}
\usepackage[hidelinks]{hyperref}
\usepackage{graphicx, amsmath, xcolor, wrapfig, float, subfiles, enumitem, xcoffins, atbegshi,fontspec, etoolbox}
\usepackage[outline]{contour}
\usepackage[none]{hyphenat}
\usepackage[font=small,labelfont=bf]{caption}
%\setmainfont{Futura}

\usepackage{titlesec}
\titleformat{\chapter}{}{}{0em}{\bf\LARGE}
\titleformat*{\subsubsection}{\Large\bfseries}

\setlength{\parindent}{0pt}
\setcounter{secnumdepth}{-1}
\setcounter{tocdepth}{3}

\renewcommand\chaptermark[1]{%
   \markright{\thechapter\ #1}}

\newcommand{\changefont}{%
    \fontsize{10}{9}\selectfont
}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LO]{\textit\rightmark}
\fancyhead[RO]{\thepage}
\fancyhead[LE]{\thepage}
\fancyhead[RE]{\textit\leftmark}
\renewcommand{\headrulewidth}{0pt}

\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{fancy}}{}{}


\definecolor{BLUE}{HTML}{23afdc}
\definecolor{RED}{HTML}{a81e2d}
\definecolor{ORANGE}{HTML}{ea6d3c}
\definecolor{YELLOW}{HTML}{e6a327}
\definecolor{GREEN}{HTML}{5fa244}
\definecolor{INDIGO}{HTML}{005988}
\definecolor{VIOLET}{HTML}{7B2C8E}

\begin{document}

\frontmatter

\import{titlepage/}{titlepage.tex}


\tableofcontents

\import{introduction/}{introduction.tex}

\import{overview/}{overview.tex}

\import{components/}{components.tex}

\mainmatter

\import{level1/}{level1.tex}

\import{level2/}{level2.tex}

\import{level3/}{level3.tex}

\includepdf[pages=-, addtotoc={1,section,1,0. The Fool,h0}]{0.TheFool}

\includepdf[pages=-, addtotoc={1,section,1,I. Fireyes,h1}]{I.Fireyes.pdf}


\end{document}

当我构建主文件时,只可以让页眉出现在几个偶数页上。

使用子文件时,导入页面的前言部分到底需要包含什么才能使其正常工作?

每个导入的 TeX 文件都有非常基本的前言,并且只是带有一些图像的文本文件。任何帮助都将不胜感激。

谢谢你!

相关内容