这有点奇怪,但我想在章节标题中引用。但我找不到任何对我有用的东西。我试着按照建议带有方括号和花括号,但这对我来说根本不起作用。它显示错误。这可能是由于我的设置。我使用 laulatex 编译器、natbib 作为参考书目,并使用 IEEEtranN 作为参考书目样式。
工作代码如下:
\begin{filecontents}{\jobname.bib}
@article{two,
title={Die neuen Vierventil-Ottomotoren fur die mittlere Braureihe von Mercedes-Benz (Germany)},
author={Abthoff, Von J and Huttebraucker, D and Zahn, W and Bockel, H},
journal={Mtz},
volume={53},
pages={496--508},
year={1992}
}
@inproceedings{three,
title={Strategies for NOx reduction in heavy duty engines},
author={Al-Sened, A and Karimi, E},
booktitle={Proceedings of the 23rd CIMAC Congress},
year={2001}
}
@misc{four,
title={Deutsche Stiftung Weltbevölkerung},
author={Bundesministerium für Wirtschaft und Arbeit},
year={2003/04},
publisher={NOAA}
}
\end{filecontents}
\documentclass[a4paper, 12pt, headsepline, twoside, openright, parskip,fleqn]{scrreprt}
\usepackage{soulutf8}
\usepackage{anyfontsize}
\usepackage{titlesec}
\usepackage{fontspec}
\usepackage{unicode-math}
\usepackage[numbers]{natbib}
\setul{0.3pt}{1.5pt}
\makeatletter
\newcommand{\ulex}[1]{%
\let\@mkboth\@gobbletwo % neutralize \@mkboth in unnumbered chapters
\expanded{\noexpand\ul{#1}}}
\makeatother
\titleformat{name=\chapter}
{\normalfont\fontsize{14}{16.8}\bfseries}
{\ul{\thechapter\enspace}}
{0em}
{\ul}
\titleformat{name=\chapter,numberless}
{\normalfont\fontsize{14}{16.8}\bfseries}
{}
{0em}
{\ulex}
\titleformat{\section}
{\normalfont\fontsize{12}{15}\bfseries}
{\ul{\thesection\enspace}}
{0em}
{\ul}
\titleformat{\subsection}
{\normalfont\fontsize{12}{15}\bfseries}
{\ul{\thesubsection\enspace}}
{0em}
{\ul}
\titleformat{\subsubsection}
{\normalfont\fontsize{12}{15}\bfseries}
{\ul{\thesubsubsection\enspace}}
{0em}
{\ul}
\bibliographystyle{IEEEtranN}
\bibpunct{/}{/}{;}{n}{}{,}
\renewcommand{\bibnumfmt}[1]{/#1/}
\begin{document}
\tableofcontents
\chapter{Thermodynamics}
\section{Heat \cite{four}}
Propagation of turbulent flames \cite{four} in spark-ignition engines is considered from the viewpoint of the different possible regimes \cite{two} of premixed turbulent combustion.\cite{three} Nondimensional parameters defining known combustion regimes are reviewed,
\medskip
\bibliography{xyz}
\end{document}