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!

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);

Aspose.TeX for C++ provides an easy-to-use mechanism for converting TeX and LaTeX files to PDF and image formats. The conversion process can be configured to control the quality of images as well as to handle errors if developers are working with batches.
The solution also offers varios conversions like:

  

Support and Learning Resources

  
  

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