Skip to content

Commit

Permalink
make content independent of memoir class (issue #151)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzach committed Aug 21, 2017
1 parent 54d4dd9 commit b5ad485
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 14 deletions.
2 changes: 1 addition & 1 deletion open-logic-complete.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

\let\cleardoublepage\clearpage

\pagestyle{openlogic}
\pagestyle{plain}

\begin{document}

Expand Down
2 changes: 1 addition & 1 deletion open-logic-debug.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% open-logic-dev.tex
% open-logic-debug.tex
% master file to produce debug version
% includes all references, markup, etc.

Expand Down
15 changes: 15 additions & 0 deletions sty/open-logic-debug.sty
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
\RequirePackage{xparse}
\RequirePackage{xcolor}

% oldebugnote puts a note in the margin

\DeclareDocumentCommand \oldebugnote { s o m } {
\IfBooleanTF{#1}{\reversemarginpar}{}
\marginnote{\tiny
Expand Down Expand Up @@ -32,3 +34,16 @@
\photocredits
\bibliographystyle{\olpath/bib/natbib-oup}
\bibliography{\olpath/bib/open-logic}}

% put file info in footer (depends on memoir)

\copypagestyle{openlogic}{plain}
\makeevenfoot{openlogic}{\thepage}{}{\shortollicense}
\makeoddfoot{openlogic}{\shortollicense}{}{\thepage}

% adjust section number widths (depends on memoir)

\setlength{\cftpartnumwidth}{2.2em}
\setlength{\cftchapternumwidth}{2.2em}
\setlength{\cftsectionnumwidth}{2.8em}

24 changes: 12 additions & 12 deletions sty/open-logic.sty
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@
\RequirePackage{framed}
\RequirePackage{bussproofs}
\RequirePackage{graphicx}

\RequirePackage{natbib}
\setcitestyle{authoryear}

\RequirePackage{tikz}
\usetikzlibrary{arrows}
\RequirePackage{tikzscale}
\usetikzlibrary{arrows,automata}

\RequirePackage{wrapfig}
\RequirePackage{catchfile}
\RequirePackage{tocloft}

\RequirePackage{xcolor}
\definecolor{dark-gray}{gray}{0.2}
Expand All @@ -40,9 +42,7 @@
\RequirePackage{thmtools}
\RequirePackage[nameinlink]{cleveref} % always after hyperref!

\usepackage{pgf}
\usepackage{tikz}
\usetikzlibrary{arrows,automata}
%\usepackage{pgf}

\makeatletter

Expand All @@ -69,6 +69,10 @@

\newcommand*{\DeclareDocumentMacro}[2]{\def#1{#2}}

% We loading \oljobname-config.sty and \oljobname-envs.sty. Initialize
% \oljobname to \jobname -- this way you can use the same config files
% for differnt jobs.

\ifdefined\oljobname\relax\else\let\oljobname\jobname\fi

% Load configuration file, then custom changes if available
Expand Down Expand Up @@ -165,7 +169,6 @@
\ifgitinfo\ by \href{http://openlogicproject.org/}{OLP} /
\href{http://creativecommons.org/licenses/by/4.0/}{CC--BY}}


\newcommand*{\oluselicense}[2]{%
\begin{minipage}[b]{.9cm}
\includegraphics[width=.9cm]{\olpath/assets/logos/by}
Expand All @@ -187,18 +190,15 @@
\hfill
\href{http://openlogicproject.org/}{\includegraphics[width=2.7cm]{\olpath/assets/logos/openlogic-logo-bw}}}

\copypagestyle{openlogic}{plain}
\makeevenfoot{openlogic}{\thepage}{}{\shortollicense}
\makeoddfoot{openlogic}{\shortollicense}{}{\thepage}
\newcommand*{\shortoluselicense}[2]{\ollicensefont
\textit{#1}
by #2 based on \href{http://openlogicproject.org/}{OLP} /
\href{http://creativecommons.org/licenses/by/4.0/}{CC--BY}}

\newcommand\gitissue[1]
{\href{https://github.com/OpenLogicProject/OpenLogic/issues/#1}{issue
\##1}}

\setlength{\cftpartnumwidth}{2.2em}
\setlength{\cftchapternumwidth}{2.2em}
\setlength{\cftsectionnumwidth}{2.8em}

\makeatother

% Photos
Expand Down

0 comments on commit b5ad485

Please sign in to comment.