X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=drexel-thesis.dtx;h=93637cc9af2fd2c92dd87914781a511c240516ad;hb=178d08b5a9f00780e7d4287205bc43019617e6ea;hp=3a9bb1df36a810768cbc900761c559f2026e7b20;hpb=ae9db88caeeef08ba8b64dafa40571092934e3f5;p=drexel-thesis.git diff --git a/drexel-thesis.dtx b/drexel-thesis.dtx index 3a9bb1d..93637cc 100644 --- a/drexel-thesis.dtx +++ b/drexel-thesis.dtx @@ -1,8 +1,8 @@ -% \def\fileversion{0.3} -% \def\filedate{2010/01/13} +% \def\fileversion{0.5} +% \def\filedate{2010/03/03} % \iffalse meta-comment -%\def\fileversion{0.3} -%\def\filedate{2010/01/13} +%\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}} @@ -339,11 +341,12 @@ % See the Manual 3.2 p9. % % \begin{command} -% `\cs{copyrighttextCC}' +% `\cs{copyrighttextCCBYSA}' % \end{command} % There are a number of predefined copyright messages for ease of use \\ % \begin{tabular}{l l} -% |\copyrighttextCC| & Creative Commons copyright \\ +% |\copyrighttextCCBYSA| & +% Creative Commons Attribution-ShareAlike License Version 3.0.\\ % \end{tabular} % % \begin{command} @@ -503,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} @@ -1123,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 @@ -1695,13 +1712,17 @@ % \end{macrocode} % \end{macro} % -% \begin{macro}{\copyrighttextCC} -% The Creative Commons license. +% \begin{macro}{\copyrighttextCCBYSA} +% The Creative Commons Attribution-ShareAlike License. +% \changes{0.4}{2010/02/23}{W.~Trevor King renamed from +% \\copyrighttextCC, and made specific to Creative Commons +% Attribution-ShareAlike Version 3.0.} % \begin{macrocode} -\newcommand\copyrighttextCC{ +\newcommand\copyrighttextCCBYSA{ \begin{quote} This work is licensed under the terms of the Creative Commons - Attribution-ShareAlike license. The license is available at \\ + Attribution-ShareAlike license Version 3.0. The license is + available at \\ \url{http://creativecommons.org/licenses/by-sa/3.0/}. \end{quote} } @@ -2860,7 +2881,7 @@ \advisor{Collis Potter Huntington, R.R.D.} \advisor{Advisor 2, Ph.D.} \advisor{Advisor 3, Ph.D.} -\copyrighttext{\copyrighttextCC} +\copyrighttext{\copyrighttextCCBYSA} \usepackage[super,sort&compress]{natbib} % fancy citation extensions \bibliographystyle{unsrtnat}