% cr-formatting-preamble-local.tex  
% CircuitousRoot LaTeX Formatting, 2023 Reworking: 
% Locally modifiable LaTeX preamble macros
% Revision 1, 2023-01-03
%
% Copyright 2023 by Dr. David M. MacMillan.
% License:  LaTeX Project Public License Version 1.3c.
%           This work has the LPPL maintenance status 'unmaintained'.
%           This work consists of the files: 
%           "cr-formatting-preamble-local.texfrag",
%           "cr-formatting-preamble.texfrag",
%           "cr-formatting-setup.texfrag", and
%           "cr-formatting-setup-local.texfrag".
%           See:  http://www.latex-project.org/lppl/
%           Note:  This work is described in a document,
%                  "cr-formatting-guide.tex" (CircuitousRoot LaTeX Formatting),
%                  which is licensed under the 
%                  Creative Commons Attribution 4.0 International license.

% Encoding:  UTF-8, Unicode
% Requires:  XeLaTeX (xelatex)

% Usage:
% This is a fragment of a TeX/LaTeX file.  It is intended to provide
% the preamble for the CircuitousRoot LaTeX formatting (2023 reworking).
% To use it, copy it to a local file for your document, modify it as
% required, and \input it as the first non-comment statement of your
% LaTeX document:
%
%    \input{cr-formatting-preamble-mylocaldocument.texfrag}
%    \input{cr-formatting-preamble.texfrag}
%
% You must provide any additional preamble material and the \begin{document}
% statement yourself in your own document.
%
% You should also probably input the "setup" fragment as the first thing
% after your document begins:
%
% \begin{document}
% \input{cr-formatting-setup.texfrag}
% \input{cr-formatting-setup-mylocaldocument.texfrag}
%
% For complete usage notes, see the document "CircuitousRoot LaTeX Formatting,"
% which should have accompanied these macros.
%------------------------------------------------------------------------------


% Default CR Formatting setup
%----------------------------
% Override these on the command line.  E.g.:
%  xelatex -jobname=outfile '\def\crDoubleColumnDoubleSided{}\input{infile.tex}'

% Default to Single Column, Single-Sided
\def\crSingleColumnSingleSided{}

% Default to a Monograph (\crBook, \crMonograph, \crArticle)
%\def\crArticle{}
%\def\crMonograph{}
\def\crBook{}

% If a book, set the LaTeX document to book (used in documentclass, later)
% otherwise set it to article.
% The main effect of this is to set section numbering correctly for
% books vs. monographs & articles.
\ifdefined\crBook                       
   \def\crLaTeXDocumentType{book}        % book
\else
   \def\crLaTeXDocumentType{article}     % monograph or article
\fi


