我想做一个书签。我试过了
\documentclass[12pt]{book}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage[unicode]{hyperref}
\begin{document}
\pdfbookmark{\contentsname}{Contents}
\tableofcontents
\chapter{Chapter one}
\section{Section one}
\subsection{Some tex}
\section{Section two}
\subsection{Some tex}
\chapter{Chapter one}
\section{Section one}
\subsection{Some tex}
\section{Section two}
\subsection{Some tex}
\end{document}
我有
我想要让子部分具有以下形式1.1 Subection one
:......
我怎样才能制作像这张图片一样的书签?
答案1
\documentclass[12pt]{book}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage[unicode,bookmarksnumbered]{hyperref} % I Changed this line
%\usepackage{bookmark} % Not really necessary
\begin{document}
\pdfbookmark{\contentsname}{Contents}
\tableofcontents
\chapter{Chapter one}
\section{Section one}
\subsection{Some tex}
\section{Section two}
\subsection{Some tex}
\chapter{Chapter one}
\section{Section one}
\subsection{Some tex}
\section{Section two}
\subsection{Some tex}
\end{document}