summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tiscreen
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-07-23 03:00:51 +0000
committerNorbert Preining <norbert@preining.info>2021-07-23 03:00:51 +0000
commit9e46b83b2d49ad6f5d4285266a81c9af1dd3d74e (patch)
tree85d1a98abf9163d7a939bcaf88ee7fc93b568c99 /macros/latex/contrib/tiscreen
parentc43a0b49bea6195daa6423809f4339d538b5c8d9 (diff)
CTAN sync 202107230300
Diffstat (limited to 'macros/latex/contrib/tiscreen')
-rw-r--r--macros/latex/contrib/tiscreen/README1
-rw-r--r--macros/latex/contrib/tiscreen/doc/tiscreen-doc.pdfbin125338 -> 133505 bytes
-rw-r--r--macros/latex/contrib/tiscreen/doc/tiscreen-doc.tex84
-rw-r--r--macros/latex/contrib/tiscreen/tex/tiscreen.sty10
4 files changed, 53 insertions, 42 deletions
diff --git a/macros/latex/contrib/tiscreen/README b/macros/latex/contrib/tiscreen/README
index dd49e6c91b..b7e593c24e 100644
--- a/macros/latex/contrib/tiscreen/README
+++ b/macros/latex/contrib/tiscreen/README
@@ -4,6 +4,7 @@ This package mimics the screen of older Texas instruments dot matrix display
calculators, specifically the TI-82 STATS.
Changes:
+- 2021/07/22 Added bracket symbols
- 2021/06/10 Simplified example code in documentation
- 2021/06/07 Simplified characters table in documentation
- 2021/06/01 Added more characters
diff --git a/macros/latex/contrib/tiscreen/doc/tiscreen-doc.pdf b/macros/latex/contrib/tiscreen/doc/tiscreen-doc.pdf
index ff9ccf19b0..33e5b2d735 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 925cb809f8..dfe6216dc6 100644
--- a/macros/latex/contrib/tiscreen/doc/tiscreen-doc.tex
+++ b/macros/latex/contrib/tiscreen/doc/tiscreen-doc.tex
@@ -6,7 +6,6 @@
\usepackage[color]{tiscreen}
\usepackage{multicol}
\usepackage{hyperref}
-\usepackage{xspace}
\usepackage{array}
\usepackage{fancyvrb-ex}
\fvset{
@@ -18,8 +17,7 @@
}
\newcommand{\LCDsymb}[1]{\large \textLCD{1}|{#1}~|}
-\newcommand{\LCDcode}[1]{\texttt{\{#1\}}}
-\newcommand{\LCDcmd}{\textbackslash\texttt{LCD}\xspace}
+\newcommand{\LCDcmd}{\texttt{\textbackslash LCD}}
\title{TI calculator display\\{\small(TI-82 STATS)}}
\author{Mustafa Ibrahim}
@@ -27,6 +25,7 @@
\begin{document}
\maketitle
+
\begin{center}
\tiscreen
|10^6*(4^7+1){rarrow}X |
@@ -38,8 +37,8 @@
|{fcur} |
| |
\end{center}
-\tableofcontents
-\newpage
+
+\tableofcontents\newpage
\section{Quickstart}
@@ -57,10 +56,10 @@
| |
\end{SideBySideExample}
-
\section{Package option(s)}
\subsection{Color}
-Using the \texttt{color} option will change the colors used by the \LCDcmd
+
+Using the \texttt{color} option will change the colors used by the \LCDcmd{}
command. The colors are defined as \texttt{tiscreenfg} (foreground. i.e. font
color) and \texttt{tiscreenbg} (background). These colors can be redefined like
this:
@@ -72,10 +71,10 @@ this:
\end{Verbatim}
\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
-\LCDcmd command.
+
+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 \LCDcmd{} command.
\begin{Verbatim}
% First method (For entire document)
@@ -92,33 +91,40 @@ determine the size of the display or by using the original
\end{Verbatim}
\section{Additional defined characters} \LCDcolors{black}{white}
-\begin{tabular}{l|l|>{\ttfamily}l}
- \hline
- \multicolumn{3}{c}{\textbf{Added characters}} \\
- \hline \hline
- Name & Symbol &\normalfont{\LCDcmd Code} \\
- \hline
- E & \LCDsymb{sciE} & \{sciE\} \\
- $\sigma$ & \LCDsymb{sigma} & \{sigma\} \\
- $\bar x$ & \LCDsymb{barx} & \{barx\} \\
- $\bar y$ & \LCDsymb{bary} & \{bary\} \\
- $x^2$ & \LCDsymb{sq} & \{sq\} \\
- $x^{-1}$ & \LCDsymb{ar} & \{ar\} \\
- $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\} \\
- \hline
- \multicolumn{3}{c}{\textbf{Redefined characters}} \\
- \hline \hline
- ! & \LCDsymb{!} & \{!\} \\
- $\sqrt{x}$ & \LCDsymb{sqrt} & \{sqrt\} \\
- e & \LCDsymb{e} & e \\
- i & \LCDsymb{i} & i \\
- v & \LCDsymb{v} & v \\
- w & \LCDsymb{w} & w \\
-\end{tabular}
+\begin{center}
+ \begin{tabular}{|l|l|>{\ttfamily}l|}
+ \multicolumn{3}{c}{\textbf{Added characters}} \\
+ \hline
+ Name & Symbol &\textnormal{\LCDcmd{} 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\} \\
+ \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 \\
+ \hline
+ \end{tabular}
+\end{center}
\end{document}
diff --git a/macros/latex/contrib/tiscreen/tex/tiscreen.sty b/macros/latex/contrib/tiscreen/tex/tiscreen.sty
index 3cc0136c8c..36cbdedfd4 100644
--- a/macros/latex/contrib/tiscreen/tex/tiscreen.sty
+++ b/macros/latex/contrib/tiscreen/tex/tiscreen.sty
@@ -4,10 +4,9 @@
% license is at: http://www.latex-project.org/lppl.txt
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tiscreen}[2021/06/10 Ti calculator screen]
+\ProvidesPackage{tiscreen}[2021/07/22 Ti calculator screen]
-% TODO
-% Scaling option
+% TODO: Scaling option
\def\tiscreenX{16}
\def\tiscreenY{8}
@@ -26,6 +25,7 @@
\DefineLCDchar{sub4}{00000000000100001010011100001000010}
\DefineLCDchar{sub5}{00000000000111001000011000001001100}
\DefineLCDchar{sub6}{00000000000011001000011100101001110}
+\DefineLCDchar{cx}{00101000100010100000000000000000000}
% Redefine
\DefineLCDchar{sqrt}{00111001000010000100101000110000100}
\DefineLCDchar{!}{00100001000010000100000000010000100}
@@ -33,6 +33,10 @@
\DefineLCDchar{i}{01000000001100001000010000101000100}
\DefineLCDchar{w}{00000000001000110001101011010101010}
\DefineLCDchar{v}{00000000001000110001100010101000100}
+\DefineLCDchar{[}{00110001000010000100001000010000110}
+\DefineLCDchar{]}{01100001000010000100001000010001100}
+\DefineLCDchar{lb}{00011001000010001000001000010000011}
+\DefineLCDchar{rb}{11000001000010000010001000010011000}
\RequirePackage{xcolor}
\definecolor{tiscreenfg}{HTML}{000000}