This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import collections | |
import io | |
import re | |
import PyPDF2.pdf as pdf | |
ChapterTreeNode = collections.namedtuple('ChapterTreeNode', 'name page children') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
import inspect | |
import warnings | |
# NOTE(kgriffs): We don't want our deprecations to be ignored by default, | |
# so create our own type. | |
class DeprecatedWarning(UserWarning): | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\newcounter{@maxauthors} | |
\setcounter{@maxauthors}{3} | |
\newcounter{@authors} | |
\def\BibitemOpen{ | |
\setcounter{@authors}{0} | |
\bibitemOpen | |
} | |
%\NewDocumentCommand{\@gobbletoend}{u{,\ }}{\fi\fi\showtokens{#1}} | |
\NewDocumentCommand{\@gobbletoend}{u{,\ }}{\fi\fi} |