我正在努力完成我的学士学位论文,我需要在左标题中显示我的名字,在右标题中显示章节名称,我该怎么做?我做了一些事情,但它显示了我的名字和部分名称,但我需要章节。
\lhead{MITU ALEXANDRU PETRI\c{S}OR}
\fancyhead[LE,RO]{\rightmark}
平均能量损失
\documentclass[12pt,a4paper,oneside]{book}
\usepackage[a4paper, top=2.5cm, bottom=2.5cm, left=2cm, right=2cm]{geometry}
\makeindex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{epigraph}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{amsthm}
\usepackage{color}
\usepackage[hyphens]{url}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
\usepackage[latin10]{inputenc}
\usepackage{relsize}
\usepackage{textcomp}
\usepackage{eurosym}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{anysize}
%\usepackage{index}
\usepackage{verbatim}
\usepackage{algorithm}
%\usepackage{algorithmic}
\usepackage{longtable}
\usepackage[scaled]{helvet}
\usepackage[T1]{fontenc}
\usepackage{fancyhdr}
\usepackage{appendix}
\usepackage{ifthen}
\usepackage{sectsty}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{tocbibind}
\settocbibname{References}
\usepackage{listings}
\usepackage{color}
\usepackage{courier}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\lstset{frame=tb,
language=Java,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small \ttfamily},
numbers=none,
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true,
postbreak=\raisebox{0ex}[0ex][0ex]{\ensuremath{\color{red}\hookrightarrow\space}},
tabsize=3
}
\normalfont % in case the EC fonts aren't available
%\usepackage{amslatex}
\usepackage[romanian]{babel}
\selectlanguage{romanian}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\sloppy
\nonfrenchspacing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\graphicspath{{fig/}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\def\refname{Bibliografie} % la fel se redefinesc toate denumirile; pentru romana in romanian.ldf
\let\mylistof\listof \renewcommand\listof[2]{\mylistof{algorithm}{Listã de algoritmi}}
%\def\producelistofappendices{\listofappendices}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setcounter{page}{1}
%\pagestyle{headings}
\setcounter{footnote}{-1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\lhead{ALEXANDRU PETRI\c{S}OR MITU}
\rhead[LE,RO]{\rightmark}
\begin{document}
答案1
看来我找到了答案
\fancyhead[LO,LE]{ALEXANDRU PETRI\c{S}OR MITU}
\fancyhead[RO,RE]{\slshape \leftmark}