| 1 |
\documentclass{article} |
| 2 |
|
| 3 |
\usepackage{standalone} |
| 4 |
\usepackage{luacas} |
| 5 |
\usepackage{amsmath} |
| 6 |
\usepackage{amssymb} |
| 7 |
|
| 8 |
\usepackage[margin=1in]{geometry} |
| 9 |
\usepackage[shortlabels]{enumitem} |
| 10 |
|
| 11 |
\usepackage{pgfplots} |
| 12 |
\pgfplotsset{compat=1.18} |
| 13 |
\usetikzlibrary{positioning,calc} |
| 14 |
\usepackage[edges]{forest} |
| 15 |
\usepackage{minted} |
| 16 |
\usemintedstyle{pastie} |
| 17 |
\usepackage[hidelinks]{hyperref} |
| 18 |
\usepackage{parskip} |
| 19 |
\usepackage{multicol} |
| 20 |
\usepackage[most]{tcolorbox} |
| 21 |
\tcbuselibrary{xparse} |
| 22 |
\usepackage{microtype} |
| 23 |
%\usepackage[toc]{multitoc} |
| 24 |
|
| 25 |
\renewcommand{\comment}[1]{} |
| 26 |
|
| 27 |
\usepackage[ |
| 28 |
backend=biber, |
| 29 |
style=numeric, |
| 30 |
]{biblatex} |
| 31 |
\addbibresource{sources.bib} |
| 32 |
|
| 33 |
\definecolor{rose}{RGB}{128,0,0} |
| 34 |
\definecolor{roseyellow}{RGB}{222,205,99} |
| 35 |
\definecolor{roseblue}{RGB}{167,188,214} |
| 36 |
\definecolor{rosenavy}{RGB}{79,117,139} |
| 37 |
\definecolor{roseorange}{RGB}{232,119,34} |
| 38 |
\definecolor{rosegreen}{RGB}{61,68,30} |
| 39 |
\definecolor{rosewhite}{RGB}{223,209,167} |
| 40 |
\definecolor{rosebrown}{RGB}{108,87,27} |
| 41 |
\definecolor{rosegray}{RGB}{84,88,90} |
| 42 |
|
| 43 |
\definecolor{codegreen}{HTML}{49BE25} |
| 44 |
|
| 45 |
\newtcolorbox{codebox}[1][sidebyside]{ |
| 46 |
enhanced,skin=bicolor, |
| 47 |
#1, |
| 48 |
arc=1pt, |
| 49 |
colframe=brown, |
| 50 |
colback=brown!15,colbacklower=white, |
| 51 |
boxrule=1pt, |
| 52 |
notitle, |
| 53 |
%frame hidden |
| 54 |
} |
| 55 |
|
| 56 |
\newtcolorbox{codehead}[1][]{ |
| 57 |
enhanced, |
| 58 |
frame hidden, |
| 59 |
colback=rosegray!15, |
| 60 |
boxrule=0mm, |
| 61 |
leftrule=5mm, |
| 62 |
rightrule=5mm, |
| 63 |
boxsep=0mm, |
| 64 |
arc=0mm, |
| 65 |
outer arc=0mm, |
| 66 |
left=3mm, |
| 67 |
right=3mm, |
| 68 |
top=1mm, |
| 69 |
bottom=1mm, |
| 70 |
toptitle=1mm, |
| 71 |
bottomtitle=1mm, |
| 72 |
oversize, |
| 73 |
#1 |
| 74 |
} |
| 75 |
|
| 76 |
\DeclareTotalTCBox{\lilcoderef}{O{} m m}{ |
| 77 |
enhanced, |
| 78 |
frame hidden, |
| 79 |
colback=rosegray!15, |
| 80 |
enhanced, |
| 81 |
nobeforeafter, |
| 82 |
tcbox raise base, |
| 83 |
boxrule=0mm, |
| 84 |
leftrule=5mm, |
| 85 |
rightrule=5mm, |
| 86 |
boxsep=0mm, |
| 87 |
arc=0mm, |
| 88 |
outer arc=0mm, |
| 89 |
left=1mm, |
| 90 |
right=1mm, |
| 91 |
top=1mm, |
| 92 |
bottom=1mm, |
| 93 |
oversize, |
| 94 |
#1 |
| 95 |
}{\mintinline{lua}{#2} \mintinline{lua}{#3}} |
| 96 |
|
| 97 |
|
| 98 |
\usepackage{varwidth} |
| 99 |
|
| 100 |
\newtcolorbox{newcodehead}[2][]{ |
| 101 |
enhanced, |
| 102 |
frame hidden, |
| 103 |
colback=rosegray!15, |
| 104 |
boxrule=0mm, |
| 105 |
leftrule=5mm, |
| 106 |
rightrule=5mm, |
| 107 |
boxsep=0mm, |
| 108 |
arc=0mm, |
| 109 |
outer arc=0mm, |
| 110 |
left=3mm, |
| 111 |
right=3mm, |
| 112 |
top=1mm, |
| 113 |
bottom=1mm, |
| 114 |
toptitle=1mm, |
| 115 |
bottomtitle=1mm, |
| 116 |
oversize, |
| 117 |
#1, |
| 118 |
fonttitle=\bfseries\ttfamily\footnotesize, |
| 119 |
coltitle=rosegray, |
| 120 |
attach boxed title to top text right, |
| 121 |
boxed title style={frame hidden,size=small,bottom=-1mm, |
| 122 |
interior style={fill=none, |
| 123 |
top color=white, |
| 124 |
bottom color=white}}, |
| 125 |
title={#2} |
| 126 |
} |
| 127 |
\usepackage{makeidx} |
| 128 |
\usepackage{fontawesome5} |
| 129 |
\usepackage{marginnote} |
| 130 |
\makeindex |
| 131 |
|
| 132 |
\newcommand{\coderef}[2]{% |
| 133 |
\begin{codehead}[sidebyside,segmentation hidden]% |
| 134 |
\mintinline{lua}{#1}% |
| 135 |
\tcblower% |
| 136 |
\begin{flushright}% |
| 137 |
\mintinline{lua}{#2}% |
| 138 |
\end{flushright}% |
| 139 |
\end{codehead}% |
| 140 |
} |
| 141 |
|
| 142 |
\newcommand{\newcoderef}[3]{% |
| 143 |
\begin{newcodehead}[sidebyside,segmentation hidden]{#3}% |
| 144 |
\mintinline{lua}{#1}% |
| 145 |
\tcblower% |
| 146 |
\begin{flushright}% |
| 147 |
\mintinline{lua}{#2}% |
| 148 |
\end{flushright}% |
| 149 |
\end{newcodehead}% |
| 150 |
} |
| 151 |
|
| 152 |
\def\error{\color{red}} |
| 153 |
\def\self{\color{gray}} |
| 154 |
\def\call{} |
| 155 |
|
| 156 |
%\includeonly{ |
| 157 |
% reference/ref_calculus/ref_calculus_methods/ref_calculus_methods_test.tex |
| 158 |
%} |
| 159 |
|
| 160 |
\begin{document} |
| 161 |
\title{The {\ttfamily luacas} package} |
| 162 |
\author{Evan Cochrane\thanks{\href{mailto:[email protected]}{\ttfamily [email protected]}} , Timothy All\thanks{\href{mailto:[email protected]}{\ttfamily [email protected]}}} |
| 163 |
\date{v1.0.2\\ \today} |
| 164 |
|
| 165 |
\maketitle |
| 166 |
|
| 167 |
\begin{abstract} |
| 168 |
The {\ttfamily luacas} package is a portable Computer Algebra System capable of symbolic computation, written entirely in Lua, designed for use in Lua\LaTeX{}. |
| 169 |
\end{abstract} |
| 170 |
|
| 171 |
\tableofcontents |
| 172 |
|
| 173 |
\include{intro/intropart.tex} |
| 174 |
|
| 175 |
\include{intro/intro.tex} |
| 176 |
|
| 177 |
\include{tutorial/tut.tex} |
| 178 |
|
| 179 |
\include{tutorial/tut1/tut1.tex} |
| 180 |
|
| 181 |
\include{tutorial/tut2/tut2.tex} |
| 182 |
|
| 183 |
\include{tutorial/tut3/tut3.tex} |
| 184 |
|
| 185 |
\include{reference/ref.tex} |
| 186 |
|
| 187 |
\include{reference/ref_core/ref_core.tex} |
| 188 |
|
| 189 |
\include{reference/ref_core/ref_core_classes/ref_core_classes.tex} |
| 190 |
|
| 191 |
\include{reference/ref_core/ref_core_methods/ref_core_methods.tex} |
| 192 |
|
| 193 |
\include{reference/ref_algebra/ref_algebra.tex} |
| 194 |
|
| 195 |
\include{reference/ref_algebra/ref_algebra_classes/ref_algebra_classes.tex} |
| 196 |
|
| 197 |
\include{reference/ref_algebra/ref_algebra_methods/ref_algebra_methods.tex} |
| 198 |
|
| 199 |
\include{reference/ref_calculus/ref_calculus.tex} |
| 200 |
|
| 201 |
\include{reference/ref_calculus/ref_calculus_classes/ref_calculus_classes.tex} |
| 202 |
|
| 203 |
\include{reference/ref_calculus/ref_calculus_methods/ref_calculus_methods.tex} |
| 204 |
|
| 205 |
\appendix |
| 206 |
|
| 207 |
\include{appendix/latexcode.tex} |
| 208 |
|
| 209 |
\include{appendix/versionhistory.tex} |
| 210 |
|
| 211 |
\newpage |
| 212 |
|
| 213 |
\printindex |
| 214 |
|
| 215 |
|
| 216 |
\end{document} |