Usage
The latex maven plugin is to create artifacts of various formats from latex sources. Also graphic files with a broad variety of formats can be included, but these are auto-detected. The same is true for bibliographies, indices, glossaries and embedded code.
So the user has to specify only the desired output formats.
As illustrated by example,
with the goal cfg artifacts with more than one output format
can be created from a single source.
To that end the targets must be specified.
For each of these targets there is a goal with the same name
which represent a single target.
Goals dvi, pdf, xdoc, rtf, odt, html and txt
are specialized to the according output format.
Note that goal
dviis to createDVIfiles except forxelatexwhich createsXDVfile instead.xdoccannot only createXDOCfiles but also files in the olderDOCformat.htmlcan create besidesHTMLfiles alsoXHTMLfiles.
A special role plays goal chk
which performs a check only and creates nothing but a log file
which is of course not deployed.
The other goals, which cannot serve as target, are useful in conjunction with tools external to this software and with debugging or document development
- Goal
clrto cleanup as illustrated for cleanup. - Goal
injserve to inject files, above all config files. The various fields of applications are explained by example. - Goal
grpis to create graphic files creating graphic files. - Goal
vrsto check versions of the tools to be invoked as described in displaying versions.
Source code repository
https://github.com/Reissner/maven-latex-plugin
Maven repository
<project>
<pluginRepositories>
<pluginRepository>
<id>latex-maven-plugin-repo</id>
<url>https://www.simuline.eu/RepositoryMaven</url>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</project>
Maven plugin dependency
<project>[xml]
<build>
<plugins>
<plugin>
<groupId>eu.simuline.m2latex</groupId>
<artifactId>latex-maven-plugin</artifactId>
<version>2.1-SNAPSHOT</version>
</plugin>
</plugins>
</build>
</project>
Github
Maven