我尝试使用 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}}