Run LaTeX with this project either with Maven or Gradle.
This is THE maven plugin to generate PDF, PS or DVI from LaTeX sources.
There have been some maven plugins around trying to provide an easy way to run LaTeX with maven. But it was never as easy as it should be. A lot of configuration had to be made to get the plugins working. And many of them are not maintained any more.
mathan-latex-maven-plugin changes this. It is very easy to to use and there is little or no configuration needed for the default use cases.
Using mathan-latex-maven-plugin introduces the packaging pdf. In a single maven module using mathan-latex-maven-plugin a PDF artifact is created.
The minimal configuration looks like this:
...
<packaging>pdf</packaging>
...
<build>
<plugins>
<plugin>
<groupId>io.mathan.maven</groupId>
<artifactId>mathan-latex-maven-plugin</artifactId>
<version>1.0.4</version>
</plugin>
</plugins>
</build>
You can find more details about the configuration here.
This is THE alternative to generate PDF, PS, DVI from LaTeX sources with Gradle.
There have been a few gradle plugins around trying to provide a way to run LaTeX with gradle. There are not documented well and so it was not easy to use them.
For gradle mathan-latex-gradle-plugin changes this. It is very easy to to use and there is little or no configuration needed for the default use cases.
After applying the plugin you can use the task latex.
buildscript {
dependencies {
classpath group: 'io.mathan.maven', name: 'mathan-latex-gradle-plugin',
version: '1.0.4'
}
}
apply plugin: 'io.mathan.latex'
You can find more details about the configuration here.