Last Edit: We create bookmarks manually and using the previous methods. On my linux (okular and evince) bookmarks are in the sidebar and active, and all links in the document are inactive.
\documentclass[a4paper, 12pt]{article}
\usepackage{lscape}
\usepackage[margin=1in]{geometry}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\definecolor{light-gray}{gray}{0.8}
\usepackage{soul}
\sethlcolor{light-gray}
\usepackage{tipa}
\usepackage{lipsum}
\usepackage{caption}
\usepackage{color}
\usepackage{afterpage}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{amsfonts}
\usepackage{amscd}
\usepackage{longtable}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{eucal}
\usepackage{hhline}
\usepackage{natbib}
\usepackage{setspace}
\usepackage{mathpazo}
\usepackage{calc}
\usepackage{booktabs}
\usepackage{mathtools}
\usepackage{eurosym}
\usepackage{stmaryrd}
\usepackage{float}
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\usetikzlibrary{positioning}
\usepackage{dcolumn}
\usetikzlibrary{shadows,shadings,shapes,decorations.pathreplacing}
\usepackage{times}
\usetikzlibrary{shapes.geometric}
\usepackage[nokeyprefix]{refstyle}
\usepackage{varioref}
\usepackage{xr}
\usepackage[depth=-1]{bookmark}
\hypersetup{draft}
\PassOptionsToPackage{draft}{bookmark}
\usepackage{filecontents}
\begin{filecontents*}{References.bib}
@article{cite1,
title={Nothing special},
author={Nobody, Noboditch},
year={1988}
}
\end{filecontents*}
\begin{document}
\section{Introduction}\bookmark[page=\thepage,level=0]{Introduction}
\onehalfspacing
\citep[see, e.g.,][]{cite1}
This is a reference \ref{sec:test}
\lipsum[1-5]
\section{Test}\label{sec:test}\bookmark[page=\thepage,level=0]{Test}
\lipsum[1-5]
\includegraphics[width=\textwidth]{example-image-a}
\subsection{Test subsection}\bookmark[page=\thepage,level=1]{Test subsection}
\lipsum[1-3]
\section*{}
\addcontentsline{toc}{section}{References}
\bibliographystyle{agsm}
\bibliography{References}\bookmark[page=\thepage,level=0]{References}
\end{document}
First answer
Here is a solution with bookmark
package. I removed hyperref as you don't really need it:
\documentclass[a4paper, 12pt,draft]{article}
\usepackage{lscape}
\usepackage[margin=1in]{geometry}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\definecolor{light-gray}{gray}{0.8}
\usepackage{soul}
\sethlcolor{light-gray}
\usepackage{tipa}
\usepackage{lipsum}
\usepackage{caption}
\usepackage{color}
\usepackage{afterpage}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{amsfonts}
\usepackage{amscd}
\usepackage{longtable}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{eucal}
\usepackage{hhline}
\usepackage{natbib}
\usepackage{setspace}
\usepackage{mathpazo}
\usepackage{calc}
\usepackage{booktabs}
\usepackage{mathtools}
\usepackage{eurosym}
\usepackage{stmaryrd}
\usepackage{float}
\usepackage{rotating}
\usepackage{pdflscape}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\usetikzlibrary{positioning}
\usepackage{dcolumn}
\usetikzlibrary{shadows,shadings,shapes,decorations.pathreplacing}
\usepackage{times}
\usetikzlibrary{shapes.geometric}
\usepackage[nokeyprefix]{refstyle}
\usepackage{varioref}
\usepackage{xr}
%\usepackage[bookmarks=true]{hyperref}
\usepackage{bookmark}
\usepackage{filecontents}
\begin{filecontents*}{References.bib}
@article{cite1,
title={Nothing special},
author={Nobody, Noboditch},
year={1988}
}
\end{filecontents*}
\setlength\overfullrule{0pt}
\begin{document}
\section{Introduction}
\onehalfspacing
\citep[see, e.g.,][]{cite1}
This is a reference \ref{sec:test}
\lipsum[1-5]
\section{Test}\label{sec:test}
\lipsum[1-3]
\includegraphics[width=\textwidth,draft=false]{example-image-a}
\section*{}
\addcontentsline{toc}{section}{References}
\bibliographystyle{agsm}
\bibliography{References}
\end{document}
Edit: added draft option in document class and checked... Also, I had to add [draft=false]
option for the pictures and everything is fine. Test it.
Edit: Added \setlength\overfullrule{0pt} and changed \usepackage{hypre-xr}
to \usepackage{xr}
thanks to @blub.
Also from his comment, a better alternative (to avoid writing draft=false
in every image) is to add the code:
\makeatletter \lowercase{\Gin@boolkey{false}}{draft} \makeatother
in our preamble
bookmark
package... You already have +1 from me... but with this package I think your answer will fit his expectations\usepackage{amsmath}
and\usepackage{mathtools}
. The last package is strong and contains\usepackage{amsmath}
. See this link tex.stackexchange.com/questions/43860/mathtools-vs-amsmathmathpazo
(for Palatino in text and math) andtimes
(for Times New Roman in text): you end up with Times for text and Palatino for math, a very awkward combination.hidelinks
option.