Debian Codegraph @

texmf-dist/doc/latex/tiscreen/tiscreen-doc.tex

raw
1 \documentclass[a4paper,12pt]{article}
2
3 \usepackage[iso,english]{isodate}
4 \usepackage[margin=1in]{geometry}
5 \usepackage[english]{babel}
6 \usepackage{hyperref}
7 \usepackage{parskip}
8
9 \usepackage{amsmath}
10 \usepackage[color]{tiscreen}
11 \usepackage{multicol}
12 \usepackage{array}
13 \usepackage{longtable}
14 \usepackage{fancyvrb-ex}
15 \fvset{
16 frame=single,
17 label=\fbox{Source},
18 framesep=4mm,
19 numbers=left,
20 fontsize=\footnotesize,
21 }
22
23 \newcommand{\LCDsymb}[1]{\large \textLCD{1}|{#1}~|}
24
25 \title{TI calculator screen (and buttons)\\{\small TI-82 STATS, TI-84}}
26 \author{Mustafa Ibrahim, Caleb Bibb}
27 \date{2021-12-31}
28
29 \begin{document}
30
31 \maketitle
32
33 \begin{center}
34 \begin{tabular}{cc}
35 \tiscreen
36 |10^6*(4^7+1){rarrow}X |
37 | 1.6385E10|
38 |{sqrt}(X)*X/10! |
39 | 577971782.1|
40 |cos{ar}(cos(Ans)) |
41 | 62.11246|
42 |{fcur} |
43 | |
44 &
45 \tibtnextramatrix
46 \end{tabular}
47
48 \dotfill
49
50 \begin{tabular}{ccccc}
51 \tibtnsecond & \tibtnmode & \tibtndel & & \\
52 \tibtnalpha & \tibtnxton & \tibtnstat & & \\
53 \tibtnmath & \tibtnmatrix & \tibtnprgm & \tibtnvars & \tibtnclear \\
54 \tibtnxnone & \tibtnsin & \tibtncos & \tibtntan & \tibtnpower \\
55 \tibtnxtwo & \tibtncomma & \tibtnleftparen & \tibtnrightparen & \tibtndiv \\
56 \tibtnlog & \tibtnseven & \tibtneight & \tibtnnine & \tibtntimes \\
57 \tibtnln & \tibtnfour & \tibtnfive & \tibtnsix & \tibtnminus \\
58 \tibtnsto & \tibtnone & \tibtntwo & \tibtnthree & \tibtnplus \\
59 \tibtnon & \tibtnzero & \tibtndot & \tibtnneg & \tibtnenter \\
60 \end{tabular}
61 \end{center}
62
63 \newpage\tableofcontents\newpage
64
65 \section{Quickstart}
66
67 \begin{SideBySideExample}[xrightmargin=5.5cm]
68 %\usepackage[color]{tiscreen}
69
70 \tiscreen
71 |4+1 |
72 | 5|
73 |Ans{sq} |
74 | 25|
75 |{fcur} |
76 | |
77 | |
78 | |
79
80 Lorem \tibtnmath{} ipsum
81
82 \tibtnextramath
83 \end{SideBySideExample}
84
85 \section{Package option(s)}
86
87 \subsection{Color} \label{sec:color}
88
89 Using the \texttt{color} option will change the colors used by the \verb|\LCD|
90 command for printing the screen using \verb|\tiscreen|. The colors are defined
91 as \texttt{tiscreenfg} (foreground, i.e. font color) and \texttt{tiscreenbg}
92 (background) and redefined like this:
93
94 \begin{Verbatim}
95 % Add this to your preamble
96 \definecolor{tiscreenbg}{HTML}{5d9345}
97 \definecolor{tiscreenfg}{HTML}{FFFFFF}
98 \end{Verbatim}
99
100 \subsection{Defined colors} \label{sec:colordef}
101
102 \begin{tabular}{lcl}
103 Name & Color & Usage \\ \hline
104 tiscreenfg & {\ttfamily \color{tiscreenfg}{000000}} & LCD commands \\
105 tiscreenbg & {\ttfamily \color{tiscreenbg}{5d9345}} & LCD commands \\
106 tibtngray & {\ttfamily \color{tibtngray}{494F54}} & Buttons \\
107 tibtnyellow & {\ttfamily \colorbox{tibtncaseblack}{\color{tibtnyellow}{F1E78B}}} & Buttons \\
108 tibtngreen & {\ttfamily \colorbox{tibtncaseblack}{\color{tibtngreen}{D5DE93}}} & Buttons \\
109 tibtnwhite & {\ttfamily \colorbox{tibtncaseblack}{\color{tibtnwhite}{E2E2E2}}} & Buttons \\
110 tibtnblue & {\ttfamily \colorbox{tibtncaseblack}{\color{tibtnblue}{CDE2E9}}} & Buttons \\
111 tibtncaseblack & {\ttfamily \color{tibtncaseblack}{232A32}} & Buttons \\
112 \end{tabular}
113
114 \clearpage\part{Screen}
115
116 \section{LCD size}
117
118 The default LCD size is $8 \times 16$ (the size of the TI-82 STATS). It can be
119 changed by redefining the variables used to determine the size of the display
120 or by using the original \verb|\LCD| command.
121
122 \begin{Verbatim}
123 % First method (For entire document)
124 \def\tiscreenX{16}
125 \def\tiscreenY{8}
126
127 % Second method (Only once)
128 \LCD{5}{11}
129 |ANOTHER |
130 |EXAMPLE |
131 |WITH A |
132 |DIFFERENT|
133 |SIZE |
134 \end{Verbatim}
135
136 \section{(Re)defined characters} \LCDcolors{black}{white}
137
138 \begin{center}
139 \begin{longtable}{|l|l|l|}
140 \multicolumn{3}{c}{\textbf{Added characters}} \\
141 \hline
142 Name & Symbol & \verb|\LCD| \textnormal{Code} \\
143 \hline
144 E & \LCDsymb{sciE} & \verb|{sciE}| \\
145 $\sigma$ & \LCDsymb{sigma} & \verb|{sigma}| \\
146 $\Sigma$ & \LCDsymb{Sigma} & \verb|{Sigma}| \\
147 $x^2$ & \LCDsymb{sq} & \verb|{sq}| \\
148 $x^{-1}$ & \LCDsymb{ar} & \verb|{ar}| \\
149 $x^3$ & \LCDsymb{c3} & \verb|{c3}| \\
150 $y^x$ & \LCDsymb{cx} & \verb|{cx}| \\
151 $x_1$ & \LCDsymb{sub1} & \verb|{sub1}| \\
152 $x_2$ & \LCDsymb{sub2} & \verb|{sub2}| \\
153 $x_3$ & \LCDsymb{sub3} & \verb|{sub3}| \\
154 $x_4$ & \LCDsymb{sub4} & \verb|{sub4}| \\
155 $x_5$ & \LCDsymb{sub5} & \verb|{sub5}| \\
156 $x_6$ & \LCDsymb{sub6} & \verb|{sub6}| \\
157 $x_{10}$ & \LCDsymb{sub10} & \verb|{sub10}| \\
158 $\bar x$ & \LCDsymb{barx} & \verb|{barx}| \\
159 $\bar y$ & \LCDsymb{bary} & \verb|{bary}| \\
160 $-x$ & \LCDsymb{dash} & \verb|{dash}| \\
161 $\rightarrow$ & \LCDsymb{sto} & \verb|{sto}| \\
162 $\theta$ & \LCDsymb{theta} & \verb|{theta}| \\
163 $\pi$ & \LCDsymb{pi} & \verb|{pi}| \\
164 $\eta$ & \LCDsymb{eta} & \verb|{eta}| \\
165 $+$ & \LCDsymb{tick} & \verb|{tick}| \\
166 $^\circ$ & \LCDsymb{degree} & \verb|{degree}| \\
167 & \LCDsymb{square} & \verb|{square}| \\
168 & \LCDsymb{alpha} & \verb|{alpha}| \\
169 $\uparrow$ & \LCDsymb{2nd} & \verb|{2nd}| \\
170 $\geq$ & \LCDsymb{geq} & \verb|{geq}| \\
171 $\leq$ & \LCDsymb{leq} & \verb|{leq}| \\
172 $\neq$ & \LCDsymb{neq} & \verb|{neq}| \\
173 $x^3$ & \LCDsymb{c3} & \verb|{c3}| \\
174 $A^T$ & \LCDsymb{transpose} & \verb|{transpose}| \\
175 $A^r$ & \LCDsymb{upr} & \verb|{upr}| \\
176 $chi$ & \LCDsymb{chi} & \verb|{chi}| \\
177 $\triangleright$ & \LCDsymb{fwedge} & \verb|{fwedge}| \\
178 $\triangleleft$ & \LCDsymb{bwedge} & \verb|{bwedge}| \\
179 $\mathbf{N}$ & \LCDsymb{bbN} & \verb|{bbN}| \\
180 $\mathbf{/}$ & \LCDsymb{bb/} & \verb|{bb/}| \\
181 \hline
182 \multicolumn{3}{c}{\textbf{Redefined characters}} \\
183 \hline
184 ! & \LCDsymb{!} & \{!\} \\
185 \{ & \LCDsymb{lb} & \{lb\} \\
186 \} & \LCDsymb{rb} & \{rb\} \\
187 $[$ & \LCDsymb{[} & \{[\} \\
188 $]$ & \LCDsymb{]} & \{]\} \\
189 $\sqrt{x}$ & \LCDsymb{sqrt} & \{sqrt\} \\
190 e & \LCDsymb{e} & \{e\} \\
191 i & \LCDsymb{i} & \{i\} \\
192 v & \LCDsymb{v} & \{v\} \\
193 w & \LCDsymb{w} & \{w\} \\
194 Ellipses & \LCDsymb{ell} & \{ell\} \\
195 Apostrophe & \LCDsymb{'} & \{'\} \\
196 List & \LCDsymb{L} & \{L\} \\
197 Underscore & \LCDsymb{_} & \{\_\} \\
198 \hline
199 \end{longtable}
200 \end{center}
201
202 \clearpage\part{Buttons}
203
204 \section{Usage}
205
206 The \verb|\tibtn<...>| commands only prints the button and are useful when
207 displaying buttons inline. The \verb|\tibtnextra<...>| commands shows the extra
208 functionality of the button (accessed by the \tibtnsecond{} and \tibtnalpha{}
209 buttons). See secion \ref{sec:button} for defined buttons and section
210 \ref{sec:buttonscustom} for how to define custom buttons.
211
212 \section{Defined buttons} \label{sec:button}
213
214 \begin{center}
215 \begin{longtable}{lrlr}
216 \verb|\tibtnsecond| & \tibtnsecond & \tibtnextrasecond & \verb|\tibtnextrasecond| \\
217 \verb|\tibtnmode| & \tibtnmode & \tibtnextramode & \verb|\tibtnextramode| \\
218 \verb|\tibtndel| & \tibtndel & \tibtnextradel & \verb|\tibtnextradel| \\
219 \verb|\tibtnalpha| & \tibtnalpha & \tibtnextraalpha & \verb|\tibtnextraalpha| \\
220 \verb|\tibtnxton| & \tibtnxton & \tibtnextraxton & \verb|\tibtnextraxton| \\
221 \verb|\tibtnstat| & \tibtnstat & \tibtnextrastat & \verb|\tibtnextrastat| \\
222 \verb|\tibtnmath| & \tibtnmath & \tibtnextramath & \verb|\tibtnextramath| \\
223 \verb|\tibtnmatrix| & \tibtnmatrix & \tibtnextramatrix & \verb|\tibtnextramatrix| \\
224 \verb|\tibtnprgm| & \tibtnprgm & \tibtnextraprgm & \verb|\tibtnextraprgm| \\
225 \verb|\tibtnvars| & \tibtnvars & \tibtnextravars & \verb|\tibtnextravars| \\
226 \verb|\tibtnclear| & \tibtnclear & \tibtnextraclear & \verb|\tibtnextraclear| \\
227 \verb|\tibtnxnone| & \tibtnxnone & \tibtnextraxnone & \verb|\tibtnextraxnone| \\
228 \verb|\tibtnsin| & \tibtnsin & \tibtnextrasin & \verb|\tibtnextrasin| \\
229 \verb|\tibtncos| & \tibtncos & \tibtnextracos & \verb|\tibtnextracos| \\
230 \verb|\tibtntan| & \tibtntan & \tibtnextratan & \verb|\tibtnextratan| \\
231 \verb|\tibtnpower| & \tibtnpower & \tibtnextrapower & \verb|\tibtnextrapower| \\
232 \verb|\tibtnxtwo| & \tibtnxtwo & \tibtnextraxtwo & \verb|\tibtnextraxtwo| \\
233 \verb|\tibtncomma| & \tibtncomma & \tibtnextracomma & \verb|\tibtnextracomma| \\
234 \verb|\tibtnleftparen| & \tibtnleftparen & \tibtnextraleftparen & \verb|\tibtnextraleftparen| \\
235 \verb|\tibtnrightparen| & \tibtnrightparen & \tibtnextrarightparen & \verb|\tibtnextrarightparen| \\
236 \verb|\tibtndiv| & \tibtndiv & \tibtnextradiv & \verb|\tibtnextradiv| \\
237 \verb|\tibtnlog| & \tibtnlog & \tibtnextralog & \verb|\tibtnextralog| \\
238 \verb|\tibtnseven| & \tibtnseven & \tibtnextraseven & \verb|\tibtnextraseven| \\
239 \verb|\tibtneight| & \tibtneight & \tibtnextraeight & \verb|\tibtnextraeight| \\
240 \verb|\tibtnnine| & \tibtnnine & \tibtnextranine & \verb|\tibtnextranine| \\
241 \verb|\tibtntimes| & \tibtntimes & \tibtnextratimes & \verb|\tibtnextratimes| \\
242 \verb|\tibtnln| & \tibtnln & \tibtnextraln & \verb|\tibtnextraln| \\
243 \verb|\tibtnfour| & \tibtnfour & \tibtnextrafour & \verb|\tibtnextrafour| \\
244 \verb|\tibtnfive| & \tibtnfive & \tibtnextrafive & \verb|\tibtnextrafive| \\
245 \verb|\tibtnsix| & \tibtnsix & \tibtnextrasix & \verb|\tibtnextrasix| \\
246 \verb|\tibtnminus| & \tibtnminus & \tibtnextraminus & \verb|\tibtnextraminus| \\
247 \verb|\tibtnsto| & \tibtnsto & \tibtnextrasto & \verb|\tibtnextrasto| \\
248 \verb|\tibtnone| & \tibtnone & \tibtnextraone & \verb|\tibtnextraone| \\
249 \verb|\tibtntwo| & \tibtntwo & \tibtnextratwo & \verb|\tibtnextratwo| \\
250 \verb|\tibtnthree| & \tibtnthree & \tibtnextrathree & \verb|\tibtnextrathree| \\
251 \verb|\tibtnplus| & \tibtnplus & \tibtnextraplus & \verb|\tibtnextraplus| \\
252 \verb|\tibtnon| & \tibtnon & \tibtnextraon & \verb|\tibtnextraon| \\
253 \verb|\tibtnzero| & \tibtnzero & \tibtnextrazero & \verb|\tibtnextrazero| \\
254 \verb|\tibtndot| & \tibtndot & \tibtnextradot & \verb|\tibtnextradot| \\
255 \verb|\tibtnneg| & \tibtnneg & \tibtnextraneg & \verb|\tibtnextraneg| \\
256 \verb|\tibtnenter| & \tibtnenter & \tibtnextraenter & \verb|\tibtnextraenter| \\
257 \end{longtable}
258 \end{center}
259
260 \section{Custom buttons} \label{sec:buttonscustom}
261
262 Buttons are defined using the \verb|\tibtn| and \verb|\tibtnextra|. It's often
263 convenient to define a \verb|\tibtn| command then use it inside
264 \verb|\tibtnextra| (See example below). See section \ref{sec:colordef} for a
265 list of defined colors.
266
267 \verb|\tibtn[<text color>]{<button color>}{<text>}|
268
269 \verb|\tibtnextra{<middle>}{<top left>}{<top right>}|
270
271 \begin{SideBySideExample}[xrightmargin=5.5cm]
272 \def\tibtnfoo{\tibtn[black]{tibtnblue}{FOO}}
273 \tibtnfoo{}
274
275 \def\tibtnextrafoo{\tibtnextra{\tibtnfoo}{BAR}{BAZ}}
276 \tibtnextrafoo
277 \end{SideBySideExample}
278
279 \end{document}