LaTeX.Net 1.0.1

dotnet add package LaTeX.Net --version 1.0.1
NuGet\Install-Package LaTeX.Net -Version 1.0.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="LaTeX.Net" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LaTeX.Net --version 1.0.1
#r "nuget: LaTeX.Net, 1.0.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 LaTeX.Net as a Cake Addin
#addin nuget:?package=LaTeX.Net&version=1.0.1

// Install LaTeX.Net as a Cake Tool
#tool nuget:?package=LaTeX.Net&version=1.0.1

LaTeX.Net

This is a simple and lightweight library to compile snippets of LaTeX code into a document object so you can do your own converting to your format.

Usage


// each of these namespaces are increasing levels of abstraction
using LaTeX.Net.Lexing;
using LaTeX.Net.Parsing;
using LaTeX.Net.Parsing.Document;

// the original LaTeX code
string latex = """
    Good morning \textbf{Santa Maria, the \textit{heart of Rio Grande}}, today is \textit{25C}!
    """;

// this will convert the LaTeX code into a list of tokens
Scanner scanner = new(latex);
List<Token> tokens = scanner.ScanTokens();

// here we parse these tokens and create a abstract syntax tree, you can use
// this, but it will be a little harder
Parser parser = new(tokens);
SyntaxTree tree = parser.Parse();

// the last abstraction, with the document object you can do whatever you want
LatexDocument document = parser.GetDocument(tree);
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.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
1.0.1 133 1/18/2024
1.0.0 81 1/18/2024