% remove creation date and other optional info, so that only change in text trigger checkin
\pdfvariable suppressoptionalinfo 767
% fancy verbatim
% https://ctan.org/pkg/fvextra
\usepackage{fvextra}
\fvset{breaklines}
\fvset{breaknonspaceingroup}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{
  commandchars=\\\{\},
  showtabs=false,
  showspaces=false,
  breaklines,
  breaksymbolleft=\tiny\ensuremath{\hookrightarrow},
  breaknonspaceingroup,
  breakafter=\,.:|-\space,
  highlightlines=1-1000,
  highlightcolor=lightgray,
  fontsize=\small
}
% \usepackage{grffile}
\usepackage{graphicx}
\graphicspath{{\directlua{tex.sprint(os.getenv('GFX_DIR'))}}}
% https://ctan.org/pkg/eso-pic
\usepackage{eso-pic}
\AddToShipoutPictureBG*{
  \AtPageUpperLeft{\raisebox{-\height}{
    \includegraphics[width=\paperwidth]{manual_cover_top.png}
  }}
  \AtPageLowerLeft{
    \includegraphics[width=\paperwidth]{manual_cover_bottom.png}
  }
}
\usepackage{ulem}
% underline bold text
\renewcommand{\textbf}[1]{\uline{#1}}
% place code in lightgray box
\let\oldtexttt\texttt
\renewcommand{\texttt}[1]{
  \colorbox{lightgray}{\oldtexttt{#1}}
}
% tight box around code
\fboxsep1pt
% black border for quotes
\usepackage{framed}
\renewenvironment{quote}
  {\def\FrameCommand{\vrule width 3pt \hspace{10pt}}
   \MakeFramed{\advance\hsize-\width \FrameRestore}\itshape}
  {\endMakeFramed}
\usepackage{indentfirst}
\setlength{\parindent}{2em}
