\documentclass[10pt,twoside,draft]{memoir}

\usepackage{salitter}
\usletterlayout

\usepackage{mwe}
\usepackage{amsmath}
\usepackage{stix}
\usepackage{xfrac}
\usepackage{bbold}
\usepackage{csquotes}
\usepackage[normalem]{ulem}
\usepackage{enumitem}

% fonts
\newpxfont

\newcommand{\tocline}{
	\addtocontents{toc}{\protect\mbox{}\protect\hrulefill\par}}
\setlength\cftbeforepartskip{1.1em}
\setlength\cftbeforechapterskip{0.5em}

\renewcommand{\printpartname}{}
\renewcommand{\parttitlefont}{\normalfont\Huge\scshape}

% \usepackage{cabin}
% \newfontfamily{\specialheadersfont}{Cabin}

\newcommand{\speech}[1]{
	\textquote{\emph{#1}}}

\newcommand{\said}[1]{ % oops
	\speech{#1}}

\newcommand{\essaytitle}[1]{\uline{#1}}

\newcommand{\gap}{\plainbreak{2}}

\newcommand{\inlineaside}[1]{\textit{(#1)}}

\newcommand{\x}{$x$}
\newcommand{\y}{$y$}

\newcommand{\redact}[1]{\xout{#1}}

\newcommand{\greater}{>}
\newcommand{\less}{<}

% TODO because of something tricky ill need to debug later
\newcommand{\bimg}[1]{(img #1)}

% --- typesetting aids for some subtle syntax of flynt
\newcommand{\formulation}[1]{'\textit{#1}'}

\newcommand{\triquote}[1]{'''#1'''}

% TODO these should be considered placeholders basically
\newcommand{\name}[1]{\textbf{#1}}

% "linguistic expression"
\newcommand{\lexpression}[1]{"\emph{#1}"}
\newcommand{\expression}[1]{\lexpression{#1}}

\newenvironment{sysrules}{
	\begin{hangparas}{3em}{1}
	}{
	\end{hangparas}
	}

\newcommand{\postulate}[1]{
	\emph{Postulate #1}.}

\newcommand{\dreamdate}[1]{
	\plainbreak{1} \uline{#1}\\ }
\newcommand{\dreamdatecomment}[2]{
	\plainbreak{1} \uline{#1} --- \textit{#2}\\ }

\newcommand{\cubeframe}{
	\includegraphics[width=1em]{img/cubeframe}}
\newcommand{\cubeup}{
	\includegraphics[width=1em]{img/cubeup}}
\newcommand{\cubedown}{
	\includegraphics[width=1em]{img/cubedown}}

\begin{document}
\frontmatter
\graphicspath{{img/}}
\pagestyle{ruled}
\chapterstyle{tandh}
\openany

\renewcommand*{\cftpartfont}{\bfseries\scshape}
\renewcommand*{\cftchapterfont}{\normalfont}
\renewcommand*{\cftsectionfont}{\itshape}
% \setlength\beforechapskip{10pt}
\renewcommand*{\chapterheadstart}{\vskip 1pt}


\setlist{itemsep=3pt}
\setlist{parsep=0pt}
\setlist{topsep=3pt}
\setlist{leftmargin=1cm}

% Title
\thispagestyle{empty}
{
	\centering\sffamily

	\plainbreak{3}

	{ \Large
	Blueprint for a Higher Civilization \par}

	\plainbreak{3}

	{ \large Henry Flynt \par}
}

\clearpage

\newcommand{\photopage}[3]{
	\begin{figure}[!hp]
		\centering
		\includegraphics[width=4in]{#1}
		\caption{#2 (photo by #3)}
	\end{figure}}

\photopage{img/creep}{Henry Flynt presents "Creep" lecture in Adam Hovre upper common room, Harvard University, May 15, 1962}{Tony Conrad}

\input{essays/introduction.tex}

\clearpage

\tableofcontents*

\clearpage

\mainmatter
\part{Philosophy}
\tocline
\input{essays/flaws_underlying_beliefs.tex}
\input{essays/walking_through_walls.tex}
\input{essays/philosophical_reflections.tex}
\input{essays/flyntian_modality.tex}
\input{essays/some_objections.tex}
\input{essays/philosophy_proper.tex}

\part{Esthetics}
\tocline
\input{essays/down_with_art.tex}
\input{essays/art_or_brend.tex}
\input{essays/letters.tex}
% \input{extra/poem_1.tex}
% \input{extra/poem_4.tex}

\part{Para-science}
\tocline
\input{essays/dissociation_physics.tex}
\input{essays/mathematical_studies.tex}
\input{essays/post_formalism_memories.tex}
\input{essays/studies_in_constructed_memories.tex}

\part{The New Modality}
\tocline
\input{essays/energy_cube1966.tex}
\input{essays/energy_cube1961.tex}
\input{essays/concept_art.tex}
\input{essays/perception_dissociator.tex}
\input{essays/mock_risk_games.tex}
\input{essays/dream_reality.tex}

\part{Social Philosophy}
\tocline
\input{essays/social_recognition.tex}
\input{essays/creep.tex}
\input{essays/three_levels_of_politics.tex}

\part{Science (Logic)}
\tocline
\input{essays/admissible_contradictions.tex}
\input{essays/propositional_vibration.tex}

\backmatter
\part{Appendix}
\input{extra/structure_art_pure_mathematics.tex}
\input{essays/exercise_awareness_states.tex}
\input{extra/general_acognitive_culture.tex}
% input{extra/philosophy_of_concept_art.tex}

\end{document}