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
dvi
is to createDVI
files except forxelatex
which createsXDV
file instead.xdoc
cannot only createXDOC
files but also files in the olderDOC
format.html
can create besidesHTML
files alsoXHTML
files.
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
clr
to cleanup as illustrated for cleanup. - Goal
inj
serve to inject files, above all config files. The various fields of applications are explained by example. - Goal
grp
is to create graphic files creating graphic files. - Goal
vrs
to 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>