TexVar (short tVar) is a basic LaTeX math calculations tool written in Lua. For integration into LaTeX, it has to be used together with LuaLaTeX. Compared to software like Mathcad TexVar is a lot more flexible. You can fill custom designed tables with results, do calculations within text documents and print beautiful LaTeX equations. The current version also supports 2D-plotting with gnuplot.
Currently the following operations are supported:
- Basic math operators
- Lua math library
- Matrix and Vector calculations
- 2D Plots with Gnuplot
Upcoming features/task:
- Calculations with units
- Launch project on CTAN
For a better understanding on what TexVar does you should have a look at this presentation on SlideShare.
The download contains the LuaLaTeX-Package and the TexVar-Library,
- Lua 5.1-5.3
- LuaLaTeX (contained in MiKTex, TeX Live and MacTeX)
- GnuPlot 5.0 (only for plotting)
- Latex Modules
- luacode
- amsmath
- siunitx
- graphicsx (plotting)
- color (debuging)
TexVar is a free software distributed under the terms of the MIT license.
The best way to start with TexVar is by reading the manual.
There is no installation needed. The folders tVar and lib only need to be in the same folder your executable file is. For plotting you need to change the path to your gnuplot install with the command:
% Linux and Mac
tPlot.gnuplot_library = "gnuplot"
% Windows
tPlot.gnuplot_library = [==["WINDOWSPATH"]==]
In case you need further information or help on using TexVar, just send me an email.
When working together with others on one LaTeX document, using TexVar can cause problems, when only one person has a working version. To temporarily disable TexVar execution you can easily redefine the tVar environment. The following code requires the listings package.
% Instead of
% \usepackage{texvar}
% write
\lstnewenvironment{tVar}{}{}
The advantage of converting the tVar environment into a listings environment is, that the code is still visible but not executed.