我想在标题之后nomenclature
(在我的版本中:)Glossar
和术语表列表的开头之前直接写一段文字(还有一个小表格)。
%% LyX 2.1.0 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[twoside,ngerman,fontsize=10pt]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm}
\pagestyle{empty}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\setlength{\parskip}{1em}
\setlength{\parindent}{0pt}
\synctex=-1
\usepackage{fancybox}
\usepackage{calc}
\PassOptionsToPackage{normalem}{ulem}
\usepackage{ulem}
\usepackage{nomencl}
%
%%USER-Specific Commands
\usepackage[headsepline, ilines,automark]{scrpage2}
\pagestyle{scrheadings}
\clearscrheadings
\clearscrplain
\ihead[\headmark]{\headmark}
\ohead{\pagemark}
\chead{}
\cfoot{}
%
\usepackage[colorlinks,pdfpagelabels,pdfstartview = FitH,bookmarksopen = true,bookmarksnumbered = true,linkcolor = black,plainpages = false,hypertexnames = false,citecolor = black] {hyperref}
%
\usepackage{chngcntr}
\counterwithin*{chapter}{part}
%
\makeatother
%
\usepackage{babel}
\makenomenclature
\begin{document}
%
\chapter*{Einleitung}
\subsubsection*{Technisches}
\subsubsection*{Spezifisches}
Heute ass eine Katze \index{Katze!Futter!Verbotenes} Schokolade. \nomenclature{Schokolade}{Ein Nahrungsmittel.}
%
\addpart{Anhang}
\pagestyle{empty} %ohne Seitenzahlen und Kolumnentitel
\addcontentsline{toc}{chapter}{Glossar}
\renewcommand{\nomname}{Glossar}
\printnomenclature[2.5 cm]
%
\clearpage
\phantomsection
\addcontentsline{toc}{chapter}{Stichwortverzeichnis}
\renewcommand{\indexname}{Stichwortverzeichnis}
\printindex
%
这可能吗?
答案1
您可以使用\nompreamble
在标题和实际条目之间添加一些内容。例如,
\renewcommand{\nompreamble}{%
This is some additional text\par
\begin{tabular}{ll}\hline
Some text & Some again\\
Some text & Some again\\\hline
\end{tabular}
}
以下是代码:
\documentclass[twoside,ngerman,fontsize=10pt]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{nomencl}
%
\renewcommand{\nompreamble}{%
This is some additional text\par
\begin{tabular}{ll}\hline
Some text & Some again\\
Some text & Some again\\\hline
\end{tabular}
}
%
\usepackage{babel}
\makenomenclature
\begin{document}
%
\chapter*{Einführung}
\subsubsection*{Technisches}
\subsubsection*{Spezifisches}
Heute ass eine Katze Schokolade. \nomenclature{Schokolade}{Ein Nahrungsmittel.}
%
\addpart{Anhang}
\pagestyle{empty} %ohne Seitenzahlen und Kolumnentitel
\addcontentsline{toc}{chapter}{Glossar}
\renewcommand{\nomname}{Glossar}
\printnomenclature[2.5 cm]
%
\end{document}