Mike Gerwitz

Activist for User Freedom

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2013-09-11 13:09:30 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2013-09-11 13:09:30 -0400
commit1813315ee99b260780050e12f4d913c50bb55d55 (patch)
tree2f82ff16fadd56bf313ef620e9e509b678b080d9
parent5df58dad947d2b6fcad7d65155297e999df17126 (diff)
downloadlvspec-1813315ee99b260780050e12f4d913c50bb55d55.tar.gz
lvspec-1813315ee99b260780050e12f4d913c50bb55d55.tar.bz2
lvspec-1813315ee99b260780050e12f4d913c50bb55d55.zip
Temporary fix for section hyperlinking issue (until sPxTeX)
-rw-r--r--lvspec.cls13
1 files changed, 9 insertions, 4 deletions
diff --git a/lvspec.cls b/lvspec.cls
index ab29c2a..07fe552 100644
--- a/lvspec.cls
+++ b/lvspec.cls
@@ -305,11 +305,16 @@
% override chapter/section macros (it is important not to do this until we are
% sure that nothing with use \chapter, as that formally does not accept an
% argument...we treat it as though it does in order to make life easier)
+\def\@hgcommon{%
+ \pnumrest
+ \phantomsection
+ \sinit
+}
\def\@hgrab{
- \gdef\chapter##1{\pnumoff\@chapterorig{##1}\pnumrest\sinit}
- \gdef\section##1{\pnumoff\@sectionorig{##1}\pnumrest\sinit\smarkright{##1}}
- \gdef\subsection##1{\pnumoff\@subsectionorig{##1}\pnumrest\sinit\smarkright{##1}}
- \gdef\subsubsection##1{\pnumoff\@subsubsectionorig{##1}\pnumrest\sinit}
+ \gdef\chapter##1{\pnumoff\@chapterorig{##1}\@hgcommon}
+ \gdef\section##1{\pnumoff\@sectionorig{##1}\@hgcommon\smarkright{##1}}
+ \gdef\subsection##1{\pnumoff\@subsectionorig{##1}\@hgcommon\smarkright{##1}}
+ \gdef\subsubsection##1{\pnumoff\@subsubsectionorig{##1}\@hgcommon}
\gdef\footnote##1{\pnumoff\@footnoteorig{##1}\pnumrest}
\gdef\footnotetext##1{\pnumoff\@footnotetextorig{##1}\pnumrest}
}