These snippets demonstrate creating and using custom TeX formats with Aspose.TeX for .NET. Create your own TeX format files to precompile frequently used macros and definitions, then use them for faster typesetting.
- Create a custom TeX format file
- How to create TeX format with custom macros
- Typeset with custom TeX format
- How to use a custom format for document processing
- Precompile TeX macros for performance
- Define custom document classes
- Reference Aspose.TeX for .NET: Aspose.TeX on Windows; Aspose.TeX.Drawing on non‑Windows.
- Copy a snippet into your project.
- Apply a temporary license as described in the licensing guide.
- Build and run.
In evaluation mode, the output may contain watermarks and limitations. Apply a valid license to unlock full functionality.
More about custom TeX formats:
- Documentation – Aspose.TeX for .NET
- Product page – Aspose.TeX for .NET
- Free Support Forum – Aspose.TeX
- Blog – Aspose.TeX Product Family
- API Reference – Aspose.TeX for .NET
- NuGet (Windows) – Aspose.TeX
- NuGet (non‑Windows) – Aspose.TeX for .NET
- .NET 6.0+, .NET Core, or .NET Framework
- Aspose.TeX for .NET library
A custom TeX format is a precompiled binary file containing:
- Macro definitions
- Font metrics
- Hyphenation patterns
- Custom document classes
- Frequently used packages
This approach significantly improves typesetting performance by avoiding repetitive macro compilation.
The first example demonstrates creating a custom TeX format file (.fmt) using the ObjectIniTeX engine. The format is created from a TeX source file containing macro definitions.
The second example shows how to use the previously created custom format for document typesetting. This approach is much faster than loading all macros each time.