Frequently Asked Questions | Aspose.TeX for Java
Q: What can I use Aspose.TeX API Solution for Java for?
A: Aspose.TeX for Java is your one-stop shop for managing and manipulating TeX files. It empowers you to:
- Effortlessly convert TeX and LaTeX files.
- Aspose.TeX offers multiple ways to feed it TeX code and retrieve the generated output in your desired format.
- Create custom TeX formats.
- Create math equations and formulas.
Q: What formats does Aspose.TeX for Java support?
A: Aspose.TeX supports TeX and LaTeX as input and XPS, PDF, PNG, JPEG, TIFF, SVG, and BMP formats as output.
Q: How to convert TeX within Java?
A: It is pretty simple. Let’s describe it on the TeX to PDF Conversion example!
1// Create conversion options for Object LaTeX format on Object TeX engine extension
2TeXOptions options = TeXOptions.consoleAppOptions(TeXConfig.objectLaTeX());
3// Specify the file system working directory for the output
4options.setOutputWorkingDirectory(new OutputFileSystemDirectory(Utils.getOutputDirectory()));
5// Initialize the options
6options.setSaveOptions(new PdfSaveOptions());
7
8// Run the conversion
9new TeXJob(Utils.getInputDirectory() + "hello-world.tex", new PdfDevice(), options).run();
For more examples, please visit
Convertion guides.
Q: Can I create a custom format using Aspose.TeX for Java?
A: Yes, the Library has such functionality. It is briefly described in the
Other TeX conversion output formats article.
Q: What packages are embedded into Aspose.TeX API Solution?
A: By now there are Aspose.TeX embedded LaTeX packages included:
- eurosym
- geometry
- graphics
- hyperref
- multirow
- pgf
- pict2e
- setspace
- latex-tools bundle: afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr, fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol, rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim, xr, and xspace.
- url
- wasysym
- xcolor
If there is a package that is not included in the list you can also
use such External LaTeX packages.
Q: Does Aspose.TeX for Java have functionality for geometric figure rendering?
A: Yes, you can
write LaTeX figures to PNG or SVG using this Library.
Q: How to install Aspose.TeX for Java Package from Maven?
A: You can download its latest version directly from Aspose Maven Repository and install it within your Maven-based project by adding the following configurations to the pom.xml:
1 <repository>
2 <id>snapshots</id>
3 <name>repo</name>
4 <url>http://repository.aspose.com/repo/</url>
5 </repository>
1 <dependency>
2 <groupId>com.aspose</groupId>
3 <artifactId>aspose-tex</artifactId>
4 <version>21.4</version>
5 </dependency>
Q: Can render LaTeX formulas using Aspose.TeX for Java?
A: Yes, Aspose.TeX math rendering library lets you create an SVG or PNG image with a math formula.
- Instantiate the SvgMathRendererOptions class.
- Specify the background color, preamble, resolution, foreground color, and scaling factor.
- Specify the output stream for the log file.
- Create a file stream to save the output image.
- Create an object of the (file format)MathRenderer class and run rendering the formula by calling the Render() method. The resulting image will be written to the specified output stream.
For more examples, please visit
LaTeX math formulas rendering guides.
Q: Where can I learn more about TeX?
A: Take a look at the
General articles on LaTeX where you can learn the rules that every document author must follow. It also defines the structure of the source file, which is essentially a typesetting program.
Q: What are the system requirements of Aspose.TeX for Java?
A: Go to the
System Requirements page to get the actual information about operating systems and development environments needed to deal Aspose.TeX for Java.
Q: Can I try the Solution before purchasing it?
A: Yes, you can easily download Aspose.TeX for Java products for evaluation purposes. The evaluation version of Aspose.TeX (without a license specified) provides full product functionality except for some evaluation limitations.
If you want to try out Aspose.TeX without evaluation limitations, request a 30-day
temporary license.
Q: Where can I get help if I have any issues with the Library?
A: Check the
Aspose Forum for answers or add a new topic with your issue if you did not find the one suitable for your problem.
Q: How can I get a license for Aspose.TeX for Java?
A: Use the License.setLicense
method to license the component. The easiest way to
set a license is to put the license file in the same folder as the aspose.tex.jar and specify the filename, without a path.
Q: Can I see the functionality of this API Solution implemented in web applications?
A: Check our
web solutions to convert, view, merge, and edit TeX and LaTeX files, create mathematical equations, and many more.