Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove additional vertical space between chapters for list of xxx. #221

Merged
merged 2 commits into from
Jun 8, 2016

Conversation

xueruini
Copy link
Contributor

@xueruini xueruini commented Jun 1, 2016

No description provided.

% 之前。
% \begin{macrocode}
\patchcmd{\@chapter}{\addtocontents{lof}{\protect\addvspace{10\p@}}}{}{}{} % lof
\patchcmd{\@chapter}{\addtocontents{lot}{\protect\addvspace{10\p@}}}{}{}{} % lot
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hyperref会修改 \@chapter ,所有如果在后面 \patchcmd 会失效。当然在后面可以处理 \Hy@org@chapter.

\ltx@IfUndefined{@chapter}{}{%
  \let\Hy@org@chapter\@chapter
  \def\@chapter{%
    \def\Hy@next{%
      \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}%
      \Hy@raisedlink{%
        \hyper@anchorstart{\@currentHref}\hyper@anchorend
      }%
    }%
    \ifnum\c@secnumdepth>\m@ne
      \ltx@IfUndefined{if@mainmatter}%
      \iftrue{\csname if@mainmatter\endcsname}%
        \let\Hy@next\relax
      \fi
    \fi
    \Hy@next
    \Hy@org@chapter
  }%
}

@xueruini
Copy link
Contributor Author

xueruini commented Jun 8, 2016

@bigeagle 你能帮忙check一下这个么?

@bigeagle
Copy link
Member

bigeagle commented Jun 8, 2016

测了一下,的确解决了 #220

@xueruini xueruini merged commit 4474a74 into master Jun 8, 2016
@xueruini xueruini deleted the issue-220 branch June 8, 2016 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants