This answer https://tex.stackexchange.com/a/37550/4011 suggested that it should be possible to install a font which enables one to typeset the keys of a TI-calculator.
Now my question is, how to install and use it exactly on a texlive linux system with pdflatex or xelatex.
For example I want this: http://education.ti.com/educationportal/sites/US/productDetail/us_key_font_83p_84p.html
The first problem is that there are only exe
and hqx
files for download.
Edit
I followed ArTourters suggestion, extracted the fonts to /home/myuser/Downloads/TiKeys/
And tried to compile the following with xelatex
\documentclass{article}
\usepackage{fontspec}
\fontspec [ Path = /home/myuser/Downloads/TiKeys/]
{TI83____.TTF}
\begin{document}
Test.
\end{document}
Then I get:
! Font \zf@basefont=TI83____.TTF at 10.0pt not loadable: Metric (TFM) file or i nstalled font not found. \zf@fontspec ...ntname \zf@suffix " at \f@size pt \unless \ifzf@icu \zf@set@... l.12 {TI83____.TTF}
And lot's of other messages.
It produces a pdf which uses standard font. I don't want to use this font for the whole document, I just want to typeset the TI-Calculator keys. So how to do so?
Best Answer
The windows version is a self-extracting zip file. You can get the files by:
You can then use your favourite way of using fonts in latex to include the True Type or the Postscript Type 1 font.
This answer may help you for
PDFLaTeX
Edit 1:
I have to say I am getting puzzled.
using the following code with LuaLaTex should work but somehow, despite the fact that the font is seen and loaded by lualatex, the tex itself does not appear in the resulting pdf nor is the font embedded.
Not all characters are defined in this font but
A
is and should display something like [TAN⁻¹].looking at the logs, you get the following when the font is loaded:
I have tried adding
[Script={Latn,Common}]
to the\newfontfamily
call and although the warning disappear, it doesn't change anything to the output.I'll keep looking but if @khaled-hosny feels like shading some light...
Edit 2:
I tried the same code with XeLaTeX, which gave a bit more info. The code compiles, with the font embedded but the characters appear as rectangles, with the following note in the log:
Now I guess it is a question of finding the characters and their encodings which have data. I thought that A was one of them but LaTeX does seem to think so.
Edit 3: This one is the last!
Thanks to this question and this question I think I have solved it. The problem comes from the fact the the font does not have UTF-8 characters so you need some other ways to get to them.
this can be done with
XeLaTeX
using the\XeTeXglyph
command, or with a bit more hackery with lualatex by define a command of the form\def\fontchar#1{\directlua{fonts.otf.char("#1")}}
The following code will work on both
XeLaTeX
andLuaLaTeX
and defines the command\TI
which takes for argument the name of the glyph (if you use the glyph number, although\XeTeXglyph<number>
will work as expected, the luafonts.otf.char("<number>")
will revert back to the TeX\char
which in this case doesn't work.Which gives:
if you use LuaLaTex, a file will be created in
~/.texlive2011/texmf-var/luatex-cache/generic/fonts/otf/temp-ti83-.lua
, or something similar, which will detail the font and its characters. if you looks in it(it is plain text) you can find the names of each characters. Ido not know how to get this information otherwise.