ブックマークは開きますが、すべてのボタンが開きません。

ブックマークは開きますが、すべてのボタンが開きません。

ツリーの最初のボタンだけを開きたい

ここに画像の説明を入力してください

レベルを作成するためにこれを使用しました

\pdfbookmark[0]{Start}{start}

他のレベルを閉じるにはこれを使用します

\hypersetup{
  bookmarksopen=false
}

しかし、次のような結果が得られます:

ここに画像の説明を入力してください

最初のボタンだけどのくらい開けますか?

\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage{imakeidx}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage[pdftex, bookmarksnumbered,  pagebackref, colorlinks=true, citecolor=Blue, linkcolor=DarkBlue!30!Black, urlcolor=Black,bookmarksopen]{hyperref}
\makeindex[columns=3, title=Alphabetical Index, intoc]

\begin{document}

\tableofcontents

\cleardoublepage
\pdfbookmark{Dedicatory}{dedic}
\chapter*{Dedicatory}

   to all my family

\cleardoublepage
\pdfbookmark{Abstract}{abstr}

\chapter*{Abstract}

   hello world


\chapter{chapter}
\section{Introduction}
In this example several keywords\index{keywords} will be
used which are important and deserve to appear in the
Index\index{Index}.
 \subsection{subsection}
Terms like generate\index{generate} and some\index{others}
will also show up. Terms in the index can also be
nested \index{Index!nested}

\clearpage

\section{Second section}
This second section\index{section} may include some special
word, and expand the ones already used\index{keywords!used}.

\printindex
\end{document}

答え1

お客様のご要望は、第 1 レベルのブックマークのみを開くことでした。MWE を使用して、bookmarksopenlevel=0オプションとして を追加できますhyperref。(より深いレベルを開きたい場合は、0 を 1 または他の値に変更できます。)

現在の MWE を次のように変更します。

\usepackage[pdftex, bookmarksnumbered,  pagebackref, colorlinks=true, citecolor=Blue, linkcolor=DarkBlue!30!Black, urlcolor=Black,bookmarksopen,bookmarksopenlevel=0]{hyperref}
%

次のような画面が表示されます: ここに画像の説明を入力してください

深さを1に増やすと、次のようになります

\usepackage[pdftex, bookmarksnumbered,  pagebackref, colorlinks=true, citecolor=Blue, linkcolor=DarkBlue!30!Black, urlcolor=Black,bookmarksopen,bookmarksopenlevel=1]{hyperref}
%

すると次のようになります:

ここに画像の説明を入力してください

関連情報