diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-17 20:45:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-17 20:45:42 +0000 |
commit | 898a57f59d62a088d5275d6d4b03a748ec593cab (patch) | |
tree | 9f50b7dab01d512ed8b9eb554ff8b617ec67fd98 /Master | |
parent | c7c49efc9306695afe0a839544dd11cafbfa57aa (diff) |
tiscreen (17may21)
git-svn-id: svn://tug.org/texlive/trunk@59247 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/tiscreen/README | 15 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tiscreen/tiscreen-doc.pdf | bin | 0 -> 122211 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/tiscreen/tiscreen-doc.tex | 127 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tiscreen/tiscreen.sty | 32 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rwxr-xr-x | Master/tlpkg/libexec/ctan2tds | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-mathscience.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/tiscreen.tlpsrc | 0 |
8 files changed, 177 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/tiscreen/README b/Master/texmf-dist/doc/latex/tiscreen/README new file mode 100644 index 00000000000..23693c804fe --- /dev/null +++ b/Master/texmf-dist/doc/latex/tiscreen/README @@ -0,0 +1,15 @@ +tiscreen (TI calculator screen) +v1.0 + +This package mimics the screen of older Texas instruments dot matrix display +calculators, specifically the TI-82 STATS. + +Changes: +- 2021/05/17 Initial version + +For more information, please see the documentation. + +Copyright 2021 +This work may be distributed and/or modified under the conditions of the LaTeX +Project Public License, either version 1.3c or higher. The latest version the +license is at: http://www.latex-project.org/lppl.txt diff --git a/Master/texmf-dist/doc/latex/tiscreen/tiscreen-doc.pdf b/Master/texmf-dist/doc/latex/tiscreen/tiscreen-doc.pdf Binary files differnew file mode 100644 index 00000000000..4c0f4f9f059 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tiscreen/tiscreen-doc.pdf diff --git a/Master/texmf-dist/doc/latex/tiscreen/tiscreen-doc.tex b/Master/texmf-dist/doc/latex/tiscreen/tiscreen-doc.tex new file mode 100644 index 00000000000..f959f56640f --- /dev/null +++ b/Master/texmf-dist/doc/latex/tiscreen/tiscreen-doc.tex @@ -0,0 +1,127 @@ +\documentclass[a4paper,12pt]{article} +\usepackage[margin=1in]{geometry} +\usepackage[english]{babel} +\usepackage{parskip} +\usepackage[color]{tiscreen} +\usepackage{multicol} + +\usepackage{listings} +\lstset{ + numbers=left, numberstyle=\tiny, + frame=single, + basicstyle=\footnotesize\ttfamily, + language=Tex, +} + +\newcommand{\LCDsymb}[1]{\large \textLCD{1}|{#1}~|} +\newcommand{\LCDcode}[1]{\texttt{\{#1\}}} + +\title{TI calculator display\\{\small(TI-82 STATS)}} +\author{Mustafa Ibrahim} +\date{2021/05/17} + +\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} | +| | +\end{center} +\tableofcontents +\newpage + +\section{Quickstart} +\tiscreen +|4+1 | +| 5| +|Ans{sq} | +| 25| +| | +| | +| | +| | + +\begin{lstlisting} +\documentclass{article} +\usepackage[color]{tiscreen} +% Remove 'color' to display in back and white + +\begin{document} + +\tiscreen +|4+1 | +| 5| +|Ans{sq} | +| 25| +| | +| | +| | +| | + +\end{document} +\end{lstlisting} + +\section{Package option(s)} +\subsection{Color} +Using the \texttt{color} option will change the colors used by the +\texttt{\textbackslash LCD} command. The colors are defined as +\texttt{tiscreenfg} (foreground. i.e. font color) and \texttt{tiscreenbg} +(background). These colors can be redefined like this: + +\begin{lstlisting} +% Add this to your preamble +\definecolor{tiscreenbg}{HTML}{5d9345} +\definecolor{tiscreenfg}{HTML}{FFFFFF} +\end{lstlisting} + +\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 {\textbackslash LCD} command. + +\begin{lstlisting} +% First method: +\def\tiscreenX{16} +\def\tiscreenY{8} + +% Second method: +\LCD{5}{11} +|ANOTHER | +|EXAMPLE | +|WITH A | +|DIFFERENT| +|SIZE | +\end{lstlisting} + +\section{Additional defined characters} \LCDcolors{black}{white} +\begin{tabular}{l|l|l} + Name & Symbol & Code \\ + \hline + E (scientific notation) & \LCDsymb{sciE} & \LCDcode{sciE} \\ + Sigma (lowercase) & \LCDsymb{sigma} & \LCDcode{sigma} \\ + $\bar x$ & \LCDsymb{barx} & \LCDcode{barx} \\ + $\bar y$ & \LCDsymb{bary} & \LCDcode{bary} \\ + $^\wedge 2$ (square root) & \LCDsymb{sq} & \LCDcode{sq} \\ + $^\wedge (-1)$ & \LCDsymb{ar} & \LCDcode{ar} \\ +\end{tabular} + +\subsection{Redefined characters} +Predefined characters that where redefined to match the TI-82 STATS. + +\begin{tabular}{l|l|l} + Name & Symbol & Code \\ + \hline + e & \LCDsymb{e} & \texttt{e} \\ + i & \LCDsymb{i} & \texttt{i} \\ + Square root & \LCDsymb{sqrt} & \LCDcode{sqrt} \\ + ! & \LCDsymb{!} & \LCDcode{!} \\ +\end{tabular} + +\end{document} diff --git a/Master/texmf-dist/tex/latex/tiscreen/tiscreen.sty b/Master/texmf-dist/tex/latex/tiscreen/tiscreen.sty new file mode 100644 index 00000000000..2d911d6b2ec --- /dev/null +++ b/Master/texmf-dist/tex/latex/tiscreen/tiscreen.sty @@ -0,0 +1,32 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{tiscreen}[2021/05/17 Ti calculator screen] + +% TODO +% Scaling option + +\def\tiscreenX{16} +\def\tiscreenY{8} + +\RequirePackage{lcd} +% Undefine +\DefineLCDchar{barx}{11111000001000101010001000101010001} +\DefineLCDchar{bary}{11111000001000110001011110000101110} +\DefineLCDchar{ar}{00011000011100100001000010000000000} +\DefineLCDchar{sciE}{00000000000111101000011100100001111} +\DefineLCDchar{sigma}{00000000000111110010100101001001100} +\DefineLCDchar{sq}{01100000100010001000011100000000000} +% Redefine +\DefineLCDchar{sqrt}{00111001000010000100101000110000100} +\DefineLCDchar{!}{00100001000010000100000000010000100} +\DefineLCDchar{e}{00000000000111010001111101000001100} +\DefineLCDchar{i}{01000000001100001000010000101000100} + +\RequirePackage{xcolor} +\definecolor{tiscreenfg}{HTML}{000000} +\definecolor{tiscreenbg}{HTML}{5d9345} + +\DeclareOption{color}{\LCDcolors{tiscreenfg}{tiscreenbg}} +\DeclareOption*{\PackageWarning{tiscreen}{Unknown ‘\CurrentOption’}} +\ProcessOptions\relax + +\newcommand{\tiscreen}{\LCD{\tiscreenY}{\tiscreenX}} diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 71acf1829ae..32da6042b85 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -770,7 +770,7 @@ my @TLP_working = qw( tikzscale tikzsymbols tikztosvg tile-graphic timbreicmc times timetable timing-diagrams tinos tipa tipa-de tipauni tipfr - titlecaps titlefoot titlepages titlepic titleref titlesec titling + tiscreen titlecaps titlefoot titlepages titlepic titleref titlesec titling tkz-base tkz-berge tkz-doc tkz-euclide tkz-fct tkz-graph tkz-tab tkz-orm tikz-page tlc-article tlc2 tlcockpit tlmgr-intro-zh-cn tlmgrbasics diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 06d69e14540..af68594d85f 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -1328,6 +1328,7 @@ chomp (my $ctan_root = `tlpkginfo --ctan-root`); 'timing', "die 'skipping, noinfo license, 1994 mf'", 'tipa', "&MAKEflatten", 'tipfr', "&MAKEflatten", + 'tiscreen', "&MAKEflatten", 'titlepage-uni-dortmund', "die 'skipping, needs graphics (too short names) in .'", 'titleps', "die 'skipping, use titlesec'", 'tkhyph', "die 'skipping, part of hyph-utf8'", diff --git a/Master/tlpkg/tlpsrc/collection-mathscience.tlpsrc b/Master/tlpkg/tlpsrc/collection-mathscience.tlpsrc index 5a3275c3db6..8012c87fe1d 100644 --- a/Master/tlpkg/tlpsrc/collection-mathscience.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-mathscience.tlpsrc @@ -210,6 +210,7 @@ depend tex-ewd depend textgreek depend textopo depend thmbox +depend tiscreen depend turnstile depend ulqda depend unitsdef diff --git a/Master/tlpkg/tlpsrc/tiscreen.tlpsrc b/Master/tlpkg/tlpsrc/tiscreen.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/tiscreen.tlpsrc |