
私は英語でドイツ語で論文を書きます。したがって、ドイツ語の要約を 1 つ書き、英語版を 1 つ書く必要があります。しかし、それらをブックマークに追加すると、「要約」が 2 回表示され、「Zusammenfassung」(ドイツの「要約」) も表示されます。下の図を参照してください。ブックマークの最初の「要約」は、ドキュメントのタイトル ページをインデックスしますが、これは間違っています。2 番目の「要約」は、コンテンツ、つまりドキュメントの要約を正しくインデックスできます。したがって、ブックマークの最初の「要約」は間違っているため、削除する必要があります。誰か解決できますか? よろしくお願いします。
インターフェースとして Texstudio を使用し、ディストリビューションは miktex、プラットフォームは windos10 です。ソースコードは以下のように書かれています。
% !TeX document-id = {72e5695d-c860-48d1-aaec-bdabcc82c0dd}
% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape]
\documentclass[english, cd=nocolor]{tudscrreprt}
\usepackage[ngerman,main=english]{babel}
\usepackage{bookmark}
\begin{document}
Title page
\selectlanguage{ngerman}
\pagenumbering{roman}
% abstract
\TUDoption{abstract}{section}%{section, multiple}
\begin{abstract}
\thispagestyle{plain} % for page number
\begin{otherlanguage}{ngerman}
\par Germany abstract.
\end{otherlanguage}
\nextabstract[english]
\par English abstract.
\end{abstract}
\selectlanguage{english}
% Inhaltsverzeichnis
\tableofcontents
% Inhalt
\pagenumbering{arabic}
\chapter{ Introduction }
\par This is the introduction.
\section{ Motivation }
\par This is motivation.
\section{ Thesis outline }
\par This is outline.
\end{document}
答え1
このクラスtocmultiple
には、ToCエントリを1つだけ取得するオプションがあります。つまり、
\TUDoption{abstract}{section,tocmultiple}
あなたは得る
% !TeX document-id = {72e5695d-c860-48d1-aaec-bdabcc82c0dd}
% !TeX TXS-program:compile = txs:///pdflatex/[--shell-escape]
\documentclass[english, cd=nocolor]{tudscrreprt}
\usepackage[ngerman,main=english]{babel}
\usepackage{bookmark}
\begin{document}
Title page
\selectlanguage{ngerman}
\pagenumbering{roman}
% abstract
\TUDoption{abstract}{section,tocmultiple}
\begin{abstract}
\thispagestyle{plain} % for page number
\begin{otherlanguage}{ngerman}
Germany abstract.
\end{otherlanguage}
\nextabstract[english]
English abstract.
\end{abstract}
\selectlanguage{english}
% Inhaltsverzeichnis
\tableofcontents
% Inhalt
\pagenumbering{arabic}
\chapter{ Introduction }
\par This is the introduction.
\section{ Motivation }
\par This is motivation.
\section{ Thesis outline }
\par This is outline.
\end{document}