Is it possible to create a new bookmark to a section heading that is not listed in the Table of Contents (i.e., using the starred form — \section*{A title})?
\pdfbookmark (part of hyperref.sty) or \bookmark (part of bookmark.sty) only appear to create a bookmark to the location to where the command is issued. However, placing this either before, within, or after the \section*{} command does not create the correct effect: clicking on the bookmark in a PDF viewer links to the the wrong place. Specifically, it doesn't link to the TEXT portion of the section heading, like a normal hyperref-ed section heading/bookmark but instead to the space above the heading (which can be the previous page if the section is on a new page), or immediately BELOW the section heading (thus hiding the heading!).
Using \phantomsection and then \protect\label{} issued within the \section*{} command works with the \hyperref{}{} command in linking to the section heading, bringing the user straight to the heading title. Great! It's just this same basic principle in PDF bookmarks that I couldn't figure out. If only I could issue a \pdfbookmark-like command that goes directly to this same \label, that would be just perfect!
Edit: I also need to be able to specify the bookmark name (i.e., the text that's displayed in the bookmarks section in a PDF viewer), rather than use the name of the section itself (which can be very long in my work).
Any help would be appreciated. I've literally spent days experimenting and nothing seems to be possible at the moment, but I'm sure there is a way! Thank you for your time.
\texorpdfstring{<tex-only stuff>}{<pdf-only stuff>}and see if that helps? – Ryan Reich Jan 08 '11 at 07:21\texorpdfstringand put the PDF name in the second argument, the TeX name in the first argument (including whatever formatting commands you need). – Ryan Reich Jan 08 '11 at 07:59