% ---- layout - lulu a5
\newcommand{\afivelayout}[0]{
    \setstocksize{8.52in}{6.08in} 
    \settrimmedsize{7.27in}{4.53in}{*}
    \settrims{0.50in}{0.75in}
    \setlrmarginsandblock{0.125in}{0.125in}{*} 
    \setulmarginsandblock{50pt}{*}{*}
    \setheaderspaces{*}{*}{1.618}
    \checkandfixthelayout}

% ---- layout - us letter, on laser printer
\newcommand{\usletterlayout}[0]{
    \setstocksize{8.5in}{5.5in} 
    \settrimmedsize{8.5in}{5.5in}{*}
    \settrims{0pt}{0pt}
    \setlrmarginsandblock{0.5in}{0.35in}{*} 
    \setulmarginsandblock{50pt}{*}{*}
    \setheaderspaces{*}{*}{1.618}
    \checkandfixthelayout}

% ---- layout duct tape

% some section where we just want to not be indenting paragraphs for a while
% obviously shouldnt be nested
% \newlength{\savelength}
% \newenvironment{noindent}{
%     \setlength{\savelength}{parindent}
%     \setlength{\parindent}{0}}{
%    \setlength{\parindent}{savelength}}

% ---- image shorthand

% \graphicspath{ {img/} } % a default, which could/should be changed

\newcommand{\img}[1]{
    \begin{center}
    % \includegraphics[width=0.9\textwidth]{1.1.1.png}
    \includegraphics[scale=1]{#1}
\end{center}}

\newcommand{\imgw}[2]{
	{\centering\vskip 1em\includegraphics[width=#1]{#2}
	\vskip 1em\par}}

% ---- font (antiqua)

\newcommand{\antiquafont}[0]{
    \usepackage{baskervald}
    \usepackage[T1]{fontenc}}

% ---- font (coelacanth)

\newcommand{\coelfont}[0]{
    \usepackage[nf]{coelacanth}
    \usepackage[T1]{fontenc}

    \let\oldnormalfont\normalfont
    \def\normalfont{\oldnormalfont\mdseries}}

% ---- font (day roman)

\newcommand{\dayromanfont}[0]{
    \usepackage[T1]{fontenc}
    %\usepackage{newpxtext,eulerpx}}
    \usepackage{newpxtext}}

% ---- font (garamond)

\newcommand{\garafont}{
	%\usepackage[cmintegrals,cmbraces]{newtxmath}
	%\usepackage{ebgaramond-maths}
	\usepackage{ebgaramond}
	\usepackage[T1]{fontenc}}

% ---- font gyre schola
\newcommand{\scholafont}{
	\usepackage{fontspec}
	\setmainfont[Mapping=tex-text]{TeX Gyre Schola}}

% ---- font (newpx)

\newcommand{\newpxfont}[0]{
    \usepackage[T1]{fontenc}
    \usepackage{newpxtext}}

% ---- metadata for a title page

\newcommand\visbreak{
	{\centering {\vskip 1em {$\diamond$ \hskip 0.5in $\diamond$ \hskip 0.5in $\diamond$}\vskip 1em} \par }}

% ---- semantic punctuation, etc
% quoting a word when speaking of a word itself
\newcommand{\word}[1]{
    \enquote{#1}}

% ---- odds-and-ends added for aurora

\newcommand{\textquotetranslate}[3]{\enquote{#1} ({#2} --- #3)}

% eg, \term with translation
\newcommand{\termtranslate}[2]{\emph{#1} ({#2})}

% eg, "quotedword" with translation
\newcommand{\wordtranslate}[2]{\enquote{#1} ({#2})}

% textquote with citation
\newcommand{\citedquote}[2]{\enquote{#1} ({#2})}

% inclusion of text in original language, w/ citation, w/o translation
\newcommand{\citedoriginal}[3]{(\emph{#1} --- {#2})}

% the original construct in the text is unclear to me
% \newcommand{\citedoriginal}[3]{({#1} --- \emph{#2} {#3})}

% ---- random odds-and-ends components
\newcommand{\nofolios}{
	\pagestyle{empty}}

\newcommand{\etc}{
    \textit{etc.}}

\newcommand{\eg}{
    \textit{e.g.}}

% timeforms bits i may use elsewhere...
\newcommand{\speaker}[1]{
        \textsc{#1}}

\newenvironment{dialogue}{
    % we want opposite indentation for paragraphs: first line of each paragraph not indented, every line after is indented.
    \begin{hangparas}{2em}{1}
}{
    \end{hangparas}
}

\newenvironment{alphaenumerate}{
	\renewcommand{\labelenumi}{\alpha{enumi}}
	\begin{enumerate}}{
	\end{enumerate}
	\renewcommand{\labelenumi}{\arabic{enumi}}}
% ---- random odds-and-ends components

\newcommand{\articletitle}[1]{\enquote{#1}}
\newcommand{\papertitle}[1]{\enquote{#1}}
\newcommand{\booktitle}[1]{\emph{#1}}
\newcommand{\journaltitle}[1]{\emph{#1}}
\newcommand{\conferencetitle}[1]{\textit{#1}}
\newcommand{\symposiumtitle}[1]{\enquote{#1}}
\newcommand{\opustitle}[1]{\uline{#1}}
\newcommand{\filmtitle}[1]{\emph{#1}}
\newcommand{\term}[1]{\emph{#1}}

\newcommand{\ie}[0]{i.e.}
\newcommand{\ibid}[0]{\textit{Ibid.}}
\newcommand{\opcit}[0]{\textit{op. cit.}}
\newcommand{\loccit}[0]{\textit{loc. cit.}}
\newcommand{\etseq}[0]{\textit{et. seq.}}
\newcommand{\etal}[0]{\textit{et. al.}}

\newcommand{\signoff}[1]{
    {\raggedleft #1 \par}}

\newcommand{\signoffnote}[1]{
	{\raggedleft \textit{#1} \par}}

\newcommand{\chapterauthor}[1]{
    {\large \itshape #1 \par }}

% ---- symbols etc

% \newcommand{\gl}{\guillemotleft}
% \newcommand{\gr}{\guillemotright}

\newcommand{\editornote}[1]{\footnote{
\sffamily #1 --- S.W.
}}
