TeX is a programming language, you may find it called a data markup one. At the same time, TeX is an interpreter engine that understands this language and a typesetting system as a whole.
It is used for mathematical or technical text writing. Many different packets have been created on the basis of ΤeΧ. The most famous such package is LaTeX. It lets authors focus on the text and leave the typography process to the program. With LaTeX structured documents are easy to create and manage.
Unlock the limitless potential of your C++ applications with Aspose.TeX! Our versatile and user-friendly library lets you typeset TeX and LaTeX files effortlessly. It supports multiple output formats, including XPS, PDF, PNG, JPEG, TIFF, SVG, and BMP, giving you the power to transform TeX and LaTeX documents into any desired format. Whether you're aiming for precise conversions or need to create and typeset a cohesive collection of documents, our solution allows you to manipulate your TeX format easily. Boost your document processing capabilities with Aspose.TeX for C++ today! Give it a try by downloading a free trial or buy it right now!
At a Glance
An overview of Aspose.TeX for C++ API.
- Support Multiple Formats
- Load TeX source files from disk
- Load TeX source files from a ZIP-archive
- Load TeX source files from your own implementation of working directory
- Typeset TeX files
- Obtain output documents in different formats like XPS, PDF, PNG, JPEG, TIFF, BMP, SVG
- Write output document to a stream
- Write output to disk
- Write output to a ZIP-archive
- Create your own TeX format if you want to create and/or typeset a bunch of documents designed uniformly
- Write output to your own implementation of "working directory"
Aspose.TeX for C++ supports all major platforms including.
Supported File Formats
Aspose.TeX for C++ supports the following supported file formats :
- Plain text TeX files
- LaTeX files
Advanced C++ TeX Files Typesetting API Features
TeX to XPS C++ code example
Aspose.TeX for C++ can easily typeset TeX files to formats.
TeX to XPS with output written to a disk - C++
using Aspose::TeX::IO; using Aspose::TeX::Presentation::Xps;
// Create typesetting options for the default ObjectTeX format on ObjectTeX engine extension. System::SharedPtr<TeXOptions> options = TeXOptions::ConsoleAppOptions(TeXConfig::ObjectTeX()); // Specify the job name. Otherwise, TeX.Typeset()'s method first argument will be taken as a job name. options->set_JobName(u"overriden-job-name"); // Specify a file system working directory for the input. options->set_InputWorkingDirectory(System::MakeObject<InputFileSystemDirectory>(RunExamples::InputDirectory)); // Specify a file system working directory for the output. options->set_OutputWorkingDirectory(System::MakeObject<OutputFileSystemDirectory>(RunExamples::OutputDirectory)); // Specify that the terminal output must be written to a file in the output working directory. // The file name is <job_name>.trm. options->set_TerminalOut(System::MakeObject<OutputFileTerminal>(options->get_OutputWorkingDirectory())); // Run the typesetting. Aspose::TeX::TeX::Typeset(u"hello-world", System::MakeObject<XpsDevice>(), options);