forked from OpenLogicProject/OpenLogic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
open-logic-debug.tex
70 lines (49 loc) · 1.42 KB
/
open-logic-debug.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
% open-logic-debug.tex
% master file to produce debug version
% includes all references, markup, etc.
\documentclass{memoir}
% Lives in main directory
\newcommand*{\olpath}{.}
\usepackage{gitinfo2}
\input{\olpath/sty/open-logic.sty}
\input{\olpath/sty/open-logic-debug.sty}
\includeenv{editorial}
% all files included with \olimport will have filename & link to GitHub printed
\makeatletter \renewcommand{\skip@preamble}{%
\let\document\relax\let\enddocument\relax%
\newenvironment{document}{\noindent
\hrulefill\par{\hfill
\href{https://github.com/OpenLogicProject/OpenLogic/blob/master/\olfilebase\olfilename}{\texttt{\olfilebase\olfilename}}}}{}%
\renewcommand{\documentclass}[2][subfiles]{}} \makeatother
\renewcommand*{\beforepartskip}{}
\renewcommand*{\afterpartskip}{}
\renewcommand*{\clearforchapter}{}
\nopartblankpage
\let\cleardoublepage\clearpage
\pagestyle{openlogic}
\begin{document}
\begin{titlingpage}
\begin{raggedleft}
\HUGE
\selectfont\bfseries\sffamily
THE OPEN LOGIC TEXT
\vskip 3ex
\normalfont\huge
Debug Build
\vskip 4ex
\textbf{\href{http://openlogicproject.org/}{Open Logic Project}}
\vskip 4ex
\Large
Revision\gitRel: \gitAbbrevHash{} (\gitBranch)\\
\gitAuthorDate
\end{raggedleft}
\vfill
\ollicense
\end{titlingpage}
% make links red green
\hypersetup{urlcolor=[rgb]{0.5,0,0}}
\pagestyle{giheadings}
\tableofcontents*
% include complete text
\olimport[content]{content}
\end{document}