
나는이 주제를 찾고있었습니다. 어떻게 해결할 수 있나요?
헤더를 정의할 때 코드에 문제가 있습니다.
\documentclass[12pt,a4paper]{book}
\title{\textbf{TITLE}}
\usepackage[spanish]{babel}
\usepackage{pdflscape}
\usepackage{color, colortbl}
\definecolor{Gray}{gray}{0.9}
\usepackage{caption}
\usepackage{enumitem}
\captionsetup[table]{skip=10pt}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{
\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{
\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt}
\fancypagestyle{plain}{
\fancyhead{}
\renewcommand{\headrulewidth}{Opt}
}
\begin{document}
\maketitle
\newpage
\tableofcontents
\section{RESUMEN EJECUTIVO}
\begin{enumerate}[label=\Alph*]
\item Los Par\'asitos
\item Cuantificar
\end{enumerate}
\end{document}
답변1
이것에서:
\fancypagestyle{plain}{
\fancyhead{}
\renewcommand{\headrulewidth}{Opt}
}
0 대신 "O"(모음)가 있습니다. 여기에 수정된 0과 기타 수정 사항이 포함된 코드가 있습니다(편리하게 증가했으며 and를 \headheight
로드하는 대신 옵션을 사용하여 로드할 수 있음 ). 헤더 문제와 관련이 없는 일부 정보는 표시되지 않습니다.color
colortbl
xcolor
table
\documentclass[12pt,a4paper]{book}
\usepackage[spanish]{babel}
\usepackage{pdflscape}
\usepackage[table]{xcolor}
\usepackage{caption}
\usepackage{enumitem}
\usepackage{fancyhdr}
\definecolor{Gray}{gray}{0.9}
\captionsetup[table]{skip=10pt}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\setlength{\headheight}{14.5pt}
\fancypagestyle{plain}{
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
}
\renewcommand{\chaptermark}[1]{
\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{
\markright{\thesection\ #1}}
\begin{document}
\section{RESUMEN EJECUTIVO}
\begin{enumerate}[label=\Alph*]
\item Los Par\'asitos
\item Cuantificar
\end{enumerate}
\end{document}
\chapter
앞에 a가 없으면 \section
홀수 번호가 매겨집니다.