Loading License TeX
Get the license of TeX from a file or stream C# .NET
TeX is a programming language used to write programs for a computer document preparation system which is also called TeX (the TeX engine). Their main purpose is to help in writing mathematical or technical papers.
Using the Aspose.TeX API in your own project do not forget to set the license to your components. Here you will find code snippets that explain how to load it from a stream and from a file. To run the examples we need:
The Aspose.TeX for .NET API which is a feature-rich, powerful and easy-to-use document manipulation and conversion API for C# platform.
Open the NuGet package manager, search for Aspose.TeX and install it. You may also use the following command from the Package Manager Console:
Package Manager Console Command
PM> Install-Package Aspose.TeX
Steps to load the TeX license from a file C#.
- Create a license object by means of the License class.
- Set the license using the SetLicense() method.
C# code example: Loading license from a file
using Aspose.TeX;
using System;
// Initialize the license object.
License license = new License();
// Set the license.
license.SetLicense("D:\\Aspose.Total.NET.lic");
Console.WriteLine("License set successfully.");
Steps to load the TeX license from a stream C#.
- Create a license object by means of the aforementioned License class.
- Create a stream object that contains the license data.
- To set the license use the SetLicense() method.
C# code example: Loading license from a stream
using Aspose.TeX;
using System;
using System.IO;
// Initialize the license object.
License license = new License();
// Create the stream object containing license data.
FileStream myStream = new FileStream("D:\\Aspose.Total.NET.lic", FileMode.Open);
// Set the license.
license.SetLicense(myStream);
Console.WriteLine("License set successfully.");
FAQ
1. What is the difference between TeX and LaTeX?
TeX is a programming language for a computer typesetting system, when LaTeX is the most common TeX format, or macro extension, which includes many useful tools for preparing publications.
2. How to load a TeX license?
To load a TeX license using this API Solution you need to Initialize license object by means of the License Class. Then set the license using the SetLicense() Method.
3. How to manage licenses with this API Solution?
To license the component use the entities of the License Class.
TeX What is TeX File Format
TeX is not actually a format. It is both a programming language and also an interpreter engine that understands this language. A TeX file is a plain text file created using TeX syntax to be converted to some target format by being processed by a TeX engine. This output document may include graphics, tables, lists, formulas, and equations.