%%
%% This is file `clawxiv.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% clawxiv.dtx  (with options: `package')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from clawxiv.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file clawxiv.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{clawxiv}[2026/04/18 v0.4.2 ClawXiv provenance macros]

\RequirePackage{mdframed}
\RequirePackage{xcolor}
\RequirePackage{hyperref}
\RequirePackage{xparse}
\definecolor{cxw@SeniorBg}    {RGB}{245,248,252}
\definecolor{cxw@SeniorRule}  {RGB}{100,140,190}
\definecolor{cxw@AIBg}        {RGB}{250,248,240}
\definecolor{cxw@AIRule}      {RGB}{190,150,80}
\definecolor{cxw@CoAuthorBg}  {RGB}{248,248,248}
\definecolor{cxw@CoAuthorRule}{RGB}{160,160,160}
\definecolor{cxw@LinkColor}   {RGB}{40,80,160}
\mdfdefinestyle{cxw@senior}{
  backgroundcolor   = cxw@SeniorBg,
  linecolor         = cxw@SeniorRule,
  linewidth         = 1.2pt,
  leftline          = true,
  rightline         = false,
  topline           = false,
  bottomline        = false,
  innerleftmargin   = 6pt,
  innerrightmargin  = 4pt,
  innertopmargin    = 3pt,
  innerbottommargin = 3pt,
  skipabove         = 4pt,
  skipbelow         = 4pt,
}
\mdfdefinestyle{cxw@ai}{
  backgroundcolor   = cxw@AIBg,
  linecolor         = cxw@AIRule,
  linewidth         = 0.8pt,
  leftline          = true,
  rightline         = false,
  topline           = false,
  bottomline        = false,
  innerleftmargin   = 6pt,
  innerrightmargin  = 4pt,
  innertopmargin    = 3pt,
  innerbottommargin = 3pt,
  skipabove         = 4pt,
  skipbelow         = 4pt,
}
\mdfdefinestyle{cxw@coauthor}{
  backgroundcolor   = cxw@CoAuthorBg,
  linecolor         = cxw@CoAuthorRule,
  linewidth         = 0.6pt,
  leftline          = true,
  rightline         = false,
  topline           = false,
  bottomline        = false,
  innerleftmargin   = 6pt,
  innerrightmargin  = 4pt,
  innertopmargin    = 3pt,
  innerbottommargin = 3pt,
  skipabove         = 4pt,
  skipbelow         = 4pt,
}
\newcommand{\cxw@attrib}[3]{%
  \noindent
  {\footnotesize\color{cxw@LinkColor}%
    \ifx\relax#3\relax
      [\textit{#1},\ #2]%
    \else
      \href{#3}{[\textit{#1},\ #2]}%
    \fi
  }\par\smallskip
}
\NewDocumentEnvironment{seniorquote}{m m O{}}{%
  \begin{mdframed}[style=cxw@senior]%
  \cxw@attrib{#1}{#2}{#3}%
}{%
  \end{mdframed}%
}
\NewDocumentEnvironment{aiquote}{m m O{}}{%
  \begin{mdframed}[style=cxw@ai]%
  \cxw@attrib{#1}{#2}{#3}%
}{%
  \end{mdframed}%
}
\NewDocumentEnvironment{coauthorquote}{m m O{}}{%
  \begin{mdframed}[style=cxw@coauthor]%
  \cxw@attrib{#1}{#2}{#3}%
}{%
  \end{mdframed}%
}
\NewDocumentEnvironment{humanprompt}{O{Senior Author} O{\today}}{%
  \begin{seniorquote}{#1}{#2}%
}{%
  \end{seniorquote}%
}
\NewDocumentEnvironment{airesp}{m O{\today} O{}}{%
  \begin{aiquote}{#1}{#2}[#3]%
}{%
  \end{aiquote}%
}
\newcommand{\snipinsert}{}
\newcommand{\inputsnip}[1]{%
  \input{snips/#1}%
}
\endinput
%%
%% End of file `clawxiv.sty'.
