\ProvidesPackage{tex4ht-styles}
\RequirePackage{minted}

\usemintedstyle{lovelace}
\RequirePackage{xparse}

% formatting commands
\newcommand\file[1]{\texttt{#1}}
\newcommand\option[1]{\emph{#1}}
\newcommand\term[1]{\emph{#1}}
\newcommand\configuration[1]{\texttt{#1}}
\newcommand\package[1]{\texttt{#1}}
\newcommand\extension[1]{\texttt{#1}}

% this trick will enable us to take verbatim arguments
% https://tex.stackexchange.com/a/45292/2891
\NewDocumentCommand\texcommand{v}{\texttt{#1}}
\NewDocumentCommand\shellcmd{v}{\texttt{#1}}

\newenvironment{warning}{\bigskip\noindent\textbf{Warning:}}{\bigskip}
\newenvironment{acknowledgements}{\section{Acknowledgements}}{}
\newenvironment{issue}[1]{\bigskip\noindent\textbf{#1}}{\bigskip}

% shortcuts 
\newcommand\texfourht{\texttt{tex4ht}}
\newcommand\fourhtsty{\file{tex4ht.sty}}
\newcommand\fourhtfile{\file{.4ht}}
\newcommand\cfgfile{\term{custom configuration file}}
\newcommand\HTML{\texttt{HTML}}
\newcommand\HTMLV{\texttt{HTML5}}
\newcommand\ProTeX{\texttt{ProTeX}}
\newcommand\css{\texttt{CSS}}
\newcommand\xml{\texttt{XML}}
\newcommand\mathml{\texttt{MathML}}
\newcommand\svg{\texttt{SVG}}
\let\latex\LaTeX



% this was used by CVR in the options page
\let\chfont\texttt



\newminted[texsource]{latex}{}
\newminted[htmlsource]{html}{}
\newminted[shellcommand]{shell}{}
\newmintedfile[texinput]{latex}{}

% Document \Configure commands. They have variable number of arguments, so it is necessary to process them as a list
\def\PrintConfigures#1#2\@nil{\{#1\}\allowbreak\ifx\relax#2\relax\else\expandafter\PrintConfigures#2\@nil\fi}
\def\DocConfigure#1#2\EndDoc{\par\bigskip\noindent\texttt{\textbf{\textbackslash Configure}\{\textit{#1}\}\PrintConfigures#2{}\@nil}}

\endinput
