1
0
Fork 0

Temporary fix for section hyperlinking issue (until sPxTeX)

master
Mike Gerwitz 2013-09-11 13:09:30 -04:00
parent 5df58dad94
commit 1813315ee9
1 changed files with 9 additions and 4 deletions

View File

@ -305,11 +305,16 @@
% override chapter/section macros (it is important not to do this until we are % 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 % 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) % argument...we treat it as though it does in order to make life easier)
\def\@hgcommon{%
\pnumrest
\phantomsection
\sinit
}
\def\@hgrab{ \def\@hgrab{
\gdef\chapter##1{\pnumoff\@chapterorig{##1}\pnumrest\sinit} \gdef\chapter##1{\pnumoff\@chapterorig{##1}\@hgcommon}
\gdef\section##1{\pnumoff\@sectionorig{##1}\pnumrest\sinit\smarkright{##1}} \gdef\section##1{\pnumoff\@sectionorig{##1}\@hgcommon\smarkright{##1}}
\gdef\subsection##1{\pnumoff\@subsectionorig{##1}\pnumrest\sinit\smarkright{##1}} \gdef\subsection##1{\pnumoff\@subsectionorig{##1}\@hgcommon\smarkright{##1}}
\gdef\subsubsection##1{\pnumoff\@subsubsectionorig{##1}\pnumrest\sinit} \gdef\subsubsection##1{\pnumoff\@subsubsectionorig{##1}\@hgcommon}
\gdef\footnote##1{\pnumoff\@footnoteorig{##1}\pnumrest} \gdef\footnote##1{\pnumoff\@footnoteorig{##1}\pnumrest}
\gdef\footnotetext##1{\pnumoff\@footnotetextorig{##1}\pnumrest} \gdef\footnotetext##1{\pnumoff\@footnotetextorig{##1}\pnumrest}
} }