如何在 LaTeX 標題(fancyheadings)中輸入標點符號?

如何在 LaTeX 標題(fancyheadings)中輸入標點符號?

我在這裡遵循本指南http://www.fi.infn.it/pub/tex/doc/orig/fancyheadings.pdf

用於乳膠“fancyheadings”標題格式選項。第 5 頁給出如何將每頁上的標題設為章節和章節標題的範例。

例如 - 他們給出的代碼:

\lhead[\fancyplain{}{\slshape \rightmark}]{\fancyplain{}%
{\slshape \leftmark}}

會產生:

"Chapter 1 Introduction"在輸出頁標題上,其中 Chapter 1 是章節,Introduction 是源自的章節標題\chapter{Introduction}章節頁面開頭的章節標題。

我的問題是 - 我到底怎麼能讓標題產生類似以下內容的內容:

"Chapter 1: Introduction""Chapter 1 | Introduction"章節和章節標題之間有一些標點符號。

如果我應該發布更多程式碼,請告訴我 - 我希望有人很快知道答案,但如果需要更多信息,請告訴我。

答案1

1996 年發布的文件應該要懷疑。事實上,該fancyheadings軟體包已經過時了大約 20 年。

您必須查看fancyhdr文件並重新定義\chaptermark

\documentclass{book}
\usepackage{blindtext}

\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{} % clear all fields
\fancyhead[LE,RO]{\slshape\rightmark}
\fancyhead[RE,LO]{\slshape\leftmark}
\fancyfoot[C]{\thepage}
\renewcommand{\chaptermark}[1]{%
  \markboth{\MakeUppercase{%
    \ifnum\value{chapter}>0
      Chapter \thechapter\ $|$ % with a space!
    \fi
    #1%
  }}{}%
}

\begin{document}

\blinddocument

\end{document}

答案2

在此輸入影像描述

