2

I want thisI get this

Just completed writing an article using ASME template and I found that the output PDF is not showing bookmarks in navigation bar. Any tips on how to fix it?

\documentclass[twocolumn,11pt,cleanfoot]{asme2e}  
\special{papersize=8.5in,11in}  
\usepackage{times}  
\usepackage{multirow}  
\usepackage{graphicx}  
\usepackage{cite}  
\usepackage{hyperref}  
\hypersetup{pdftex,colorlinks=true,allcolors=blue}  
\usepackage{hypcap}  
\usepackage{bookmark}  
  • add bookmarks=true in the hypersetup – Jesse Oct 20 '13 at 9:52
  • Tried the same, still no luck! – RiGOD Oct 20 '13 at 10:17
  • How about load hyperref and the setup last after bookmark? – Jesse Oct 20 '13 at 10:31
  • 1
    Check the drivers. If you are using pdftex, then \special{papersize=...} does not make sense. Also hyperref detects pdfTeX in PDF mode automatically. Specifying a driver after package loading in \hypersetup is too late. There are hyperref drivers (hypertex) that do not have bookmarks. – Heiko Oberdiek Oct 20 '13 at 12:29
  • @RiGOD you added two screenshots. What are they supposed to show? – DG' Oct 20 '13 at 18:20
3

This code:

\documentclass[twocolumn,11pt,cleanfoot]{asme2e}
\usepackage{times}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{cite}
\usepackage{hyperref}
\hypersetup{colorlinks=true,allcolors=blue}
\usepackage{hypcap}
\usepackage{bookmark}
\usepackage{blindtext}

\begin{document}
\tableofcontents*
\blinddocument
\end{document}

enter image description here produces a PDF with both, working hyperlinks in the TOC and working bookmarks. Maybe you could give some more information . . .

  • More information like? – RiGOD Oct 20 '13 at 10:18
  • Which os are you using and which PDF viewer? How do you compile the PDF, etc. – DG' Oct 20 '13 at 11:05
  • Windows 7, Adobe Reader 9.4.0 & Texmaker – RiGOD Oct 20 '13 at 11:47
  • and the latex compiler? pdftex, Xelatex, or Luatex? – selwyndd21 Oct 22 '13 at 12:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.