Latex2Compute 3.2.1

dotnet add package Latex2Compute --version 3.2.1                
NuGet\Install-Package Latex2Compute -Version 3.2.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Latex2Compute" Version="3.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Latex2Compute --version 3.2.1                
#r "nuget: Latex2Compute, 3.2.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Latex2Compute as a Cake Addin
#addin nuget:?package=Latex2Compute&version=3.2.1

// Install Latex2Compute as a Cake Tool
#tool nuget:?package=Latex2Compute&version=3.2.1                

Latex2Compute

Translate LaTeX into calculator form

What is this?

Have you ever written LaTeX and after completing a long mathematical formula you need to move it to your calculator? Just go ahead and rewrite it with small syntax changes.

Actually, you don't have to do that anymore! Latex2Compute takes LaTex code as input and translates it to the format understood by the calculator.

Latex2Compute

A bit of history

In finnish upper secondary schools a lot of studying happens electronically. Even though some like to do their maths by hand, I liked to write the answers as you would write in Matriculation exams, electronically. I got somewhat annoyed after needing to write both latex and calculator input in every time, even though the differences weren't very big.

Matikkaeditorinkaantaja is the product created by that annoyance. Just translate the latex into correct form by a press of a button.

Creating this project has been a very interesting for me. I actually had zero experience in coding when I firstly started to explore this problem with python back in 2021. After some time I fell in love with programming and problem solving. Currently in 2025 I am studying computer science in Tampere University so this problem literally changed my life. Some of the code is farely old, so when you look at it just remember back then I was a noob. 😃

More about the technical aspects

Code

Code is written in C#. At the beginning this project was written in .NET framework 4.8 if I remember correctly. After a while I upgraded to .NET 5 and quicly to .NET 6. Today the project is targetting mainly .NET 9 but should still compile pretty good for .NET 6.

Targetted Platforms

The project is based on latex used by Finnish Matriculation Exam board Abitti Latex -editor. Targetted calculator syntax is Texas Instruments TI-Nspire CX CAS. Currently TI-Nspire is the only main target platform, but in the future I might add support for Matlab.

Nuget package

Getting started

Using the library

  1. Open your own C# project
  2. Add line below inside a <ItemGroup> in your .csproj file
<PackageReference Include="Latex2Compute" Version="3.2.1" />

or use dotnet cli

dotnet add package Latex2Compute

Licence

This repository is licenced under GNU General Public License v3.0. See LICENCE -file.

Support

If you have any questions about anything related to this project, open a issue on Github or send me an email.

Henri Vainio matikkaeditorinkaantaja(at)gmail.com

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.2.1 37 1/11/2025