\documentclass{article}

\usepackage{standalone}
\usepackage{luacas}
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage[margin=1in]{geometry}
\usepackage[shortlabels]{enumitem}

\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usetikzlibrary{positioning,calc}
\usepackage[edges]{forest}
\usepackage{minted}
\usemintedstyle{pastie}
\usepackage[hidelinks]{hyperref}
\usepackage{parskip}
\usepackage{multicol}
\usepackage[most]{tcolorbox}
    \tcbuselibrary{xparse}
\usepackage{microtype}
%\usepackage[toc]{multitoc}

\renewcommand{\comment}[1]{}

\usepackage[
backend=biber,
style=numeric,
]{biblatex}
\addbibresource{sources.bib}

\definecolor{rose}{RGB}{128,0,0}
\definecolor{roseyellow}{RGB}{222,205,99}
\definecolor{roseblue}{RGB}{167,188,214}
\definecolor{rosenavy}{RGB}{79,117,139}
\definecolor{roseorange}{RGB}{232,119,34}
\definecolor{rosegreen}{RGB}{61,68,30}
\definecolor{rosewhite}{RGB}{223,209,167}
\definecolor{rosebrown}{RGB}{108,87,27}
\definecolor{rosegray}{RGB}{84,88,90}

\definecolor{codegreen}{HTML}{49BE25}

\newtcolorbox{codebox}[1][sidebyside]{
    enhanced,skin=bicolor,
    #1,
    arc=1pt,
    colframe=brown,
    colback=brown!15,colbacklower=white,
    boxrule=1pt,
    notitle,
    %frame hidden
}

\newtcolorbox{codehead}[1][]{
    enhanced,
    frame hidden,
    colback=rosegray!15,
    boxrule=0mm,
    leftrule=5mm,
    rightrule=5mm,
    boxsep=0mm,
    arc=0mm,
    outer arc=0mm,
    left=3mm,
    right=3mm,
    top=1mm,
    bottom=1mm,
    toptitle=1mm,
    bottomtitle=1mm,
    oversize,
    #1
}

\DeclareTotalTCBox{\lilcoderef}{O{} m m}{
    enhanced,
    frame hidden,
    colback=rosegray!15,
    enhanced,
    nobeforeafter,
    tcbox raise base,
    boxrule=0mm,
    leftrule=5mm,
    rightrule=5mm,
    boxsep=0mm,
    arc=0mm,
    outer arc=0mm,
    left=1mm,
    right=1mm,
    top=1mm,
    bottom=1mm,
    oversize,
    #1
}{\mintinline{lua}{#2} \mintinline{lua}{#3}}


\usepackage{varwidth}

\newtcolorbox{newcodehead}[2][]{
    enhanced,
    frame hidden,
    colback=rosegray!15,
    boxrule=0mm,
    leftrule=5mm,
    rightrule=5mm,
    boxsep=0mm,
    arc=0mm,
    outer arc=0mm,
    left=3mm,
    right=3mm,
    top=1mm,
    bottom=1mm,
    toptitle=1mm,
    bottomtitle=1mm,
    oversize,
    #1,
    fonttitle=\bfseries\ttfamily\footnotesize,
    coltitle=rosegray,
    attach boxed title to top text right,
    boxed title style={frame hidden,size=small,bottom=-1mm,
    interior style={fill=none,
    top color=white,
    bottom color=white}},
    title={#2}
}
\usepackage{makeidx}
\usepackage{fontawesome5}
\usepackage{marginnote}
\makeindex

\newcommand{\coderef}[2]{%
\begin{codehead}[sidebyside,segmentation hidden]%
    \mintinline{lua}{#1}%
    \tcblower%
    \begin{flushright}%
    \mintinline{lua}{#2}%
    \end{flushright}%
\end{codehead}%
}

\newcommand{\newcoderef}[3]{%
\begin{newcodehead}[sidebyside,segmentation hidden]{#3}%
    \mintinline{lua}{#1}%
    \tcblower%
    \begin{flushright}%
    \mintinline{lua}{#2}%
    \end{flushright}%
\end{newcodehead}%
}

\def\error{\color{red}}
\def\self{\color{gray}}
\def\call{}

%\includeonly{
%    reference/ref_calculus/ref_calculus_methods/ref_calculus_methods_test.tex
%}

\begin{document}
\title{The {\ttfamily luacas} package}
\author{Evan Cochrane\thanks{\href{mailto:cochraef@rose-hulman.edu}{\ttfamily cochraef@rose-hulman.edu}} , Timothy All\thanks{\href{mailto:timothy.all@rose-hulman.edu}{\ttfamily timothy.all@rose-hulman.edu}}}
\date{v1.0.2\\ \today}

\maketitle

\begin{abstract}
    The {\ttfamily luacas} package is a portable Computer Algebra System capable of symbolic computation, written entirely in Lua, designed for use in Lua\LaTeX{}.
\end{abstract}

\tableofcontents

\include{intro/intropart.tex}

\include{intro/intro.tex}

\include{tutorial/tut.tex}

\include{tutorial/tut1/tut1.tex}

\include{tutorial/tut2/tut2.tex}

\include{tutorial/tut3/tut3.tex}

\include{reference/ref.tex}

\include{reference/ref_core/ref_core.tex}

\include{reference/ref_core/ref_core_classes/ref_core_classes.tex}

\include{reference/ref_core/ref_core_methods/ref_core_methods.tex}

\include{reference/ref_algebra/ref_algebra.tex}

\include{reference/ref_algebra/ref_algebra_classes/ref_algebra_classes.tex}

\include{reference/ref_algebra/ref_algebra_methods/ref_algebra_methods.tex}

\include{reference/ref_calculus/ref_calculus.tex}

\include{reference/ref_calculus/ref_calculus_classes/ref_calculus_classes.tex}

\include{reference/ref_calculus/ref_calculus_methods/ref_calculus_methods.tex}

\appendix

\include{appendix/latexcode.tex}

\include{appendix/versionhistory.tex}

\newpage

\printindex


\end{document}