Aspose.TeX
24.10.0
dotnet add package Aspose.TeX --version 24.10.0
NuGet\Install-Package Aspose.TeX -Version 24.10.0
<PackageReference Include="Aspose.TeX" Version="24.10.0" />
paket add Aspose.TeX --version 24.10.0
#r "nuget: Aspose.TeX, 24.10.0"
// Install Aspose.TeX as a Cake Addin #addin nuget:?package=Aspose.TeX&version=24.10.0 // Install Aspose.TeX as a Cake Tool #tool nuget:?package=Aspose.TeX&version=24.10.0
.NET API to TypeSet TeX Files
Aspose.TeX for .NET is a powerful library for typesetting TeX files with a focus on LaTeX conversion. It features ObjectTeX, which creates intermediary output for uniform conversion to formats such as PDF, XPS, PNG, JPEG, and more. The library provides robust support for LaTeX graphics inclusion, math rendering, file repair, and conversion through a command-line interface and .NET integration, making it ideal for developers looking to integrate TeX processing into their applications seamlessly. Aspose.TeX can be installed via NuGet.
LaTeX Graphics
Embedded Graphics
Include graphics directly in the LaTeX file using embedded Base64 encoding.
Graphics Inclusion
Use the
\includegraphics
command from the graphics package to include external graphics like PNG, EPS, and PDF.
Conversion and CLI Tools
LaTeX to PDF
Convert LaTeX documents to PDF format for high-quality output.
Command-Line Converter
Convert TeX/LaTeX files to multiple formats using the Aspose.TeX CLI tool, which supports formats like PDF, XPS, and SVG.
Output and Terminal
Disk File System Output
Write file output directly to the disk using
OutputFileSystemDirectory
.
ZIP Archive Output
Store TeX output files in a ZIP archive for easy distribution.
Terminal Output to Console
Write terminal output to the console using
OutputConsoleTerminal
.
Terminal Output to File
Write terminal output to a file in the output directory for later analysis.
LaTeX Math Formulas Rendering
Render Math Formulas to PNG
Convert LaTeX math formulas to PNG format.
Render Math Formulas to SVG
Convert LaTeX math formulas to SVG format.
Custom Preamble for Math Rendering
Specify a custom preamble to include packages like
amsmath
,amsfonts
, andamssymb
.
LaTeX File Repair
Check and Repair LaTeX Files
Use Aspose.TeX API to verify and repair LaTeX files that lack the required structure, such as missing
\documentclass
or document environment.
Add Missing LaTeX Preamble
Automatically add a default preamble (
\documentclass{article}
) to LaTeX files that do not include one.
Aspose.TeX CLI Tools Features
Effortless Conversion
Convert TeX and LaTeX documents into formats like PDF, XPS, PNG, JPEG, BMP, TIFF, and SVG with simple commands.
Global and Local Installation
Install globally or locally based on project needs for version management.
Command-Line Parameters
Specify input, output, formats, and licensing options.
C# Integration
Use directly in .NET projects for programmatic access to conversion.
Command-Line Simplicity
Simple commands for easy integration and document processing.
Supported File Formats
The following table indicates the file formats that Aspose.TeX for .NET can load and save.
Format | Description | Input | Output | Remarks |
---|---|---|---|---|
Plain text | TeX file | ✔️ | ✔️ | Only for output of tracing messages. |
XPS | Typeset XPS document | ✔️ | ||
Typeset PDF document | ✔️ | |||
PNG | PNG images of typeset document | ✔️ | ||
JPEG | JPEG images of typeset document | ✔️ | ||
TIFF | TIFF images of typeset document | ✔️ | ||
BMP | BMP images of typeset document | ✔️ |
System Requirements
Supported Operating Systems
Windows Server
2003, 2008, 2012 (x64, x86)
Windows
XP, Vista, 7, 8, 8.1, 10 (x64, x86)
Cloud
Windows Azure
Supported Development Environments
- Microsoft Visual Studio: 2010 to 2019
Supported .NET Framework Versions
.NET Framework
2.0 to 4.8
.NET Standard
2.0, 2.1
Install Package via Package Manager Console
Step 1. Open your .NET project in Visual Studio.
Step 2. Go to Tools > Library Package Manager > Package Manager Console.
Step 3. Run:
Install-Package Aspose.TeX
.
Update Package via Package Manager Console
Step 1. Open the Package Manager Console.
Step 2. Run:
Update-Package Aspose.TeX
Install via Package Manager GUI
Step 1. Open your .NET project in Visual Studio.
Step 2. Go to Tools > Library Package Manager > Manage NuGet Packages
You can also right-click on the project in Solution Explorer and select Manage NuGet Packages.
Step 3. Search for "Aspose.TeX" and click Install/Update.
Use C# to convert LaTeX to PDF format
// Create conversion options for Object LaTeX format upon Object TeX engine extension.
TeXOptions options = TeXOptions.ConsoleAppOptions(TeXConfig.ObjectLaTeX);
// Specify a file system working directory for the output.
options.OutputWorkingDirectory = new OutputFileSystemDirectory(RunExamples.OutputDirectory);
// Initialize the options for saving in PDF format.
options.SaveOptions = new PdfSaveOptions();
// Run LaTeX to PDF conversion.
new TeXJob(Path.Combine(RunExamples.InputDirectory, "hello-world.ltx"), new PdfDevice(), options).Run();
Tags
TeX Typesetting
| .NET API
| LaTeX to PDF
| TeX Conversion
| Command-Line Interface
| PDF Generation
| LaTeX Graphics
| Math Formulas Rendering
| TeX File Repair
| NuGet Package
| .NET Framework
| Visual Studio
| C# Integration
| TeX to XPS
| TeX to PNG
| TeX to JPEG
| Embedded Graphics
| ZIP Archive Output
| Windows Azure
| CLI Tools
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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 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. |
.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 was computed. |
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. 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. |
-
.NETFramework 4.0
- No dependencies.
-
.NETStandard 2.0
- System.Drawing.Common (>= 5.0.3)
- System.Security.Permissions (>= 5.0.0)
- System.Text.Encoding.CodePages (>= 5.0.0)
-
net6.0
- System.Drawing.Common (>= 6.0.0)
- System.Security.Permissions (>= 6.0.0)
- System.Text.Encoding.CodePages (>= 6.0.0)
-
net7.0
- System.Drawing.Common (>= 7.0.0)
- System.Security.Permissions (>= 7.0.0)
- System.Text.Encoding.CodePages (>= 7.0.0)
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 | 2,502 | 10/17/2024 |
24.9.0 | 2,800 | 9/5/2024 |
24.8.0 | 2,853 | 8/8/2024 |
24.7.0 | 2,521 | 7/1/2024 |
24.5.0 | 6,025 | 5/23/2024 |
24.3.0 | 6,772 | 3/12/2024 |
24.2.0 | 5,017 | 2/16/2024 |
23.12.0 | 11,735 | 12/15/2023 |
23.10.0 | 13,509 | 10/24/2023 |
23.8.0 | 18,375 | 8/14/2023 |
23.6.1 | 14,382 | 6/30/2023 |
23.5.0 | 11,723 | 4/30/2023 |
23.4.0 | 2,448 | 4/7/2023 |
23.2.0 | 17,005 | 2/21/2023 |
22.12.0 | 28,011 | 12/17/2022 |
22.11.0 | 9,884 | 11/15/2022 |
22.10.0 | 13,680 | 10/19/2022 |
22.8.0 | 29,472 | 8/25/2022 |
22.6.0 | 19,305 | 6/16/2022 |
22.4.0 | 20,671 | 4/6/2022 |
22.3.0 | 17,724 | 3/23/2022 |
22.2.0 | 8,998 | 2/8/2022 |
21.11.0 | 19,456 | 11/11/2021 |
21.9.0 | 21,138 | 9/20/2021 |
21.8.0 | 15,070 | 8/26/2021 |
21.3.0 | 40,549 | 3/30/2021 |