Convert TEX

About TEX File Format

TeX is a language that comprises of programming as well as mark-up features, used to typeset documents. Donald Knuth from Stanford University, is the creator of this resourceful typesetting system. Across the world, TeX is the ultimate choice of authors and publishers to produce high quality technical documents. TeX performs an outstanding job of formatting complex mathematical expressions. In conjunction with a high-quality phototypesetter, TeX competes the results generated by the best traditional typesetting systems.

Convert from TEX

With GroupDocs.Conversion you can easily convert your TEX document into another file format.
For example TEX to PDF conversion code snippet will look like this:

// Load the source TEX file
using (var converter = new GroupDocs.Conversion.Converter("sample.tex"))
{
    // Set the convert options for PDF format
   var options = new PdfConvertOptions();
    // Convert to PDF format
    converter.Convert("converted.pdf", options);
}

Put it simply - you just load a TEX file into Converter, select desired output format and all the rest will be done by GroupDocs.Conversion.

Convert to TEX

On the other hand, converting your files to TEX format is also quite simple and natural. The following code sample demonstrates how to convert DOCX document to TEX in C# using GroupDocs.Conversion.

// Load the source PDF file
using (var converter = new GroupDocs.Conversion.Converter("sample.pdf"))
{
    // Set the convert options for TEX format
   var options = new PdfConvertOptions { Format = GroupDocs.Conversion.FileTypes.PdfFileType.Tex };
    // Convert to TEX format
    converter.Convert("converted.tex", options);
}