Как ввести знаки препинания в заголовок LaTeX (fancyheadings)?

Как ввести знаки препинания в заголовок LaTeX (fancyheadings)?

Я следую этому руководству здесь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}

Связанный контент