%%% THE COLLECTED WORKS OF RUDOLF CARNAP
%%% Test Volume Start

\documentclass[10pt,letterpaper,showtrims,oldfontcommands]{memoir}



\listfiles

% For debugging, uncomment the following three lines.

%\errorcontextlines=25
%\tracingmacros=1
%\tracingcommands=1

\def\ThisIsTheVolume{}

\usepackage{../sty/cwrc}

% which local definitions should we include? 
% list every item here that
% has a local.sty file in its directory

\forloop\creathnumber:=\volumetexts\do{%
  \IfFileExists{../\creathnumber/local.tex}{\input{../\creathnumber/local}}{}}

%%% ---------------------------------------------------------------------------

%%% Choose default font

%\useComputerModernFont % Uncomment if Bodoni/Gill fonts are not available

%%% Select chapter style (unnumbered, numbered)

\chapterstyle{unnumbered}

%% Handling of clubs, widows, and orphans -------------------------------------

\clubpenalty=10000
\widowpenalty=10000
%\displawidowpenalty=10000

\maketextnote
\makepagenote

\begin{document}

% No line numbers for front matter, toc, etc
\nolinenumbers

% For final version:
\sloppy


%%% Bibliography ----------------------------------------------------------
%%% Set name of bibliographies (\eg, "Literature Cited" in CBH)

\renewcommand{\bibname}{Bibliography}

\bibliographystyle{../sty/carnap}
%\def\NAT@index{\indexcitename{\NAT@name}}

%%% No bibliography in toc (as chapters)

\nobibintoc

%%% Write bibliography in toc as sections

\renewcommand{\prebibhook}{\addcontentsline{toc}{chapter*}{\bibname}}


%%% Index  -----------------------------------------------------------------

%%%%%%%% Set name of Index (\eg, "Index of Names" in Volume I)

\addto{\captionsenglish}{%
  \renewcommand{\indexname}{Index of Names}
}

%%%% OK HERE WE GO!

% Set pagenumbering roman and start with page one

\frontmatter

\selectlanguage{english}
% start without folios
\pagestyle{empty}

\setgitinfo

%%% First page with title only (1/2 title) ----------------------------------

\bastardtitle

\titlepage{% Title
{\HUGE The Collected Works of}\\[10pt]
Rudolf Carnap\\[10pt]
}{% Subtitle
\Huge Richard Creath, General Editor}
{% Author/editor info
{\HUGE Volume \cwrcvolume: \cwrctitle} \\[10pt]
\textit{Edited by} \cwrceditors}
{% Extra info
\textit{Test PDF of \today}}


%%% Table of contents ----------------------------------------------------------

\cleartorecto  % TOC on right

\setgitinfo

%\notocchaptercommands
%\notocauthorcommands

\setcounter{tocdepth}{0} % -1 stands for no entries
% was: 0

\tableofcontents*

%%% Foreword ----------------------------------------------------------

\cleartorecto

% Set the pagestyle (headings)

\pagestyle{backmatter}
\headstyles{main}

\InputIfFileExists{cwrc-vol\cwrcvolume-for.tex}{}

%%% Volume Introduction ------------------------------------------------

\InputIfFileExists{cwrc-vol\cwrcvolume-intro.tex}{}

%%% Information for the Reader -----------------------------------------

\setgitinfo
\InputIfFileExists{cwrc-vol\cwrcvolume-inforeader.tex}{}

\cleardoublepage
\setgitinfo
\raggedbottom

\pagestyle{chapsec} % Revert from empty for pictures
\openright

\mainmatter

\setgitinfo

\citeindextrue
