In this MWE, I don't understand why the first PDF bookmark links to the first \section*, while the second bookmark doesn't.
What have I missed?
\documentclass{article}
\usepackage[hidelinks,colorlinks=false,bookmarks=true]{hyperref}
\usepackage[numbered]{bookmark}
\usepackage{lipsum}
\begin{document}
\pdfbookmark[section]{1st section}{}
\section*{Section 1}
\lipsum[1-3]
\pdfbookmark[section]{2nd section}{}
\section*{Section 2}
\end{document}
Update #1
For Heiko's answer, I know it is less than issue, but I am curious to understand why the first bookmark points exactly to the section title
while the second doesn't
Update #2
When I tried to understand the effect of options bold or color, I found nothing bold nor red.
What do I misunderstand about these options?
\documentclass{article}
\usepackage[hidelinks,bookmarks=true]{hyperref}
\usepackage[numbered]{bookmark}
\usepackage{lipsum,xcolor}
\makeatletter
\newcommand*{\sectionbookmark}[1][]{%
\bookmark[%
level=section,%
dest=\@currentHref,%
#1%
]%
}
\makeatother
\begin{document}
\section*{Section 2}
\sectionbookmark[bold,color=red]{2nd section}
\lipsum[1-3]
\end{document}


xcolorpackage and use\sectionbookmark[bold,color=red]{2nd section}I found nothing bold nor red? Why are those options not doing anything? You may look at my second update. – Diaa Sep 21 '16 at 05:50