我正在遵循此指南http://www.fi.infn.it/pub/tex/doc/orig/fancyheadings.pdf
用于 latex 'fancyheadings' 页眉格式选项。第 5 页给出了如何将每页的页眉设为章节和章节标题的示例。
例如 - 他们给出的代码:
\lhead[\fancyplain{}{\slshape \rightmark}]{\fancyplain{}%
{\slshape \leftmark}}
得出的结果为:
"Chapter 1 Introduction"
在输出页眉上,其中第 1 章是章节,简介是从\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}{} }
其中#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}