Create Custom TeX Format and Typeset to PDF, XPS using C++

Create Custom TeX Format and Typeset to PDF and XPS using C++

TeX is a typesetting system that has been noted as one of the most sophisticated digital typographical systems. TeX is used for typesetting documents and generating outputs like PDF, XPS, and different image formats. There might be situations where you need to design a bunch of documents uniformly. For that, creating a custom TeX format will prove to be helpful. To that end, this article will teach you how to create a custom TeX format and typeset it to PDF and XPS formats using C++.

C++ API for Creating Custom TeX Format and Typesetting it to PDF and XPS

Aspose.TeX for C++ is a C++ library for working with TeX files without requiring any additional software to be installed. The API allows you to typeset TeX files, create custom TeX format, and generate output in formats like XPS, PDF, PNG, JPEG, TIFF, BMP. You can either install the API through NuGet or download it directly from the Downloads section.

PM> Install-Package Aspose.TeX.Cpp

Create a Custom TeX Format using C++

The following are the steps to create a custom TeX format.

The following sample code demonstrates how to create a custom TeX format using C++.

Typeset Custom TeX Format to XPS Format

The following are the steps for typesetting custom TeX format to XPS format.

The following is the sample code to typeset a custom TeX format to XPS format.

Typeset Custom TeX Format to PDF Format

The following are the steps for typesetting custom TeX format to PDF format.

The following sample code shows how to typeset a custom TeX format to PDF format.

Get a Free License

You can try the API without evaluation limitations by requesting a free temporary license.

Conclusion

In this article, you have learned how to create a custom TeX format using C++. Furthermore, you have learned how to typeset a custom TeX format to PDF and XPS formats using Aspose.TeX for C++ API. You can explore the API in detail by visiting the official documentation. In case of any questions, please feel free to reach us on our free support forum.

See Also