我正在写博士论文的最终版本。一切都很顺利,只是我创建的词汇表外部文件被程序完全忽略了。我正在使用 Texstudio 来编译它。问题是词汇表甚至没有打印在索引(目录)中,因此它不存在于 pdf 文件中。我在这里附上了词汇表和主文件。任何帮助都非常感谢!
%\documentclass[paper=a4,twoside=true,fontsize=11pt,headings=normal,open=right,parskip=off,pagesize,DIV=14,BCOR=5mm,toc=bibliography,toc=listof]{scrbook}
\documentclass[paper=a5,twoside=true,fontsize=10pt,headings=normal,open=right,parskip=off,pagesize,DIV=17,BCOR=5mm,toc=bibliography,toc=listof]{scrbook}
\setlength{\voffset}{0pt}
\addtolength{\voffset}{+0.1cm}
\pdfminorversion=7
%\RedeclareSectionCommand[beforeskip=20pt,afterindent=false]{chapter}
\RedeclareSectionCommand[beforeskip=20pt]{chapter}
% Default beforeskip ca. 33pt
\setkomafont{disposition}{\normalcolor\bfseries}
\RedeclareSectionCommand[beforeskip=-.5\baselineskip,afterskip=.25\baselineskip]{subsubsection}
\usepackage[utf8]{inputenc}
%\usepackage[USenglish,ngerman]{babel}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{grffile}
\usepackage{textcomp}
%\usepackage{varioref}
% \usepackage{enumitem}
\usepackage{scrpage2}
%\usepackage{scrlayer-scrpage}
%\usepackage{subfig}
\usepackage{subcaption}
\usepackage{multirow}
\usepackage{caption}
%\usepackage{placeins}
%\usepackage{wrapfig}
\usepackage{graphicx}
%\usepackage{epstopdf}
%\usepackage{booktabs}
%\usepackage{tabularx}
\usepackage{amsmath}
\usepackage{amssymb}
%\usepackage{multido}
\usepackage{rotating}
\usepackage{threeparttable}
\usepackage{tablefootnote}
\usepackage{mathtools}
\usepackage{mhchem}
\usepackage{etoolbox}
\hyphenation{Drück-schwankungen}
\hyphenation{Hoch-ge-schwin-dig-keits-kamera}
\hyphenation{Strah-lungs-bil-der}
\DeclarePairedDelimiter\abs{\lvert}{\rvert}
\setcounter{secnumdepth}{3}
%\usepackage{blindtext}
%\usepackage{natbib}
\usepackage[intoc]{nomencl}
%\usepackage[version=4]{mhchem}
\usepackage{color}
%\usepackage{siunitx}
\usepackage{longtable,tabularx}
\usepackage{footnote}
\usepackage{enumitem}
\usepackage[babel,german=quotes]{csquotes}
%\usepackage[style=numeric-comp,sorting=nyt,backend=biber,minnames=4,maxnames=4,firstinits=true,defernumbers=true]{biblatex}
\usepackage[bibstyle=numeric-comp2,citestyle=numeric-comp,sorting=nyt,backend=bibtex,minnames=4,maxnames=4,firstinits=true,defernumbers=true]{biblatex}\usepackage{xpatch}
\addbibresource{Bibliography/bibliography5.bib}
\addbibresource{Bilbiography/mypub.bib}
\DefineBibliographyStrings{german}{andothers={et\addabbrvspace al\adddot}}
\DefineBibliographyStrings{ngerman}{phdthesis = {Dissertation}}
\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}
\renewbibmacro{in:}{%
\ifentrytype{article}
{}
{\printtext{\bibstring{in}\intitlepunct}}}
\xpatchbibdriver{thesis}{\printfield{type}\newunit}{\printfield{type}\setunit*{\addcomma\space}}{}{}
\usepackage[table,xcdraw]{xcolor}
%\usepackage{tabto}
\urlstyle{same}
\DeclareFieldFormat[article]{title}{{#1}}
\DeclareFieldFormat[thesis]{title}{{\textit{#1}}}
\DeclareFieldFormat[inproceedings]{title}{{#1}}
\DeclareFieldFormat[incollection]{title}{{#1}}
\makenomenclature
\includeonly{
%Frontmatter/title,
Frontmatter/title_fin,
Frontmatter/Decl,
Frontmatter/Abstract,
Frontmatter/Zitat,
Frontmatter/Danksagung,
Frontmatter/Glossary,
Chapters/01Introduction,
Chapters/02TheoreticalandExperimentalBackground,
Chapters/03TAUcode,
Chapters/04BKHSingleInjectorModelling,
Chapters/05BKHColdFlowModelling,
Chapters/06SMART,
Chapters/07BKHFull,
Chapters/08Conclusions,
Chapters/Appendix,
Chapters/ListofPublications,
}
\bibliography{Bibliography/bibliography5.bib}
\begin{document}
\frontmatter
%\include{Frontmatter/title}
\include{Frontmatter/title_fin}
\include{Frontmatter/Decl}
\include{Frontmatter/Abstract}
\include{Frontmatter/Zitat}
\include{Frontmatter/Danksagung}
\tableofcontents
\listoffigures
\KOMAoptions{open=any}
\listoftables
\include{Frontmatter/Glossary}
\mainmatter
\begin{refsegment}
\KOMAoptions{open=right}
\include{Chapters/01Introduction}
\include{Chapters/02TheoreticalandExperimentalBackground}
\include{Chapters/03TAUcode}
\include{Chapters/04BKHSingleInjectorModelling}
\include{Chapters/05BKHColdFlowModelling}
\include{Chapters/06SMART}
\include{Chapters/07BKHFull}
\include{Chapters/08Conclusions}
\include{Chapters/Appendix}
\include{Chapters/ListofPublications}
%\bibliographystyle{abbrv}
%\bibliographystyle{Referenzen/abbrvnatNumbSort}
%\bibliography{thesisbiblio.bib}
% \printbibliography
%\printbibliography[notkeyword={Eigene_Journal},notkeyword={Eigene_Conf}]
\end{refsegment}
\printbibliography
\end{document}
和词汇表文件
\renewcommand{\nomname}{Nomenclature}
\setlength\nomlabelwidth{.2\linewidth} % Abstand bei welchem die Definition startet
\setlength\nomitemsep{-\parsep} % Zeilenabstand zwischen Abkürzungen
\newcommand\nomunit[1]{\def\nomentryend{\hfill#1}}
\renewcommand\nomgroup[1]{%
\def\makelabel##1{##1}%
\bigskip
\ifx#1P\relax
\item[\textbf{\large Physical quantities}]%
\fi
\ifx#1S\relax
\item[\textbf{\large Symbols}]%
\fi
\ifx#1A\relax
\item[\textbf{\large Acronims}]%
\fi
\ifx#1ND\relax
\item[\textbf{\large Non-Dimensional numbers}]%
\fi
\ifx#1U\relax
\item[\textbf{\large Subscripts}]%
\fi
\ifx#1T\relax
\item[\textbf{\large Superscripts}]%
\fi
\medskip
\let\makelabel\nomlabel
}
\printnomenclature
答案1
您可能需要使用该命令\printglossary