Aspose.TeX
22.3.0
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
<PackageReference Include="Aspose.TeX" Version="22.3.0" />
paket add Aspose.TeX --version 22.3.0
#r "nuget: Aspose.TeX, 22.3.0"
// 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
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 | Versions 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. |
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.10.0 | 1,210 | 10/17/2024 |
24.9.0 | 2,603 | 9/5/2024 |
24.8.0 | 2,779 | 8/8/2024 |
24.7.0 | 2,497 | 7/1/2024 |
24.5.0 | 5,854 | 5/23/2024 |
24.3.0 | 6,551 | 3/12/2024 |
24.2.0 | 4,851 | 2/16/2024 |
23.12.0 | 11,249 | 12/15/2023 |
23.10.0 | 13,156 | 10/24/2023 |
23.8.0 | 18,074 | 8/14/2023 |
23.6.1 | 14,176 | 6/30/2023 |
23.5.0 | 11,542 | 4/30/2023 |
23.4.0 | 2,428 | 4/7/2023 |
23.2.0 | 16,790 | 2/21/2023 |
22.12.0 | 27,275 | 12/17/2022 |
22.11.0 | 9,795 | 11/15/2022 |
22.10.0 | 13,478 | 10/19/2022 |
22.8.0 | 28,880 | 8/25/2022 |
22.6.0 | 19,169 | 6/16/2022 |
22.4.0 | 20,199 | 4/6/2022 |
22.3.0 | 17,657 | 3/23/2022 |
22.2.0 | 8,928 | 2/8/2022 |
21.11.0 | 19,330 | 11/11/2021 |
21.9.0 | 21,055 | 9/20/2021 |
21.8.0 | 14,898 | 8/26/2021 |
21.3.0 | 40,419 | 3/30/2021 |