From c7f4958a64814d961783f6bddc702ab9e876287a Mon Sep 17 00:00:00 2001 From: Edward Longman <el7g15@soton.ac.uk> Date: Thu, 22 Aug 2019 14:21:43 +0100 Subject: [PATCH] Add contents to pdf bookmarks to fix #9 --- source/latex/uosdocs/uosdocs.dtx | 1 + templates/latex/uosdocs/GDP.tex | 1 + templates/latex/uosdocs/MiniThesis.tex | 1 + templates/latex/uosdocs/Progress.tex | 1 + templates/latex/uosdocs/Project.tex | 1 + templates/latex/uosdocs/Report.tex | 1 + templates/latex/uosdocs/Thesis.tex | 1 + 7 files changed, 7 insertions(+) diff --git a/source/latex/uosdocs/uosdocs.dtx b/source/latex/uosdocs/uosdocs.dtx index 503a803..266c833 100644 --- a/source/latex/uosdocs/uosdocs.dtx +++ b/source/latex/uosdocs/uosdocs.dtx @@ -1642,6 +1642,7 @@ There is no prescribed font, you should use a font appropriate to your disciplin %</testthesis|testminithesis|testprogress> \end{abstract} %<*testthesis|testminithesis|testprogress|testproject|testreport|testgdp> +\pdfbookmark[0]{\contentsname}{toc} % Add pdf bookmark for contents page for navigation \tableofcontents \listoffigures \listoftables diff --git a/templates/latex/uosdocs/GDP.tex b/templates/latex/uosdocs/GDP.tex index 2f75fd6..90704ae 100644 --- a/templates/latex/uosdocs/GDP.tex +++ b/templates/latex/uosdocs/GDP.tex @@ -39,6 +39,7 @@ \begin{abstract} This work is all about \dots \end{abstract} +\pdfbookmark[0]{\contentsname}{toc} \tableofcontents \listoffigures \listoftables diff --git a/templates/latex/uosdocs/MiniThesis.tex b/templates/latex/uosdocs/MiniThesis.tex index c4435b2..1a5af6b 100644 --- a/templates/latex/uosdocs/MiniThesis.tex +++ b/templates/latex/uosdocs/MiniThesis.tex @@ -42,6 +42,7 @@ There are broad instructions for this template entitled: How to use the Universi There is no prescribed font, you should use a font appropriate to your discipline. See Producing your thesis section 7.2. \end{abstract} +\pdfbookmark[0]{\contentsname}{toc} \tableofcontents \listoffigures \listoftables diff --git a/templates/latex/uosdocs/Progress.tex b/templates/latex/uosdocs/Progress.tex index 15c717c..9061f78 100644 --- a/templates/latex/uosdocs/Progress.tex +++ b/templates/latex/uosdocs/Progress.tex @@ -39,6 +39,7 @@ There are broad instructions for this template entitled: How to use the Universi There is no prescribed font, you should use a font appropriate to your discipline. See Producing your thesis section 7.2. \end{abstract} +\pdfbookmark[0]{\contentsname}{toc} \tableofcontents \listoffigures \listoftables diff --git a/templates/latex/uosdocs/Project.tex b/templates/latex/uosdocs/Project.tex index 05f91bb..6398607 100644 --- a/templates/latex/uosdocs/Project.tex +++ b/templates/latex/uosdocs/Project.tex @@ -39,6 +39,7 @@ \begin{abstract} This work is all about \dots \end{abstract} +\pdfbookmark[0]{\contentsname}{toc} \tableofcontents \listoffigures \listoftables diff --git a/templates/latex/uosdocs/Report.tex b/templates/latex/uosdocs/Report.tex index 5beb6fa..37c4251 100644 --- a/templates/latex/uosdocs/Report.tex +++ b/templates/latex/uosdocs/Report.tex @@ -36,6 +36,7 @@ \begin{abstract} This work is all about \dots \end{abstract} +\pdfbookmark[0]{\contentsname}{toc} \tableofcontents \listoffigures \listoftables diff --git a/templates/latex/uosdocs/Thesis.tex b/templates/latex/uosdocs/Thesis.tex index f7d0888..67b24c8 100644 --- a/templates/latex/uosdocs/Thesis.tex +++ b/templates/latex/uosdocs/Thesis.tex @@ -46,6 +46,7 @@ There are broad instructions for this template entitled: How to use the Universi There is no prescribed font, you should use a font appropriate to your discipline. See Producing your thesis section 7.2. \end{abstract} +\pdfbookmark[0]{\contentsname}{toc} \tableofcontents \listoffigures \listoftables -- GitLab