Other managing TeX options | C++
How to set the interaction mode
As we mentioned here, Aspose.TeX for C++ lets us set the initial interaction mode in which the engine starts. Here’s how we do it:
1// Create conversion options instance.
2...
3// Set the interaction mode.
4options->set_Interaction(Interaction::NonstopMode);
How to set the job name
When we pass the main input file as a file name, we get output files with the same name, although with other extensions. The TeX engine calls the input file’s name the job name and uses it for output files, except in cases when auxiliary files with explicitly specified other names are written. When we pass the main input file as a stream, the TeX engine uses the default job name, which is texput. In both cases, we can override the job name by assigning the appropriate conversion option.
1// Create conversion options instance.
2...
3// Set the job name.
4options->set_JobName(u"my-job-name");
How to repeat the job
As we have mentioned above regarding labels and references, there are cases when we would like to run the same job twice. Here is how it can be done:
1// Create conversion options instance.
2...
3// Set the job name.
4options->set_Repeat(true);