![如何在 Latex 文章中包含章节名称](https://linux22.com/image/452456/%E5%A6%82%E4%BD%95%E5%9C%A8%20Latex%20%E6%96%87%E7%AB%A0%E4%B8%AD%E5%8C%85%E5%90%AB%E7%AB%A0%E8%8A%82%E5%90%8D%E7%A7%B0.png)
我尝试使用 fancyhdr 包将章节名称包含在 latex 文章的标题中。但是,在尝试了各种选项后,似乎有另一个包阻止了该命令。
任何帮助都将不胜感激。请在下面找到已加载的软件包。
\documentclass[11pt]{article} % paper and 12pt font size %kan nog naar 11pt
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\sectionmark}[1]{%
\markboth{\thesection\quad #1}{}}
\fancyhead{}
\fancyhead[L]{\leftmark}
\fancyfoot{}
\fancyfoot[C]{\thepage}
\usepackage{setspace}
\setstretch{1}
\usepackage{xparse}
\usepackage{array}
\usepackage{graphicx}
\usepackage{scalerel,stackengine}
\stackMath
\newcommand\reallywidehat[1]{%
\savestack{\tmpbox}{\stretchto{%
\scaleto{%
\scalerel*[\widthof{\ensuremath{#1}}]{\kern-.6pt\bigwedge\kern-.6pt}%
{\rule[-\textheight/2]{1ex}{\textheight}}%WIDTH-LIMITED BIG WEDGE
}{\textheight}%
}{0.5ex}}%
\stackon[1pt]{#1}{\tmpbox}%
}
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\usepackage{paracol}
\usepackage{listings}
\usepackage[english]{babel}
\usepackage{float}
\usepackage{rotating}
\restylefloat{table}
\usepackage{esvect}
\usepackage{caption}
\captionsetup[figure]{font=small}
\captionsetup{justification=centering}
\usepackage{indentfirst}
\usepackage{amsmath,amsfonts,amsthm}
\DeclareMathOperator{\Var}{\mathbb{V}ar}
\DeclareMathOperator{\E}{\mathbb{E}}
\numberwithin{table}{section}
\newcolumntype{L}{>{\RaggedRight\arraybackslash}X}
\usepackage{tabularx,booktabs,ragged2e}
\usepackage{fullpage}
%\usepackage{times}
%\onehalfspacing
%\doublespacing
\linespread{1.3}
\usepackage[citebordercolor={1 1 1}, linkbordercolor={1 1 1}, urlbordercolor={1 1 1}]{hyperref}
\newcommand\solidcirc[4][0]{\rotatebox{#1}{\tikz{\draw[line width=#2] (0,0)
arc [x radius=#3,y radius=#4,start angle=0,end angle=360];}}}
\usepackage{float}
\usepackage{amssymb}
\usepackage{amsmath,amsfonts,amsthm}
\DeclareRobustCommand{\bbone}{\text{\usefont{U}{bbold}{m}{n}1}}
\DeclareMathOperator{\EX}{\mathbb{E}}% expected value
\let\estinput=\input
\usepackage{dcolumn} % aligning decimals
\newcolumntype{d}[1]{D{.}{.}{#1}}
\newcommand{\estwide}[3]{
\vspace{.75ex}{
%\textsymbols% Note the added command here
\begin{tabular*}
{\textwidth}{@{\hskip\tabcolsep\extracolsep\fill}l*{#2}{#3}}
\toprule
\estinput{#1}
\\ \bottomrule}}