您可以使用以下命令對其進行自訂:

  • 對於章節名稱,請使用\renewcommand{\chaptermark}[1]{ \markboth{#1}{} }where#1是章節名稱。例如,您可以替換#1\textit{#1},標題中的章節名稱將變為斜體。相同的概念適用於部分名稱\renewcommand{\sectionmark}[1]{ \markright{#1} }
  • Chapter可以使用 更改該詞\renewcommand{\chaptername}{Chapter}。您可以使用縮寫形式,例如Ch
  • 標題是使用自訂的\fancypagestyle,頁面樣式是使用定義的\pagestyle{mainmatter}。若要從不需要的位置(尤其是開頭)刪除頁面樣式,請使用 \thispagestyle{empty}

這是一個完整的程式碼,可以幫助您Chapter 1: Introduction獲得標題:

\documentclass[twoside]{thesis}

    \usepackage{fancyhdr}

        \pagestyle{fancy} % allows for more advanced header and footer formats

                % Customizations
                \renewcommand{\chaptermark}[1]{ \markboth{#1}{} }  % customize chapter name here
                \renewcommand{\chaptername}{Chapter}
                \renewcommand{\sectionmark}[1]{ \markright{#1} } % customize section name here

                % Define headers
                \fancypagestyle{mainmatter}{
                                                % Header and footer lines
                                                \renewcommand{\headrulewidth}{0.5 pt}
                                                \renewcommand{\footrulewidth}{0 pt}

                                                % Headers
                                                \fancyhead{} % clear header field
                                                \fancyhead[RO]{ \textbf{ \chaptername\ \thechapter:\ \leftmark } \hspace{4mm} \thepage } % customize chapter name header here
                                                \fancyhead[LE]{ \thepage \hspace{4mm} \thesection \textbf{ \rightmark }  } % customize section name header here

                                                % Foot
                                                \fancyfoot{} % clear foot fields
                                                \fancyfoot[LE, RO]{By: Al-Motasem I. Aldaoudeyeh}
                                        }


\begin{document}

\thispagestyle{empty}

\title{Development of a Generalized PV Model in MATLAB/Simulink Using Datasheet Values}



\author{Al-Motasem I. Aldaoudeyeh
    \thanks{Al-Motasem I. Aldaoudeyeh is with the Department of Electrical and Computer Engineering, North Dakota State University, Fargo, ND, 58102 USA e-mail: [email protected]}
}


\maketitle


\thispagestyle{empty}
\begin{abstract}

    This paper proposes an improved single-diode modeling approach for PV modules suitable for a broad range of the PV technologies available today, including modules on tandem cell structures. After establishing the model (which has an overall of seven parameters), the paper devises a methodology to estimate its parameters using Standard Test Conditions (STC) data, Nominal Operating Cell Temperature (NOCT) data, and temperature coefficients values as provided in most manufacturers' datasheets. Simulation results and their comparison with a previous work show a very accurate prediction of critical points in the current-voltage characteristics curve. The precise prediction happens for both STC and NOCT conditions and the error in predicting maximum power point lies within $1\%$ limit, and the error in its corresponding voltage and current is almost always within $2\%$ limit. Further, for both maximum power point and open-circuit voltage, the statistical variance around manufacturer measurements due to temperature changes is demonstrated to be low for five various module technologies.

\end{abstract}
\thispagestyle{empty}


\pagestyle{mainmatter}
\chapter{Chapter Name}


\section{Introduction}
\label{section:introduction}

    This paper proposes an improved single-diode modeling approach for PV modules suitable for a broad range of the PV technologies available today, including modules on tandem cell structures. After establishing the model (which has an overall of seven parameters), the paper devises a methodology to estimate its parameters using Standard Test Conditions (STC) data, Nominal Operating Cell Temperature (NOCT) data, and temperature coefficients values as provided in most manufacturers' datasheets. Simulation results and their comparison with a previous work show a very accurate prediction of critical points in the current-voltage characteristics curve. The precise prediction happens for both STC and NOCT conditions and the error in predicting maximum power point lies within $1\%$ limit, and the error in its corresponding voltage and current is almost always within $2\%$ limit. Further, for both maximum power point and open-circuit voltage, the statistical variance around manufacturer measurements due to temperature changes is demonstrated to be low for five various module technologies.

    This paper proposes an improved single-diode modeling approach for PV modules suitable for a broad range of the PV technologies available today, including modules on tandem cell structures. After establishing the model (which has an overall of seven parameters), the paper devises a methodology to estimate its parameters using Standard Test Conditions (STC) data, Nominal Operating Cell Temperature (NOCT) data, and temperature coefficients values as provided in most manufacturers' datasheets. Simulation results and their comparison with a previous work show a very accurate prediction of critical points in the current-voltage characteristics curve. The precise prediction happens for both STC and NOCT conditions and the error in predicting maximum power point lies within $1\%$ limit, and the error in its corresponding voltage and current is almost always within $2\%$ limit. Further, for both maximum power point and open-circuit voltage, the statistical variance around manufacturer measurements due to temperature changes is demonstrated to be low for five various module technologies.

    This paper proposes an improved single-diode modeling approach for PV modules suitable for a broad range of the PV technologies available today, including modules on tandem cell structures. After establishing the model (which has an overall of seven parameters), the paper devises a methodology to estimate its parameters using Standard Test Conditions (STC) data, Nominal Operating Cell Temperature (NOCT) data, and temperature coefficients values as provided in most manufacturers' datasheets. Simulation results and their comparison with a previous work show a very accurate prediction of critical points in the current-voltage characteristics curve. The precise prediction happens for both STC and NOCT conditions and the error in predicting maximum power point lies within $1\%$ limit, and the error in its corresponding voltage and current is almost always within $2\%$ limit. Further, for both maximum power point and open-circuit voltage, the statistical variance around manufacturer measurements due to temperature changes is demonstrated to be low for five various module technologies.

    This paper proposes an improved single-diode modeling approach for PV modules suitable for a broad range of the PV technologies available today, including modules on tandem cell structures. After establishing the model (which has an overall of seven parameters), the paper devises a methodology to estimate its parameters using Standard Test Conditions (STC) data, Nominal Operating Cell Temperature (NOCT) data, and temperature coefficients values as provided in most manufacturers' datasheets. Simulation results and their comparison with a previous work show a very accurate prediction of critical points in the current-voltage characteristics curve. The precise prediction happens for both STC and NOCT conditions and the error in predicting maximum power point lies within $1\%$ limit, and the error in its corresponding voltage and current is almost always within $2\%$ limit. Further, for both maximum power point and open-circuit voltage, the statistical variance around manufacturer measurements due to temperature changes is demonstrated to be low for five various module technologies.


\section{Numerical Results and Discussion}
\label{sec:results}

    This paper proposes an improved single-diode modeling approach for PV modules suitable for a broad range of the PV technologies available today, including modules on tandem cell structures. After establishing the model (which has an overall of seven parameters), the paper devises a methodology to estimate its parameters using Standard Test Conditions (STC) data, Nominal Operating Cell Temperature (NOCT) data, and temperature coefficients values as provided in most manufacturers' datasheets. Simulation results and their comparison with a previous work show a very accurate prediction of critical points in the current-voltage characteristics curve. The precise prediction happens for both STC and NOCT conditions and the error in predicting maximum power point lies within $1\%$ limit, and the error in its corresponding voltage and current is almost always within $2\%$ limit. Further, for both maximum power point and open-circuit voltage, the statistical variance around manufacturer measurements due to temperature changes is demonstrated to be low for five various module technologies.

    This paper proposes an improved single-diode modeling approach for PV modules suitable for a broad range of the PV technologies available today, including modules on tandem cell structures. After establishing the model (which has an overall of seven parameters), the paper devises a methodology to estimate its parameters using Standard Test Conditions (STC) data, Nominal Operating Cell Temperature (NOCT) data, and temperature coefficients values as provided in most manufacturers' datasheets. Simulation results and their comparison with a previous work show a very accurate prediction of critical points in the current-voltage characteristics curve. The precise prediction happens for both STC and NOCT conditions and the error in predicting maximum power point lies within $1\%$ limit, and the error in its corresponding voltage and current is almost always within $2\%$ limit. Further, for both maximum power point and open-circuit voltage, the statistical variance around manufacturer measurements due to temperature changes is demonstrated to be low for five various module technologies.

    This paper proposes an improved single-diode modeling approach for PV modules suitable for a broad range of the PV technologies available today, including modules on tandem cell structures. After establishing the model (which has an overall of seven parameters), the paper devises a methodology to estimate its parameters using Standard Test Conditions (STC) data, Nominal Operating Cell Temperature (NOCT) data, and temperature coefficients values as provided in most manufacturers' datasheets. Simulation results and their comparison with a previous work show a very accurate prediction of critical points in the current-voltage characteristics curve. The precise prediction happens for both STC and NOCT conditions and the error in predicting maximum power point lies within $1\%$ limit, and the error in its corresponding voltage and current is almost always within $2\%$ limit.


\section{Conclusions}
\label{sec:conclusions}


    This paper proposes an improved single-diode modeling approach for PV modules suitable for a broad range of the PV technologies available today, including modules on tandem cell structures. After establishing the model (which has an overall of seven parameters), the paper devises a methodology to estimate its parameters using Standard Test Conditions (STC) data, Nominal Operating Cell Temperature (NOCT) data, and temperature coefficients values as provided in most manufacturers' datasheets. Simulation results and their comparison with a previous work show a very accurate prediction of critical points in the current-voltage characteristics curve. The precise prediction happens for both STC and NOCT conditions and the error in predicting maximum power point lies within $1\%$ limit, and the error in its corresponding voltage and current is almost always within $2\%$ limit. Further, for both maximum power point and open-circuit voltage, the statistical variance around manufacturer measurements due to temperature changes is demonstrated to be low for five various module technologies.


\end{document}

相關內容