TeX Command Line Converter | Aspose.TeX CLI Tools

Overview

The Aspose.TeX Convert tool is a powerful CLI application that facilitates the conversion of TeX and LaTeX documents into various formats. This tool lets developers and designers create documents that work seamlessly across different platforms and devices.

Key Features

Benefits

Using the Aspose.TeX Convert tool provides several advantages:

Licensing

While the Aspose.TeX Convert application itself is free to use, converting documents requires a valid Aspose.TeX license. You can purchase a license or use Aspose.TeX in trial mode for evaluation purposes.

How to install TeX Command-Line Converter?

The Aspose.TeX Convert tool can be installed either globally or locally, depending on your project’s needs. It is recommended to use the local installation for project-specific use to avoid version conflicts.

Global Installation

To install Aspose.TeX Convert globally on your machine, use the following command:

1dotnet tool install --global Aspose.TeX.Convert

Specify the --version option if you need a specific version of the tool.

Local Installation

For local installation within a specific project, first, navigate to your project’s root directory. Then, execute the following commands:

  1. Create a tool-manifest if not already present:

    1dotnet new tool-manifest
  2. Install Aspose.TeX Convert locally:

    1dotnet tool install Aspose.TeX.Convert --local

Again, you can specify the --version option for a specific version.

Updating the TeX CLI Converter

To update the Aspose.TeX Convert tool to the latest version, use the dotnet tool update command with either --global or --local, matching your installation type.

Uninstalling the TeX CLI Converter

If you need to uninstall the tool, use the dotnet tool uninstall command with either --global or --local, depending on how the tool was installed.

Usage

Command Line

Convert your documents using command-line arguments. Here are the available parameters:

Example command-line usage:

1Aspose.TeX.Convert --input input.tex --output output.pdf --format pdf

How to integrate CLI LaTeX Converter into C# Projects?

The Aspose.TeX Convert application can also be integrated directly into your .NET projects using the command line, enabling programmatic access to TeX conversion capabilities within your C# code.

Adding the LaTeX Command Line Converter to Your Project:

To add the Aspose.TeX Convert tool to your Visual Studio project, go to your project’s root directory, and execute the following command:

1dotnet Aspose.TeX.Convert add

This command adds the Aspose.TeX Convert functionality directly into your project, allowing you to use the library’s methods and properties through your code. This is particularly useful for developers looking to implement customized TeX conversion processes directly within their applications.

Use from Code

Here is an example of using the Aspose.TeX CLI tools programmatically in your C# code:

 1using Aspose.TeX.MicroApps.Convert;
 2using System.Threading.Tasks;
 3
 4class Program
 5{
 6    static async Task Main(string[] args)
 7    {
 8        // Initialize convert options
 9        var options = new ConvertOptions
10        {
11            // Required: Specify the input document path
12            InputDocument = "input.tex",
13            
14            // Required: Specify the output document path
15            OutputFilePath = "output.pdf",
16            
17            // Optional: Specify the output format
18            ToFormat = "pdf"
19        };
20
21        // Conditional: Apply license if you have one
22        if (isLicensed)
23        {
24            options.LicenseFile = "path_to_license.lic";
25        }
26
27        // Execute the conversion task
28        await ConvertTasks.Create(options).Execute();
29    }
30}

For more information and usage examples, please visit the Aspose.TeX for .NET documentation.

Have any questions about Aspose.TeX?



Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.