TeX is a programming language which is used to create document typesetting programs. 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. Macro extensions with preset parameters may be created on basis of ΤeΧ. The most famous such extension, or format, 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!

Advanced C++ TeX Files Typesetting API Features

TeX to XPS C++ code example

Aspose.TeX for C++ can easily typeset TeX files to various 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 Object TeX format on Object TeX engine extension.
System::SharedPtr<TeXOptions> options = TeXOptions::ConsoleAppOptions(TeXConfig::ObjectTeX());
// Specify the job name. Otherwise, TeXJob constructors's method first argument (file name only) 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 TeX to XPS conversion.
System::MakeObject<TeXJob>(System::IO::Path::Combine(RunExamples::InputDirectory, u"hello-world.tex"),
	  System::MakeObject<XpsDevice>(), options)->Run();

Aspose.TeX for C++ provides an easy-to-use mechanism for converting TeX and LaTeX files to PDF, XPS, SVG, and image formats. The conversion process can be configured to control the quality of images and other properties of the output document.
The solution also offers various conversions like:

  

Support and Learning Resources

  
  

Aspose.TeX offers individual APIs for popular development environments as listed below: