Maven plugin for generating PNG images from LaTeX
sources during mvn site phase.
Make sure the following tools are installed on your machine and
available on PATH:
pdflatex(from any LaTeX distribution, e.g. TeX Live)gs(Ghostscript)pnmcrop,pnmscale, andpnmtopng(from Netpbm)
On Debian or Ubuntu, this is enough:
sudo apt-get install -y texlive-latex-base ghostscript netpbmConfigure the plugin pointing it to your LaTeX sources:
<project>
<build>
<plugins>
<plugin>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-latex-maven-plugin</artifactId>
<version>1.2.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<sources>
<file>picture.tex</file>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>Run mvn site and a PNG file will be created in target/site/latex/picture.png
Fork the repository, make changes, submit a pull request.
We promise to review your changes same day and apply to
the master branch, if they look correct.
Please run Maven build before submitting a pull request:
mvn clean install -Pqulice