Aspose.TeX 22.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Aspose.TeX --version 22.3.0
NuGet\Install-Package Aspose.TeX -Version 22.3.0
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="Aspose.TeX" Version="22.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.TeX --version 22.3.0
#r "nuget: Aspose.TeX, 22.3.0"
#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 Aspose.TeX as a Cake Addin
#addin nuget:?package=Aspose.TeX&version=22.3.0

// Install Aspose.TeX as a Cake Tool
#tool nuget:?package=Aspose.TeX&version=22.3.0

TeX Formula Rendering, tikz Package .NET API

Version 22.3.0 Nuget

banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

Aspose.TeX for .NET is a library that provides a TeX engine extension called ObjectTeX. It can be used to typeset documents described by TeX files. “Object” means that intermediary typesetting result is a specific object model which then can be uniformly converted into a number of end formats.

TypeSetting File Processing Features

  • Typesetting of TeX files
  • Create custom TeX formats
  • Provide input data in various ways
  • Fetch output data in various ways

What's new in v22.3.0

Support for TeX to SVG conversion

Support has been added to convert TeX to SVG format.

TeX Math Formula Rendering to SVG

Support has been implemented for the TeX-based Math formulas rendering to SVG format. The following is a simple C# example to render the Math Formula to SVG using API:

/ Create rendering options.
MathRendererOptions options = new SvgMathRendererOptions();
// Specify the preamble.
options.Preamble = @"\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{color}";
// Specify the scaling factor 300%.
options.Scale = 3000;
// Specify the foreground color.
options.TextColor = System.Drawing.Color.Black;
// Specify the background color.
options.BackgroundColor = System.Drawing.Color.White;
// Specify the output stream for the log file.
options.LogStream = new MemoryStream();
// Specify whether to show the terminal output on the console or not.
options.ShowTerminal = true;

// The variable in which the dimensions of the resulting image will be written.
System.Drawing.SizeF size = new System.Drawing.SizeF();
// Create the output stream for the formula image.
using (Stream stream = System.IO.File.Open(
    Path.Combine(RunExamples.OutputDirectory, "math-formula.svg"), FileMode.Create))
{
    new SvgMathRenderer().Render(@"\begin{equation*}
e^x = x^{\color{red}0} + x^{\color{red}1} + \frac{x^{\color{red}2}}{2} + \frac{x^{\color{red}3}}{6} + \cdots = \sum_{n\geq 0} \frac{x^{\color{red}n}}{n!}
\end{equation*}", stream, options, out size);
}

// Show other results.
System.Console.Out.WriteLine(options.ErrorReport);
System.Console.Out.WriteLine();
System.Console.Out.WriteLine("Size: " + size);

Support for PS/EPS & XPS/OXPS Graphics

Added the support for graphics inclusion in the PS (PostScript), EPS (Encapsulated PostScript), XPS (XML Paper Specification), and OXPS (Open XML Paper Specification) formats.

Support for tikz Package

This release of API offers the support for tikz Package which can be used to create complex graphic elements in LaTeX.

For a complete list of features, enhancements, and bug fixes in this release please visit, Aspose.TeX for .NET 22.3 Release Notes.

Supported Input Formats

TeX

Save TeX As

XPS, PDF, JPEG, PNG, TIFF and BMP

Supported Embedded Fonts for Typesetting

cmbsy10, cmbx10, cmbx5, cmbx6, cmbx7, cmbx8, cmbx9, cmcsc10, cmdunh10, cmex10, cmmi10, cmmi5, cmmi6, cmm7, cmmi8, cmmi9, cmmib10, cmr10, cmr5, cmr6, cmr7, cmr8, cmr9, cmsl10, cmsl8, cmsl9, cmsltt10, cmss10, cmssbx10, cmssi10, cmssq8, cmssqi8, cmsy10, cmsy5, cmsy6, cmsy7, cmsy8, cmsy9, cmti10, cmti7, cmti8, cmti9, cmtt10, cmtt8, cmtt9, cmu10

Supported Platforms

You can use Aspose.TeX for .NET to build any type of a 32-bit or 64-bit .NET application including ASP.NET, WCF, WinForms, WPF, etc.

Use C# to Obtain Typeset Document from XPS Device

You can execute the below code snippet to see how Aspose.TeX API performs against your own samples or check the GitHub Repository for other common usage scenarios.

TeXOptions options = TeXOptions.ConsoleAppOptions(TeXConfig.ObjectTeX());
options.JobName = "sample2-1";
options.InputWorkingDirectory = new InputFileSystemDirectory(_inputDirectory);
options.OutputWorkingDirectory = new OutputFileSystemDirectory(_outputDirectory);
options.TerminalOut = new OutputFileTerminal(options.OutputWorkingDirectory);

using(Stream stream = File.Open(Path.Combine(_outputDirectory, options.JobName + ".xps"), FileMode.Create))
TeX.Typeset("hello-world", new XpsDevice(stream), options);

options.TerminalOut.Writer.WriteLine();

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net20 is compatible.  net35 is compatible.  net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Aspose.TeX:

Package Downloads
Aspose.Total

Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.3.0 1,185 3/12/2024
24.2.0 1,949 2/16/2024
23.12.0 5,043 12/15/2023
23.10.0 6,115 10/24/2023
23.8.0 12,933 8/14/2023
23.6.1 9,054 6/30/2023
23.5.0 7,975 4/30/2023
23.4.0 2,316 4/7/2023
23.2.0 13,519 2/21/2023
22.12.0 18,909 12/17/2022
22.11.0 8,207 11/15/2022
22.10.0 11,414 10/19/2022
22.8.0 23,568 8/25/2022
22.6.0 16,971 6/16/2022
22.4.0 15,734 4/6/2022
22.3.0 14,941 3/23/2022
22.2.0 7,699 2/8/2022
21.11.0 16,790 11/11/2021
21.9.0 18,522 9/20/2021
21.8.0 12,601 8/26/2021
21.3.0 35,629 3/30/2021