summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tiscreen
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-03-11 03:00:57 +0000
committerNorbert Preining <norbert@preining.info>2022-03-11 03:00:57 +0000
commitdc086771e418d7c66a541d2831b468375c5f7090 (patch)
tree182467c4304d5956a3caa8a691ce27b14faeacaf /macros/latex/contrib/tiscreen
parent6367aa11ef0b99d86693b685ab67096514792a0f (diff)
CTAN sync 202203110300
Diffstat (limited to 'macros/latex/contrib/tiscreen')
-rw-r--r--macros/latex/contrib/tiscreen/README2
-rw-r--r--macros/latex/contrib/tiscreen/doc/tiscreen-doc.pdfbin150094 -> 229778 bytes
-rw-r--r--macros/latex/contrib/tiscreen/doc/tiscreen-doc.tex263
-rw-r--r--macros/latex/contrib/tiscreen/tex/tiscreen.sty149
4 files changed, 327 insertions, 87 deletions
diff --git a/macros/latex/contrib/tiscreen/README b/macros/latex/contrib/tiscreen/README
index 17f81e8592..ce974f7cbe 100644
--- a/macros/latex/contrib/tiscreen/README
+++ b/macros/latex/contrib/tiscreen/README
@@ -4,6 +4,8 @@ This package mimics the screen and buttons of older Texas instruments dot
matrix display calculators, specifically the TI-82 STATS.
Changes:
+- 2021/12/31 Added all buttons
+- 2021/12/18 Add TI-84 characters
- 2021/09/18 Added buttons
- 2021/07/22 Added bracket symbols
- 2021/06/10 Simplified example code in documentation
diff --git a/macros/latex/contrib/tiscreen/doc/tiscreen-doc.pdf b/macros/latex/contrib/tiscreen/doc/tiscreen-doc.pdf
index 3b8f41078b..577278af1d 100644
--- a/macros/latex/contrib/tiscreen/doc/tiscreen-doc.pdf
+++ b/macros/latex/contrib/tiscreen/doc/tiscreen-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/tiscreen/doc/tiscreen-doc.tex b/macros/latex/contrib/tiscreen/doc/tiscreen-doc.tex
index b1e689ba74..6e0207271e 100644
--- a/macros/latex/contrib/tiscreen/doc/tiscreen-doc.tex
+++ b/macros/latex/contrib/tiscreen/doc/tiscreen-doc.tex
@@ -1,14 +1,16 @@
-% TODO: make funciton for printing \LCDcmd
-
\documentclass[a4paper,12pt]{article}
+
\usepackage[iso,english]{isodate}
\usepackage[margin=1in]{geometry}
\usepackage[english]{babel}
+\usepackage{hyperref}
\usepackage{parskip}
+
+\usepackage{amsmath}
\usepackage[color]{tiscreen}
\usepackage{multicol}
-\usepackage{hyperref}
\usepackage{array}
+\usepackage{longtable}
\usepackage{fancyvrb-ex}
\fvset{
frame=single,
@@ -19,30 +21,46 @@
}
\newcommand{\LCDsymb}[1]{\large \textLCD{1}|{#1}~|}
-\newcommand{\printcmd}[1]{\texttt{\textbackslash #1}}
-\title{TI calculator screen (and buttons)\\{\small TI-82 STATS}}
-\author{Mustafa Ibrahim}
+\title{TI calculator screen (and buttons)\\{\small TI-82 STATS, TI-84}}
+\author{Mustafa Ibrahim, Caleb Bibb}
+\date{2021-12-31}
\begin{document}
\maketitle
\begin{center}
-\tiscreen
-|10^6*(4^7+1){rarrow}X |
-| 1.6385E10|
-|{sqrt}(X)*X/10! |
-| 577971782.1|
-|cos{ar}(cos(Ans)) |
-| 62.11246|
-|{fcur} |
-| |
+ \begin{tabular}{cc}
+ \tiscreen
+ |10^6*(4^7+1){rarrow}X |
+ | 1.6385E10|
+ |{sqrt}(X)*X/10! |
+ | 577971782.1|
+ |cos{ar}(cos(Ans)) |
+ | 62.11246|
+ |{fcur} |
+ | |
+ &
+ \tibtnextramatrix
+ \end{tabular}
-\tibtnmatrixextra
+ \dotfill
+
+ \begin{tabular}{ccccc}
+ \tibtnsecond & \tibtnmode & \tibtndel & & \\
+ \tibtnalpha & \tibtnxton & \tibtnstat & & \\
+ \tibtnmath & \tibtnmatrix & \tibtnprgm & \tibtnvars & \tibtnclear \\
+ \tibtnxnone & \tibtnsin & \tibtncos & \tibtntan & \tibtnpower \\
+ \tibtnxtwo & \tibtncomma & \tibtnleftparen & \tibtnrightparen & \tibtndiv \\
+ \tibtnlog & \tibtnseven & \tibtneight & \tibtnnine & \tibtntimes \\
+ \tibtnln & \tibtnfour & \tibtnfive & \tibtnsix & \tibtnminus \\
+ \tibtnsto & \tibtnone & \tibtntwo & \tibtnthree & \tibtnplus \\
+ \tibtnon & \tibtnzero & \tibtndot & \tibtnneg & \tibtnenter \\
+ \end{tabular}
\end{center}
-\tableofcontents\newpage
+\newpage\tableofcontents\newpage
\section{Quickstart}
@@ -59,22 +77,19 @@
| |
| |
-\tibtnmatrixextra
+Lorem \tibtnmath{} ipsum
-Lorem
-\tibtn[white]{tibtngray}{MATH}
-ipsum
-
-\tibtnextra{\tibtn[white]{tibtngray}{MATH}}{TEST}{A}
+\tibtnextramath
\end{SideBySideExample}
\section{Package option(s)}
-\subsection{Color}
-Using the \texttt{color} option will change the colors used by the
-\printcmd{LCD} command for printing the screen using \printcmd{tiscreen}. The
-colors are defined as \texttt{tiscreenfg} (foreground, i.e. font color) and
-\texttt{tiscreenbg} (background) and redefined like this:
+\subsection{Color} \label{sec:color}
+
+Using the \texttt{color} option will change the colors used by the \verb|\LCD|
+command for printing the screen using \verb|\tiscreen|. The colors are defined
+as \texttt{tiscreenfg} (foreground, i.e. font color) and \texttt{tiscreenbg}
+(background) and redefined like this:
\begin{Verbatim}
% Add this to your preamble
@@ -82,12 +97,27 @@ colors are defined as \texttt{tiscreenfg} (foreground, i.e. font color) and
\definecolor{tiscreenfg}{HTML}{FFFFFF}
\end{Verbatim}
-\part{Screen}
+\subsection{Defined colors} \label{sec:colordef}
+
+\begin{tabular}{lcl}
+ Name & Color & Usage \\ \hline
+ tiscreenfg & {\ttfamily \color{tiscreenfg}{000000}} & LCD commands \\
+ tiscreenbg & {\ttfamily \color{tiscreenbg}{5d9345}} & LCD commands \\
+ tibtngray & {\ttfamily \color{tibtngray}{494F54}} & Buttons \\
+ tibtnyellow & {\ttfamily \colorbox{tibtncaseblack}{\color{tibtnyellow}{F1E78B}}} & Buttons \\
+ tibtngreen & {\ttfamily \colorbox{tibtncaseblack}{\color{tibtngreen}{D5DE93}}} & Buttons \\
+ tibtnwhite & {\ttfamily \colorbox{tibtncaseblack}{\color{tibtnwhite}{E2E2E2}}} & Buttons \\
+ tibtnblue & {\ttfamily \colorbox{tibtncaseblack}{\color{tibtnblue}{CDE2E9}}} & Buttons \\
+ tibtncaseblack & {\ttfamily \color{tibtncaseblack}{232A32}} & Buttons \\
+\end{tabular}
+
+\clearpage\part{Screen}
+
\section{LCD size}
The default LCD size is $8 \times 16$ (the size of the TI-82 STATS). It can be
changed by redefining the variables used to determine the size of the display
-or by using the original \printcmd{LCD} command.
+or by using the original \verb|\LCD| command.
\begin{Verbatim}
% First method (For entire document)
@@ -103,68 +133,147 @@ or by using the original \printcmd{LCD} command.
|SIZE |
\end{Verbatim}
-\section{Additional defined characters} \LCDcolors{black}{white}
+\section{(Re)defined characters} \LCDcolors{black}{white}
+
\begin{center}
- \begin{tabular}{|l|l|>{\ttfamily}l|}
+ \begin{longtable}{|l|l|l|}
\multicolumn{3}{c}{\textbf{Added characters}} \\
\hline
- Name & Symbol &\textnormal{\printcmd{LCD} Code} \\
+ Name & Symbol & \verb|\LCD| \textnormal{Code} \\
\hline
- E & \LCDsymb{sciE} & \{sciE\} \\
- $\sigma$ & \LCDsymb{sigma} & \{sigma\} \\
- $x^2$ & \LCDsymb{sq} & \{sq\} \\
- $x^{-1}$ & \LCDsymb{ar} & \{ar\} \\
- $y^x$ & \LCDsymb{cx} & \{cx\} \\
- $x_1$ & \LCDsymb{sub1} & \{sub1\} \\
- $x_2$ & \LCDsymb{sub2} & \{sub2\} \\
- $x_3$ & \LCDsymb{sub3} & \{sub3\} \\
- $x_4$ & \LCDsymb{sub4} & \{sub4\} \\
- $x_5$ & \LCDsymb{sub5} & \{sub5\} \\
- $x_6$ & \LCDsymb{sub6} & \{sub6\} \\
- $\bar x$ & \LCDsymb{barx} & \{barx\} \\
- $\bar y$ & \LCDsymb{bary} & \{bary\} \\
+ E & \LCDsymb{sciE} & \verb|{sciE}| \\
+ $\sigma$ & \LCDsymb{sigma} & \verb|{sigma}| \\
+ $\Sigma$ & \LCDsymb{Sigma} & \verb|{Sigma}| \\
+ $x^2$ & \LCDsymb{sq} & \verb|{sq}| \\
+ $x^{-1}$ & \LCDsymb{ar} & \verb|{ar}| \\
+ $x^3$ & \LCDsymb{c3} & \verb|{c3}| \\
+ $y^x$ & \LCDsymb{cx} & \verb|{cx}| \\
+ $x_1$ & \LCDsymb{sub1} & \verb|{sub1}| \\
+ $x_2$ & \LCDsymb{sub2} & \verb|{sub2}| \\
+ $x_3$ & \LCDsymb{sub3} & \verb|{sub3}| \\
+ $x_4$ & \LCDsymb{sub4} & \verb|{sub4}| \\
+ $x_5$ & \LCDsymb{sub5} & \verb|{sub5}| \\
+ $x_6$ & \LCDsymb{sub6} & \verb|{sub6}| \\
+ $x_{10}$ & \LCDsymb{sub10} & \verb|{sub10}| \\
+ $\bar x$ & \LCDsymb{barx} & \verb|{barx}| \\
+ $\bar y$ & \LCDsymb{bary} & \verb|{bary}| \\
+ $-x$ & \LCDsymb{dash} & \verb|{dash}| \\
+ $\rightarrow$ & \LCDsymb{sto} & \verb|{sto}| \\
+ $\theta$ & \LCDsymb{theta} & \verb|{theta}| \\
+ $\pi$ & \LCDsymb{pi} & \verb|{pi}| \\
+ $\eta$ & \LCDsymb{eta} & \verb|{eta}| \\
+ $+$ & \LCDsymb{tick} & \verb|{tick}| \\
+ $^\circ$ & \LCDsymb{degree} & \verb|{degree}| \\
+ & \LCDsymb{square} & \verb|{square}| \\
+ & \LCDsymb{alpha} & \verb|{alpha}| \\
+ $\uparrow$ & \LCDsymb{2nd} & \verb|{2nd}| \\
+ $\geq$ & \LCDsymb{geq} & \verb|{geq}| \\
+ $\leq$ & \LCDsymb{leq} & \verb|{leq}| \\
+ $\neq$ & \LCDsymb{neq} & \verb|{neq}| \\
+ $x^3$ & \LCDsymb{c3} & \verb|{c3}| \\
+ $A^T$ & \LCDsymb{transpose} & \verb|{transpose}| \\
+ $A^r$ & \LCDsymb{upr} & \verb|{upr}| \\
+ $chi$ & \LCDsymb{chi} & \verb|{chi}| \\
+ $\triangleright$ & \LCDsymb{fwedge} & \verb|{fwedge}| \\
+ $\triangleleft$ & \LCDsymb{bwedge} & \verb|{bwedge}| \\
+ $\mathbf{N}$ & \LCDsymb{bbN} & \verb|{bbN}| \\
+ $\mathbf{/}$ & \LCDsymb{bb/} & \verb|{bb/}| \\
\hline
\multicolumn{3}{c}{\textbf{Redefined characters}} \\
\hline
- ! & \LCDsymb{!} & \{!\} \\
- \{ & \LCDsymb{lb} & \{lb\} \\
- \} & \LCDsymb{rb} & \{rb\} \\
- $[$ & \LCDsymb{rb} & \{rb\} \\
- $]$ & \LCDsymb{rb} & \{rb\} \\
- $\sqrt{x}$ & \LCDsymb{sqrt} & \{sqrt\} \\
- e & \LCDsymb{e} & e \\
- i & \LCDsymb{i} & i \\
- v & \LCDsymb{v} & v \\
- w & \LCDsymb{w} & w \\
+ ! & \LCDsymb{!} & \{!\} \\
+ \{ & \LCDsymb{lb} & \{lb\} \\
+ \} & \LCDsymb{rb} & \{rb\} \\
+ $[$ & \LCDsymb{[} & \{[\} \\
+ $]$ & \LCDsymb{]} & \{]\} \\
+ $\sqrt{x}$ & \LCDsymb{sqrt} & \{sqrt\} \\
+ e & \LCDsymb{e} & \{e\} \\
+ i & \LCDsymb{i} & \{i\} \\
+ v & \LCDsymb{v} & \{v\} \\
+ w & \LCDsymb{w} & \{w\} \\
+ Ellipses & \LCDsymb{ell} & \{ell\} \\
+ Apostrophe & \LCDsymb{'} & \{'\} \\
+ List & \LCDsymb{L} & \{L\} \\
+ Underscore & \LCDsymb{_} & \{\_\} \\
\hline
- \end{tabular}
+ \end{longtable}
\end{center}
-\part{Buttons}
-\section{Usage}
-
-Use the \printcmd{tibtn} command only prints the button and is usefull when
-needing the buttons to be displayed inline. The \printcmd{tibtnextra} takes
-extra arguments to show extra options for the button (accesed by the
-\tibtnsecond{} and \tibtnalpha{} buttons).
+\clearpage\part{Buttons}
-\begin{SideBySideExample}[xrightmargin=5.5cm]
-\tibtnextra{\tibtn[white]{tibtngray}{MATH}}{TEST}{A}
+\section{Usage}
-Lorem
-\tibtn[white]{tibtngray}{MATH}
-ipsum
-\end{SideBySideExample}
+The \verb|\tibtn<...>| commands only prints the button and are useful when
+displaying buttons inline. The \verb|\tibtnextra<...>| commands shows the extra
+functionality of the button (accessed by the \tibtnsecond{} and \tibtnalpha{}
+buttons). See secion \ref{sec:button} for defined buttons and section
+\ref{sec:buttonscustom} for how to define custom buttons.
-\section{Defined buttons}
+\section{Defined buttons} \label{sec:button}
\begin{center}
- \begin{tabular}{|>{\ttfamily}l|l|}
- \multicolumn{2}{c}{\textbf{Defined buttons}} \\ \hline
- \textnormal{Command} & Output \\ \hline
- \printcmd{tibtnmatrix} & \tibtnmatrix{} \\ \hline
- \printcmd{tibtnmatrixextra} & \tibtnmatrixextra{} \\ \hline
- \end{tabular}
+ \begin{longtable}{lrlr}
+ \verb|\tibtnsecond| & \tibtnsecond & \tibtnextrasecond & \verb|\tibtnextrasecond| \\
+ \verb|\tibtnmode| & \tibtnmode & \tibtnextramode & \verb|\tibtnextramode| \\
+ \verb|\tibtndel| & \tibtndel & \tibtnextradel & \verb|\tibtnextradel| \\
+ \verb|\tibtnalpha| & \tibtnalpha & \tibtnextraalpha & \verb|\tibtnextraalpha| \\
+ \verb|\tibtnxton| & \tibtnxton & \tibtnextraxton & \verb|\tibtnextraxton| \\
+ \verb|\tibtnstat| & \tibtnstat & \tibtnextrastat & \verb|\tibtnextrastat| \\
+ \verb|\tibtnmath| & \tibtnmath & \tibtnextramath & \verb|\tibtnextramath| \\
+ \verb|\tibtnmatrix| & \tibtnmatrix & \tibtnextramatrix & \verb|\tibtnextramatrix| \\
+ \verb|\tibtnprgm| & \tibtnprgm & \tibtnextraprgm & \verb|\tibtnextraprgm| \\
+ \verb|\tibtnvars| & \tibtnvars & \tibtnextravars & \verb|\tibtnextravars| \\
+ \verb|\tibtnclear| & \tibtnclear & \tibtnextraclear & \verb|\tibtnextraclear| \\
+ \verb|\tibtnxnone| & \tibtnxnone & \tibtnextraxnone & \verb|\tibtnextraxnone| \\
+ \verb|\tibtnsin| & \tibtnsin & \tibtnextrasin & \verb|\tibtnextrasin| \\
+ \verb|\tibtncos| & \tibtncos & \tibtnextracos & \verb|\tibtnextracos| \\
+ \verb|\tibtntan| & \tibtntan & \tibtnextratan & \verb|\tibtnextratan| \\
+ \verb|\tibtnpower| & \tibtnpower & \tibtnextrapower & \verb|\tibtnextrapower| \\
+ \verb|\tibtnxtwo| & \tibtnxtwo & \tibtnextraxtwo & \verb|\tibtnextraxtwo| \\
+ \verb|\tibtncomma| & \tibtncomma & \tibtnextracomma & \verb|\tibtnextracomma| \\
+ \verb|\tibtnleftparen| & \tibtnleftparen & \tibtnextraleftparen & \verb|\tibtnextraleftparen| \\
+ \verb|\tibtnrightparen| & \tibtnrightparen & \tibtnextrarightparen & \verb|\tibtnextrarightparen| \\
+ \verb|\tibtndiv| & \tibtndiv & \tibtnextradiv & \verb|\tibtnextradiv| \\
+ \verb|\tibtnlog| & \tibtnlog & \tibtnextralog & \verb|\tibtnextralog| \\
+ \verb|\tibtnseven| & \tibtnseven & \tibtnextraseven & \verb|\tibtnextraseven| \\
+ \verb|\tibtneight| & \tibtneight & \tibtnextraeight & \verb|\tibtnextraeight| \\
+ \verb|\tibtnnine| & \tibtnnine & \tibtnextranine & \verb|\tibtnextranine| \\
+ \verb|\tibtntimes| & \tibtntimes & \tibtnextratimes & \verb|\tibtnextratimes| \\
+ \verb|\tibtnln| & \tibtnln & \tibtnextraln & \verb|\tibtnextraln| \\
+ \verb|\tibtnfour| & \tibtnfour & \tibtnextrafour & \verb|\tibtnextrafour| \\
+ \verb|\tibtnfive| & \tibtnfive & \tibtnextrafive & \verb|\tibtnextrafive| \\
+ \verb|\tibtnsix| & \tibtnsix & \tibtnextrasix & \verb|\tibtnextrasix| \\
+ \verb|\tibtnminus| & \tibtnminus & \tibtnextraminus & \verb|\tibtnextraminus| \\
+ \verb|\tibtnsto| & \tibtnsto & \tibtnextrasto & \verb|\tibtnextrasto| \\
+ \verb|\tibtnone| & \tibtnone & \tibtnextraone & \verb|\tibtnextraone| \\
+ \verb|\tibtntwo| & \tibtntwo & \tibtnextratwo & \verb|\tibtnextratwo| \\
+ \verb|\tibtnthree| & \tibtnthree & \tibtnextrathree & \verb|\tibtnextrathree| \\
+ \verb|\tibtnplus| & \tibtnplus & \tibtnextraplus & \verb|\tibtnextraplus| \\
+ \verb|\tibtnon| & \tibtnon & \tibtnextraon & \verb|\tibtnextraon| \\
+ \verb|\tibtnzero| & \tibtnzero & \tibtnextrazero & \verb|\tibtnextrazero| \\
+ \verb|\tibtndot| & \tibtndot & \tibtnextradot & \verb|\tibtnextradot| \\
+ \verb|\tibtnneg| & \tibtnneg & \tibtnextraneg & \verb|\tibtnextraneg| \\
+ \verb|\tibtnenter| & \tibtnenter & \tibtnextraenter & \verb|\tibtnextraenter| \\
+ \end{longtable}
\end{center}
+\section{Custom buttons} \label{sec:buttonscustom}
+
+Buttons are defined using the \verb|\tibtn| and \verb|\tibtnextra|. It's often
+convenient to define a \verb|\tibtn| command then use it inside
+\verb|\tibtnextra| (See example below). See section \ref{sec:colordef} for a
+list of defined colors.
+
+\verb|\tibtn[<text color>]{<button color>}{<text>}|
+
+\verb|\tibtnextra{<middle>}{<top left>}{<top right>}|
+
+\begin{SideBySideExample}[xrightmargin=5.5cm]
+\def\tibtnfoo{\tibtn[black]{tibtnblue}{FOO}}
+\tibtnfoo{}
+
+\def\tibtnextrafoo{\tibtnextra{\tibtnfoo}{BAR}{BAZ}}
+\tibtnextrafoo
+\end{SideBySideExample}
+
\end{document}
diff --git a/macros/latex/contrib/tiscreen/tex/tiscreen.sty b/macros/latex/contrib/tiscreen/tex/tiscreen.sty
index d4219f1eb7..adf8f48f71 100644
--- a/macros/latex/contrib/tiscreen/tex/tiscreen.sty
+++ b/macros/latex/contrib/tiscreen/tex/tiscreen.sty
@@ -4,7 +4,7 @@
% version the license is at: http://www.latex-project.org/lppl.txt
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tiscreen}[2021/09/18 Ti calculator screen]
+\ProvidesPackage{tiscreen}[2021/12/31 Ti calculator screen]
\def\tiscreenX{16}
\def\tiscreenY{8}
@@ -13,8 +13,18 @@
\RequirePackage{tikz}
\RequirePackage{tcolorbox}
\RequirePackage{array}
+\RequirePackage{xcolor}
+\RequirePackage{tipa}
+\RequirePackage{textgreek}
+\RequirePackage{wasysym}
+
+%
+% SCREEN CHARACTERS
+%
-% Define screen characters
+% TODO add reverse alpha and reverse arrow
+
+% Define characters
\DefineLCDchar{barx}{11111000001000101010001000101010001}
\DefineLCDchar{bary}{11111000001000110001011110000101110}
\DefineLCDchar{ar}{00011000011100100001000010000000000}
@@ -27,7 +37,32 @@
\DefineLCDchar{sub4}{00000000000100001010011100001000010}
\DefineLCDchar{sub5}{00000000000111001000011000001001100}
\DefineLCDchar{sub6}{00000000000011001000011100101001110}
+\DefineLCDchar{sub10}{00000000001011110101101011010110111}
\DefineLCDchar{cx}{00101000100010100000000000000000000}
+\DefineLCDchar{dash}{00000000000011100000000000000000000}
+\DefineLCDchar{sto}{00000001000001011111000100010000000}
+\DefineLCDchar{theta}{00110010011000111111100011001001100}
+\DefineLCDchar{pi}{00000000001111101010010100101010011}
+\DefineLCDchar{tick}{00000000000000000100011100010000000}
+\DefineLCDchar{degree}{01100100101001001100000000000000000}
+\DefineLCDchar{square}{00000000000000001110010100111000000}
+\DefineLCDchar{alpha}{11111110111010110001101011010111111}
+\DefineLCDchar{2nd}{11111110111000101010110111101111011}
+\DefineLCDchar{geq}{10000011000001101100100000000011111}
+\DefineLCDchar{leq}{00001001101100000110000010000011111}
+\DefineLCDchar{neq}{00010000101111100100111110100001000}
+\DefineLCDchar{c3}{01100000100010000010011000000000000}
+\DefineLCDchar{transpose}{01110001000010000100001000000000000}
+\DefineLCDchar{upr}{10110110001000010000000000000000000}
+\DefineLCDchar{chi}{10000010010101000100010101001000001}
+\DefineLCDchar{fwedge}{00000010000110001110011000100000000}
+\DefineLCDchar{bwedge}{00000000010001100111000110000100000}
+\DefineLCDchar{upwedge}{000000000000100010101000111111}
+\DefineLCDchar{Fcdf}{11111100011010011100101001000010000}
+\DefineLCDchar{Sigma}{11111010000010000010001000100011111}
+\DefineLCDchar{eta}{00000000001011001001010011001010010}
+\DefineLCDchar{bbN}{10001110011110111111101111001110001}
+\DefineLCDchar{bb/}{00000000010001100110011001100010000}
% Redefine screen characters
\DefineLCDchar{sqrt}{00111001000010000100101000110000100}
\DefineLCDchar{!}{00100001000010000100000000010000100}
@@ -39,8 +74,15 @@
\DefineLCDchar{]}{01100001000010000100001000010001100}
\DefineLCDchar{lb}{00011001000010001000001000010000011}
\DefineLCDchar{rb}{11000001000010000010001000010011000}
+\DefineLCDchar{ell}{00000000000000000000000000000010101}
+\DefineLCDchar{'}{00100001000000000000000000000000000}
+\DefineLCDchar{L}{00000000000010000100001000010000111}
+\DefineLCDchar{_}{00000000000000000000000000000011111}
+
+%
+% COLORS
+%
-\RequirePackage{xcolor}
% Screen colors
\definecolor{tiscreenfg}{HTML}{000000}
\definecolor{tiscreenbg}{HTML}{5d9345}
@@ -56,11 +98,14 @@
\DeclareOption*{\PackageWarning{tiscreen}{Unknown ‘\CurrentOption’}}
\ProcessOptions\relax
-% Screen commands
+%
+% COMMANDS
+%
+
\newcommand{\tiscreen}{\LCD{\tiscreenY}{\tiscreenX}}
-% Button commands
\newcommand{\tibtn}[3][black]{\tikz{\bfseries\tiny\sffamily \node[fill=#2, draw, rounded corners, minimum height=2.5em, minimum width=4.5em, align=center] {\textcolor{#1}{#3}};}}
+
\newcommand{\tibtnextra}[3]{%
\tcbox[colback=tibtncaseblack,size=small]{%
\begin{tabular}{l@{}r}%
@@ -71,9 +116,93 @@
}%
}
-% Button definitions
-\def\tibtnsecond{\tibtn{tibtnyellow}{2nd}}
-\def\tibtnalpha{\tibtn{tibtngreen}{ALPHA}}
+%
+% BUTTON DEFINITIONS
+%
-\def\tibtnmatrix{\tibtn[white]{tibtngray}{MATRX}}
-\def\tibtnmatrixextra{\tibtnextra{\tibtnmatrix}{ANGLE}{B}}
+% Special
+\def\tibtnalpha{\tibtn{tibtngreen}{ALPHA}} % ALPHA
+\def\tibtnsecond{\tibtn{tibtnyellow}{2nd}} % EXTRA
+\def\tibtnenter{\tibtn[black]{tibtnblue}{ENTER}} % ENTER
+\def\tibtnextraalpha{\tibtnextra{\tibtnalpha}{A-LOCK}{}} % ALPHA
+\def\tibtnextrasecond{\tibtnextra{\tibtnsecond}{}{}} % EXTRA
+\def\tibtnextraenter{\tibtnextra{\tibtnenter}{ENTRY\hspace{0.25ex}}{SOLVE}} % ENTER
+% Operators
+\def\tibtndiv {\tibtn[black]{tibtnblue}{$\div$}} % division
+\def\tibtntimes{\tibtn[black]{tibtnblue}{\scriptsize\texttimes}} % times
+\def\tibtnminus{\tibtn[black]{tibtnblue}{\footnotesize --}} % minus
+\def\tibtnplus {\tibtn[black]{tibtnblue}{\footnotesize +}} % plus
+\def\tibtnextradiv {\tibtnextra{\tibtndiv} {e} {M}} % division
+\def\tibtnextratimes{\tibtnextra{\tibtntimes}{[} {R}} % times
+\def\tibtnextraminus{\tibtnextra{\tibtnminus}{]} {W}} % minus
+\def\tibtnextraplus {\tibtnextra{\tibtnplus} {MEM}{!!}} % plus
+% Numbers
+\def\tibtnzero{\tibtn[black]{tibtnwhite} {\scriptsize 0}} % 0
+\def\tibtnone {\tibtn[black]{tibtnwhite}{\scriptsize 1}} % 1
+\def\tibtntwo {\tibtn[black]{tibtnwhite}{\scriptsize 2}} % 2
+\def\tibtnthree{\tibtn[black]{tibtnwhite}{\scriptsize 3}} % 3
+\def\tibtnfour {\tibtn[black]{tibtnwhite}{\scriptsize 4}} % 4
+\def\tibtnfive {\tibtn[black]{tibtnwhite}{\scriptsize 5}} % 5
+\def\tibtnsix {\tibtn[black]{tibtnwhite}{\scriptsize 6}} % 6
+\def\tibtnseven{\tibtn[black]{tibtnwhite}{\scriptsize 7}} % 7
+\def\tibtneight{\tibtn[black]{tibtnwhite}{\scriptsize 8}} % 8
+\def\tibtnnine {\tibtn[black]{tibtnwhite}{\scriptsize 9}} % 9
+\def\tibtnextrazero {\tibtnextra{\tibtnzero} {CATALOG}{\large \textvisiblespace}} % 0
+\def\tibtnextraone {\tibtnextra{\tibtnone} {L1} {Y}} % 1
+\def\tibtnextratwo {\tibtnextra{\tibtntwo} {L2} {Z}} % 2
+\def\tibtnextrathree{\tibtnextra{\tibtnthree}{L3} {\texttheta}} % 3
+\def\tibtnextrafour {\tibtnextra{\tibtnfour} {L4} {T}} % 4
+\def\tibtnextrafive {\tibtnextra{\tibtnfive} {L5} {U}} % 5
+\def\tibtnextrasix {\tibtnextra{\tibtnsix} {L6} {V}} % 6
+\def\tibtnextraseven{\tibtnextra{\tibtnseven}{u} {O}} % 7
+\def\tibtnextraeight{\tibtnextra{\tibtneight}{v} {P}} % 8
+\def\tibtnextranine {\tibtnextra{\tibtnnine} {w} {Q}} % 9
+% Misc
+\def\tibtnmode {\tibtn[white]{tibtngray}{MODE}} % MODE
+\def\tibtndel {\tibtn[white]{tibtngray}{DEL}} % DEL
+\def\tibtnxton {\tibtn[white]{tibtngray}{X,T,\texttheta,n}} % X,T,ϴ,n
+\def\tibtnstat {\tibtn[white]{tibtngray}{STAT}} % STAT
+\def\tibtnmath {\tibtn[white]{tibtngray}{MATH}} % MATH
+\def\tibtnmatrix {\tibtn[white]{tibtngray}{MATRX}} % MATRIX
+\def\tibtnprgm {\tibtn[white]{tibtngray}{PRGM}} % PRGM
+\def\tibtnvars {\tibtn[white]{tibtngray}{VARS}} % VARS
+\def\tibtnclear {\tibtn[white]{tibtngray}{CLEAR}} % CLEAR
+\def\tibtnxnone {\tibtn[white]{tibtngray}{x\textsuperscript{-1}}} % x^-1
+\def\tibtnsin {\tibtn[white]{tibtngray}{SIN}} % SIN
+\def\tibtncos {\tibtn[white]{tibtngray}{COS}} % COS
+\def\tibtntan {\tibtn[white]{tibtngray}{TAN}} % TAN
+\def\tibtnpower {\tibtn[white]{tibtngray}{$\wedge$}} % ^
+\def\tibtnxtwo {\tibtn[white]{tibtngray}{x\textsuperscript{2}}} % x^2
+\def\tibtncomma {\tibtn[white]{tibtngray}{\large ,}} % comma
+\def\tibtnleftparen {\tibtn[white]{tibtngray}{(}} % left parenthesis
+\def\tibtnrightparen{\tibtn[white]{tibtngray}{)}} % right parenthesis
+\def\tibtnlog {\tibtn[white]{tibtngray}{LOG}} % log
+\def\tibtnln {\tibtn[white]{tibtngray}{LN}} % LN
+\def\tibtnsto {\tibtn[white]{tibtngray}{STO\RIGHTarrow}} % STO
+\def\tibtnon {\tibtn[white]{tibtngray}{ON}} % ON
+\def\tibtndot {\tibtn[black]{tibtnwhite}{\huge $\cdot$}} % dot
+\def\tibtnneg {\tibtn[black]{tibtnwhite}{(---)}} % negative
+\def\tibtnextramode {\tibtnextra{\tibtnmode} {QUIT}{}} % MODE
+\def\tibtnextradel {\tibtnextra{\tibtndel} {INS}{}} % DEL
+\def\tibtnextraxton {\tibtnextra{\tibtnxton} {LINK}{}} % X,T,ϴ,n
+\def\tibtnextrastat {\tibtnextra{\tibtnstat} {LIST}{}} % STAT
+\def\tibtnextramath {\tibtnextra{\tibtnmath} {TEST}{A}} % MATH
+\def\tibtnextramatrix {\tibtnextra{\tibtnmatrix} {ANGLE}{B}} % MATRIX
+\def\tibtnextraprgm {\tibtnextra{\tibtnprgm} {DRAW}{C}} % PRGM
+\def\tibtnextravars {\tibtnextra{\tibtnvars} {DISTR}{}} % VARS
+\def\tibtnextraclear {\tibtnextra{\tibtnclear} {}{}} % CLEAR
+\def\tibtnextraxnone {\tibtnextra{\tibtnxnone} {FINANCE\hspace{1ex}}{D}} % x^-1
+\def\tibtnextrasin {\tibtnextra{\tibtnsin} {SIN\textsuperscript{-1}}{E}} % SIN
+\def\tibtnextracos {\tibtnextra{\tibtncos} {COS\textsuperscript{-1}}{F}} % COS
+\def\tibtnextratan {\tibtnextra{\tibtntan} {TAN\textsuperscript{-1}}{G}} % TAN
+\def\tibtnextrapower {\tibtnextra{\tibtnpower} {\scriptsize\mdseries\textpi}{H}} % ^
+\def\tibtnextraxtwo {\tibtnextra{\tibtnxtwo} {$\sqrt{\phantom{x}}$}{I}} % x^2
+\def\tibtnextracomma {\tibtnextra{\tibtncomma} {EE}{J}} % comma
+\def\tibtnextraleftparen {\tibtnextra{\tibtnleftparen} {\{}{K}} % left parenthesis
+\def\tibtnextrarightparen{\tibtnextra{\tibtnrightparen}{\}}{L}} % right parenthesis
+\def\tibtnextralog {\tibtnextra{\tibtnlog} {10$^x$}{N}} % LOG
+\def\tibtnextraln {\tibtnextra{\tibtnln} {e$^x$}{S}} % LN
+\def\tibtnextrasto {\tibtnextra{\tibtnsto} {RCL}{X}} % STO
+\def\tibtnextraon {\tibtnextra{\tibtnon} {OFF}{}} % ON
+\def\tibtnextradot {\tibtnextra{\tibtndot} {\scriptsize $i$}{:}} % dot
+\def\tibtnextraneg {\tibtnextra{\tibtnneg} {ANS}{?}} % negative