From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/casiofont/README.md | 32 ++++ macros/latex/contrib/casiofont/casiofont.pdf | Bin 0 -> 56514 bytes macros/latex/contrib/casiofont/casiofont.sty | 125 ++++++++++++++ macros/latex/contrib/casiofont/casiofont.tex | 235 +++++++++++++++++++++++++++ 4 files changed, 392 insertions(+) create mode 100644 macros/latex/contrib/casiofont/README.md create mode 100644 macros/latex/contrib/casiofont/casiofont.pdf create mode 100644 macros/latex/contrib/casiofont/casiofont.sty create mode 100644 macros/latex/contrib/casiofont/casiofont.tex (limited to 'macros/latex/contrib/casiofont') diff --git a/macros/latex/contrib/casiofont/README.md b/macros/latex/contrib/casiofont/README.md new file mode 100644 index 0000000000..b0acafc30f --- /dev/null +++ b/macros/latex/contrib/casiofont/README.md @@ -0,0 +1,32 @@ +# casiofont + +This package provides support for the [Casio ClassWiz](https://edu.casio.com/forteachers/er/fontsets/index.php) font, available from the Casio web site. The font itself is *not* included in the distribution. +The package requires compilation with XeLaTeX or LuaLaTeX. + +# Installation instructions + + - The package is included in MikTeX and can be installed with the package manager. + - The package is not included in TeX Live due to licensing restrictions (because the font itself is not redistributable). You must therefore install the package manually into your local texmf directory. + + +casiofont.sty + +Copyright 2018 by Alan Munn amunn@msu.edu + +This package may be distributed and/or modified under the +conditions of the LaTeX Project Public License, either version 1.3 +of this license or any later version. +The latest version of this license is in + http://www.latex-project.org/lppl.txt +and version 1.3 or later is part of all distributions of LaTeX +version 2005/12/01 or later. + +This package has the LPPL maintenance status 'maintained'. + +The Current Maintainer of this package is Alan Munn + +This package consists of the files casiofont.sty and +documentation files casiofont.tex, casiofont.pdf and README.md + +Version 1.1 2018/10/22 + diff --git a/macros/latex/contrib/casiofont/casiofont.pdf b/macros/latex/contrib/casiofont/casiofont.pdf new file mode 100644 index 0000000000..67ab462f6f Binary files /dev/null and b/macros/latex/contrib/casiofont/casiofont.pdf differ diff --git a/macros/latex/contrib/casiofont/casiofont.sty b/macros/latex/contrib/casiofont/casiofont.sty new file mode 100644 index 0000000000..2c661d4fe1 --- /dev/null +++ b/macros/latex/contrib/casiofont/casiofont.sty @@ -0,0 +1,125 @@ +% +% casiofont.sty +% +% Copyright 2018 by Alan Munn amunn@msu.edu +% +% This package may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This package has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this package is Alan Munn. +% +% This package consists of the files casiofont.sty and +% documentation files casiofont.tex, casiofont.pdf and README +% +% Version 1.0 2018/05/31 +% Version 1.1 2018/10/22 +% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{casiofont}[2018/10/22 v1.1 Casio Calculator Font] +\RequirePackage{iftex} +\ifPDFTeX + \PackageError{casiofont}{This package requires LuaTeX or XeTeX}{Please use one of these engines to compile your document.} +\else +\RequirePackage{fontspec} +\newfontface\casio[Scale=MatchUppercase]{CASIOClassWiz} +\DeclareTextFontCommand{\textcasio}{\casio} +\newcommand*{\Shift}{{\normalfont\casio q}} +\newcommand*{\Alpha}{{\normalfont\casio Q}} +\newcommand*{\UpArrow}{{\normalfont\casio E}} +\newcommand*{\LeftArrow}{{\normalfont\casio !}} +\newcommand*{\DownArrow}{{\normalfont\casio R}} +\newcommand*{\RightArrow}{{\normalfont\casio\$}} +\newcommand*{\Setup}{{\normalfont\casio L}} +\newcommand*{\Menu}{{\normalfont\casio w}} +\newcommand*{\CJKMenu}{{\normalfont\casio t}}% changed 10/22/18 +\let\UnknownA\CJKMenu% for backwards compatibilty +\newcommand*{\CJKOn}{{\normalfont\casio |}}% changed 10/22/18 +\let\UnknownB\CJKOn% for backwards compatibilty +\newcommand*{\Optn}{{\normalfont\casio T}} +\newcommand*{\LineFrac}{{\normalfont\casio `{}}} +\newcommand*{\Calc}{{\normalfont\casio r}} +\newcommand*{\casioY}{{\normalfont\casio @}} +\newcommand*{\dydx}{{\normalfont\casio Y}} +\newcommand*{\Abs}{{\normalfont\casio e}} +\newcommand*{\casioSum}{{\normalfont\casio I}} +\newcommand*{\casioProd}{{\normalfont\casio \}}} +\newcommand*{\casioIntegral}{{\normalfont\casio y}} +\newcommand*{\Simp}{{\normalfont\casio\~{}}} +\newcommand*{\casioX}{{\normalfont\casio [}} +\newcommand*{\casioOdot}{{\normalfont\casio ;}} +\newcommand*{\casioObar}{{\normalfont\casio :}} +\newcommand*{\casioDblParen}{{\normalfont\casio ]}} +\newcommand*{\FracMult}{{\normalfont\casio A}} +\newcommand*{\Frac}{{\normalfont\casio a}} +\newcommand*{\CubeRoot}{{\normalfont\casio S}} +\newcommand*{\SquareRoot}{{\normalfont\casio s}} +\newcommand*{\CubeParen}{{\normalfont\casio '}} +\newcommand*{\Cube}{{\normalfont\casio D}} +\newcommand*{\nRoot}{{\normalfont\casio F}} +\newcommand*{\nExp}{{\normalfont\casio\^{}}} +\newcommand*{\nTen}{{\normalfont\casio G}} +\newcommand*{\eExp}{{\normalfont\casio H}} +\newcommand*{\nLog}{{\normalfont\casio i}} +\newcommand*{\casioLog}{{\normalfont\casio g}} +\newcommand*{\casioLn}{{\normalfont\casio h}} +\newcommand*{\logParen}{{\normalfont\casio c}} +\newcommand*{\divR}{{\normalfont\casio -}} +\newcommand*{\Factorial}{{\normalfont\casio\%}} +\newcommand*{\InverseSin}{{\normalfont\casio <}} +\newcommand*{\minusParen}{{\normalfont\casio z}} +\newcommand*{\DegRadGrad}{{\normalfont\casio x}} +\newcommand*{\Inverse}{{\normalfont\casio u}} +\newcommand*{\InverseParen}{{\normalfont\casio /}} +\newcommand*{\Sen}{{\normalfont\casio\_{}}} +\newcommand*{\casioSin}{{\normalfont\casio j}} +\newcommand*{\InverseCos}{{\normalfont\casio >}} +\newcommand*{\InverseTan}{{\normalfont\casio ?}} +\newcommand*{\casioCos}{{\normalfont\casio k}} +\newcommand*{\casioTan}{{\normalfont\casio l}} +\newcommand*{\Sto}{{\normalfont\casio J}} +\newcommand*{\BackArrow}{{\normalfont\casio X}} +\newcommand*{\iParen}{{\normalfont\casio U}} +\newcommand*{\angleParen}{{\normalfont\casio Z}} +\newcommand*{\casioAbs}{{\normalfont\casio f}} +\newcommand*{\Eng}{{\normalfont\casio b}} +\newcommand*{\casioLParen}{{\normalfont\casio (}} +\newcommand*{\casioRParen}{{\normalfont\casio )}} +\newcommand*{\CommaParen}{{\normalfont\casio ,}} +\newcommand*{\MixedFrac}{{\normalfont\casio N}} +\newcommand*{\switchMixedFrac}{{\normalfont\casio n}} +\newcommand*{\Mminus}{{\normalfont\casio V}} +\newcommand*{\Mplus}{{\normalfont\casio m}} +\newcommand*{\Del}{{\normalfont\casio o}} +\newcommand*{\Times}{{\normalfont\casio O}} +\newcommand*{\Plus}{{\normalfont\casio +}} +\newcommand*{\casioAC}{{\normalfont\casio C}} +\newcommand*{\Divide}{{\normalfont\casio P}} +\newcommand*{\Minus}{{\normalfont\casio p}} +\newcommand*{\casioComma}{{\normalfont\casio\#}} +\newcommand*{\casioDot}{{\normalfont\casio .}} +\newcommand*{\casioPi}{{\normalfont\casio\{}} +\newcommand*{\xTenx}{{\normalfont\casio K}} +\newcommand*{\Percent}{{\normalfont\casio\&}} +\newcommand*{\Ans}{{\normalfont\casio M}} +\newcommand*{\Exe}{{\normalfont\casio B}} +\newcommand*{\Sim}{{\normalfont\casio "}} +\newcommand*{\Equal}{{\normalfont\casio =}} +\newcommand*{\Zero}{{\normalfont\casio 0}} +\newcommand*{\One}{{\normalfont\casio 1}} +\newcommand*{\Two}{{\normalfont\casio 2}} +\newcommand*{\Three}{{\normalfont\casio 3}} +\newcommand*{\Four}{{\normalfont\casio 4}} +\newcommand*{\Five}{{\normalfont\casio 5}} +\newcommand*{\Six}{{\normalfont\casio 6}} +\newcommand*{\Seven}{{\normalfont\casio 7}} +\newcommand*{\Eight}{{\normalfont\casio 8}} +\newcommand*{\Nine}{{\normalfont\casio 9}} +\fi +\endinput diff --git a/macros/latex/contrib/casiofont/casiofont.tex b/macros/latex/contrib/casiofont/casiofont.tex new file mode 100644 index 0000000000..7d5aef7089 --- /dev/null +++ b/macros/latex/contrib/casiofont/casiofont.tex @@ -0,0 +1,235 @@ +\documentclass[12pt]{article} +\usepackage[margin=1in]{geometry} +\usepackage[sf,small]{titlesec} +\usepackage{titling} +\setlength{\droptitle}{-.5in} +\usepackage{caption} +\usepackage{casiofont} +\newcommand\csdisplay[1]{{\ttfamily\textbackslash#1}} +\usepackage{array} +\usepackage{collcell} +\usepackage{multicol,longtable} +\newcolumntype{L}{>{\collectcell\csdisplay}l<{\endcollectcell}} +\newcolumntype{C}{>{\casio}l} +\newenvironment{fonttable}{\begin{center}}{\end{center}} +\setlength{\extrarowheight}{3pt} +\usepackage[colorlinks]{hyperref} +\title{The \texttt{casiofont} package} +\author{Alan Munn\\\url{amunn@msu.edu}} +\date{Version 1.1\\October 22, 2018} +\begin{document} +\maketitle +This package provides support for the \href{https://edu.casio.com/forteachers/er/fontsets/index.php}{Casio ClassWiz} font, available from the Casio web site. The font itself is \emph{not} included in the distribution. This package arose out of a question on Stackexchange: \href{https://tex.stackexchange.com/q/434335/2693}{Easiest way to create TeX macro/code to access symbols from particular font?} +The package requires compilation with XeLaTeX or LuaLaTeX. +\section*{Installation} +\begin{description} +\item[MikTeX]{The package is included in MikTeX and should be installed normally using the MikTeX package manager if it is not already installed.} +\item[TeX Live]{Because TeX Live has much stricter licensing requirements, the package is not included in TeX Live because it provides support for a non-free (in the Free Software sense) font. You must therefore install the package yourself in your local \texttt{texmf} directory. To do this make two directories (folders): \texttt{texmf/tex/latex/casiofont} and \texttt{texmf/doc/casiofont}. Put \texttt{casiofont.sty} into the \texttt{texmf/tex/latex/casiofont} directory, and \texttt{casiofont.pdf} into the \texttt{texmf/doc/casiofont} directory.} +\end{description} +\section*{Support} +The package is hosted at \href{https://github.com/amunn/casiofont}{GitHub}. I welcome suggestions for better names, since I don't use the calculator myself. Thanks to Chen Stats Yu for giving names to the unknown characters in version 1.0. + +\clearpage +\section*{Character commands (roughly sorted)} +\begin{fonttable} +\captionof{table}{Calculator Functions} +\begin{tabular}{LCLCLC} +casioAC & \casioAC & +Alpha & \Alpha & +Ans & \Ans \\ +Calc & \Calc & +casioAC & \casioAC & +Eng & \Eng \\ +LineFrac & \LineFrac & +Menu & \Menu & +MixedFrac & \MixedFrac \\ +Mminus & \Mminus & +Mplus & \Mplus & +Optn & \Optn \\ +Setup & \Setup & +Simp & \Simp & +Sto & \Sto +\end{tabular} +\end{fonttable} +\begin{fonttable} + +\captionof{table}{Movement and arrows} +\begin{tabular}{LCLCLC} +BackArrow & \BackArrow & +DownArrow & \DownArrow & +LeftArrow & \LeftArrow \\ +RightArrow & \RightArrow & +UpArrow & \UpArrow & +Shift & \Shift \\ +Del & \Del +\end{tabular} +\end{fonttable} + +\begin{fonttable} +\captionof{table}{Mathematical Functions} +\begin{tabular}{LCLCLC} +Abs & \Abs & +casioCos & \casioCos \\ +casioLn & \casioLn & +casioLog & \casioLog & +casioSin & \casioSin \\ +casioTan & \casioTan & +InverseCos & \InverseCos & +InverseSin & \InverseSin \\ +InverseTan & \InverseTan & +logParen & \logParen & +Sen & \Sen +\end{tabular} +\end{fonttable} + +\begin{fonttable} +\captionof{table}{Calculus} +\begin{tabular}{LCLCLC} +casioIntegral & \casioIntegral & +casioProd & \casioProd & +casioSum & \casioSum \\ +dydx & \dydx +\end{tabular} +\end{fonttable} + +\begin{fonttable} +\captionof{table}{Roots and Exponents} +\begin{tabular}{LCLCLC} +Cube & \Cube & +CubeParen & \CubeParen & +CubeRoot & \CubeRoot \\ +eExp & \eExp & +nExp & \nExp & +nLog & \nLog \\ +nRoot & \nRoot & +nTen & \nTen & +SquareRoot & \SquareRoot +\end{tabular} +\end{fonttable} + +\begin{fonttable} +\captionof{table}{Misc Math Functions} +\begin{tabular}{LCLCLC} +Factorial & \Factorial & +Inverse & \Inverse & +InverseParen & \InverseParen \\ +xTenx & \xTenx & +divR & \divR +\end{tabular} +\end{fonttable} + +\begin{fonttable} +\captionof{table}{Basic Math Operators} +\begin{tabular}{LCLCLC} +Divide & \Divide & +Equal & \Equal & +Minus & \Minus \\ +Percent & \Percent & +Plus & \Plus & +Sim & \Sim \\ +Times & \Times +\end{tabular} +\end{fonttable} + +\begin{fonttable} + +\captionof{table}{Variables and constants} +\begin{tabular}{LCLCLCLC} +casioPi & \casioPi & +casioX & \casioX & +casioY & \casioY & +iParen & \iParen +\end{tabular} +\end{fonttable} +\begin{fonttable} + +\captionof{table}{Other Symbols} +\begin{tabular}{LCLCLC} +InverseParen & \InverseParen & +angleParen & \angleParen & +casioComma & \casioComma \\ +casioDblParen & \casioDblParen & +casioDot & \casioDot & +casioLParen & \casioLParen \\ +casioObar & \casioObar & +casioOdot & \casioOdot & +casioRParen & \casioRParen \\ +CommaParen & \CommaParen & +DegRadGrad & \DegRadGrad +\end{tabular} +\end{fonttable} + +\begin{fonttable} + +\captionof{table}{Fractions} +\begin{tabular}{LCLC} +Frac & \Frac & +FracMult & \FracMult +\end{tabular} +\end{fonttable} + + + +\begin{fonttable} + +\captionof{table}{Digits} +\begin{tabular}{LCLCLC} +Zero & \Zero & +One & \One & +Two & \Two \\ +Three & \Three & +Four & \Four & +Five & \Five \\ +Six & \Six & +Seven & \Seven & +Eight & \Eight \\ +Nine & \Nine +\end{tabular} +\end{fonttable} + +\begin{fonttable} + +\captionof{table}{CJK Keys} +\begin{tabular}{LCLC} +CJKMenu & \CJKMenu & +CJKOn \CJKOn +\end{tabular} +\end{fonttable} + +\clearpage +\begin{fonttable} +\captionof{table}{Alphabetical List} +\begin{tabular}{LCLCLC} +Abs & \Abs & Cube & \Cube & minusParen & \minusParen \\ +Alpha & \Alpha & CubeParen & \CubeParen & MixedFrac & \MixedFrac \\ +angleParen & \angleParen & CubeRoot & \CubeRoot & Mminus & \Mminus \\ +Ans & \Ans & DegRadGrad & \DegRadGrad & Mplus & \Mplus \\ +BackArrow & \BackArrow & Del & \Del & nExp & \nExp \\ +Calc & \Calc & Divide & \Divide & Nine & \Nine \\ +casioAbs & \casioAbs & divR & \divR & nLog & \nLog \\ +casioAC & \casioAC & DownArrow & \DownArrow & nRoot & \nRoot \\ +casioComma & \casioComma & dydx & \dydx & nTen & \nTen \\ +casioCos & \casioCos & eExp & \eExp & One & \One \\ +casioDblParen & \casioDblParen & Eight & \Eight & Optn & \Optn \\ +casioDot & \casioDot & Eng & \Eng & Percent & \Percent \\ +casioIntegral & \casioIntegral & Equal & \Equal & Plus & \Plus \\ +casioLn & \casioLn & Factorial & \Factorial & RightArrow & \RightArrow \\ +casioLog & \casioLog & Five & \Five & Sen & \Sen \\ +casioLParen & \casioLParen & Four & \Four & Setup & \Setup \\ +casioObar & \casioObar & Frac & \Frac & Seven & \Seven \\ +casioOdot & \casioOdot & FracMult & \FracMult & Shift & \Shift \\ +casioPi & \casioPi & Inverse & \Inverse & Sim & \Sim \\ +casioProd & \casioProd & InverseCos & \InverseCos & Simp & \Simp \\ +casioRParen & \casioRParen & InverseParen & \InverseParen & Six & \Six \\ +casioSin & \casioSin & InverseSin & \InverseSin & SquareRoot & \SquareRoot \\ +casioSum & \casioSum & InverseTan & \InverseTan & Sto & \Sto \\ +casioTan & \casioTan & iParen & \iParen & switchMixedFrac & \switchMixedFrac \\ +casioX & \casioX & LeftArrow & \LeftArrow & Three & \Three \\ +casioY & \casioY & LineFrac & \LineFrac & Times & \Times \\ +CJKMenu & \CJKMenu & logParen & \logParen & Two & \Two \\ +CJKOn & \CJKOn & Menu & \Menu & UpArrow & \UpArrow \\ +CommaParen & \CommaParen & Minus & \Minus & xTenx & \xTenx \\ +\multicolumn{4}{c}{} & Zero & \Zero \\ +\end{tabular} +\end{fonttable} +\end{document} \ No newline at end of file -- cgit v1.2.3