LaTeX のヘッダーを修正するにはどうすればいいですか?

LaTeX のヘッダーを修正するにはどうすればいいですか?

私はプロジェクトの準備にLaTeXを使用しています。私は\documentclass{report}

私は章番号のない最初の章の「はじめに」を必要としていたので、

\newcommand{\mychapter}[2]{
        \setcounter{chapter}{#1}
        \setcounter{section}{0}
        \chapter*{#2}
        \addcontentsline{toc}{chapter}{#2}
    } 

前文に。

\begin{document}以下のコメントを追加した後、導入の前に図のリストが必要なので

\listoffigures

\mychapter{0}{Introduction}
In Chapter 1, we give the basic ideas and facts.....

そして、出力では、章の紹介のヘッダーは図のリストです。(図を参照)。誰​​かがこの問題の解決に協力してくれることを願っています。

'ここに画像の説明を入力してください

答え1

より良い定義を使用できます\mychapter:

\documentclass{report}

\usepackage{kantlipsum} % for mock text

\pagestyle{headings} % to get headers

\newcounter{savedsecnumdepth}

\newcommand{\mychapter}[1]{%
  \setcounter{savedsecnumdepth}{\value{secnumdepth}}%
  \setcounter{secnumdepth}{-1000}%
  \chapter{#1}%
  \setcounter{secnumdepth}{\value{savedsecnumdepth}}%
  \refstepcounter{chapter}%
}

\setcounter{chapter}{-1}% first should be Chapter 0
\begin{document}

\tableofcontents

\mychapter{Introduction}

\section{Ghijk}

\kant[1-30]

\end{document}

ここに画像の説明を入力してください

関連情報