I am new to latex, I am trying to include output of TI84 calculator in my document.
It is supposed to look like this:
Following is what I am able to make.
My output's height and width arrange itself, I want fixed height/width, with custom padding and text wrapping around inside the box. Any help will be greatly appreciated.
My code is
{\scriptsize
\setmainfont{Texas Instruments TI-84 series}
\tabulinesep=0.05 in
\begin{tabu} to 1 in {|c |}
\hline
normalcdf(-1.5,2)\\
\hfill .9104427093
\\\hline
\end{tabu}
}
Best Answer
The
\vbox to...
primitive construction is the answer to your question. You can try the following code:Edit: My second version of the macro
\ticalc
implements the auto-wrapping. The width of the box has to be set by setbox. See the line with\setbox0
where 16 characters is supposed. The text with more length than this dimension is wrapped. The wrapping is possible between each pair of characters.The optional
\result
followed by text can be included in the parameter of the\ticalc
macro. Such text is printed at next line aligned to right.