From 178d08b5a9f00780e7d4287205bc43019617e6ea Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 3 Mar 2010 15:26:37 -0500 Subject: [PATCH] Use hypcap (and bump to v0.5) --- drexel-thesis.dtx | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/drexel-thesis.dtx b/drexel-thesis.dtx index cdad709..93637cc 100644 --- a/drexel-thesis.dtx +++ b/drexel-thesis.dtx @@ -1,8 +1,8 @@ -% \def\fileversion{0.4} -% \def\filedate{2010/02/23} +% \def\fileversion{0.5} +% \def\filedate{2010/03/03} % \iffalse meta-comment -%\def\fileversion{0.4} -%\def\filedate{2010/02/23} +%\def\fileversion{0.5} +%\def\filedate{2010/03/03} % % Copyright (C) 2010 C.Y. Ip % Christopher D. Cera @@ -129,6 +129,8 @@ % Based on the University of Toronto Thesis \LaTeXe\ Class. Also % greatly improved the documentation by incorperating bits of % the base/*.dtx files.} +% \changes{0.5}{2010/03/03}{W.~Trevor King use hypcap for better +% caption hyperlink anchor placement.} % % \MakeShortVerb{\|} % \newcommand{\pkg}[1]{\textsf{#1}} @@ -504,9 +506,11 @@ % \href{http://www.ctan.org/tex-archive/macros/latex/required/graphics/}{\pkg{graphicx}} % to define the |\includegraphics| macro, % \href{http://www.ctan.org/tex-archive/macros/latex/required/caption/}{\pkg{caption}} -% for pretty caption formatting, and +% for pretty caption formatting, % \href{http://www.ctan.org/tex-archive/macros/latex/required/floatrow/}{\pkg{floatrow}} -% for placing captions. +% for placing captions, and +% \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}} +% for placing caption anchors. % % Simple float definitions will look like % \begin{example} @@ -1124,6 +1128,18 @@ % |\author|, etc.\ to avoid using |\AtBeginDocument| or some such. % % +% \subsubsection{\pkg{hypcap}} +% +% \href{http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/}{\pkg{hypcap}} +% for placing caption hyperlink anchors. Not strictly necessary, but +% we're using \pkg{hyperref}, and the poor link targets are annoying. +% \begin{macrocode} +\RequirePackage[all]{hypcap} +% \end{macrocode} +% \Lopt{all} redefines the figure and table environments to +% place the anchor at the start of the float. +% +% % \subsection{\LaTeX\ overrides and extensions} % % Here we change the behavior of a bunch of macros and environments -- 2.26.2