LaTeX Maven Archetype

The LaTeX Maven Archetype is kickstarts your LaTeX / Maven projects.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.fracpete
ArtifactId

ArtifactId

latex-maven-archetype
Last Version

Last Version

1.4.4
Release Date

Release Date

Type

Type

jar
Description

Description

LaTeX Maven Archetype
The LaTeX Maven Archetype is kickstarts your LaTeX / Maven projects.
Project Organization

Project Organization

CITI / INRIA Laboratory

Download latex-maven-archetype

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.fracpete/latex-maven-archetype/ -->
<dependency>
    <groupId>com.github.fracpete</groupId>
    <artifactId>latex-maven-archetype</artifactId>
    <version>1.4.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.fracpete/latex-maven-archetype/
implementation 'com.github.fracpete:latex-maven-archetype:1.4.4'
// https://jarcasting.com/artifacts/com.github.fracpete/latex-maven-archetype/
implementation ("com.github.fracpete:latex-maven-archetype:1.4.4")
'com.github.fracpete:latex-maven-archetype:jar:1.4.4'
<dependency org="com.github.fracpete" name="latex-maven-archetype" rev="1.4.4">
  <artifact name="latex-maven-archetype" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.fracpete', module='latex-maven-archetype', version='1.4.4')
)
libraryDependencies += "com.github.fracpete" % "latex-maven-archetype" % "1.4.4"
[com.github.fracpete/latex-maven-archetype "1.4.4"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

latex-maven

Maven plugin that allows you to create PDF documentation from LaTeX source code (fork of https://github.com/mojohaus/latex-maven)

For your pom.xml:

  <build>
    <pluginManagement>
      <plugins>
        ...
        <plugin>
          <groupId>com.github.fracpete</groupId>
          <artifactId>latex-maven-plugin</artifactId>
          <version>1.4.4</version>
          <executions>
            <execution>
              <phase>package</phase>
              <goals>
                <goal>latex</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <forceBuild>true</forceBuild>
          </configuration>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    ...
    <plugins>
      <plugin>
        <groupId>com.github.fracpete</groupId>
        <artifactId>latex-maven-plugin</artifactId>
      </plugin>
      ...
    </plugins>
  </build>

Goals

Use the following command to build the LaTeX documentation:

mvn latex:latex

FAQs

  • My references are undefined: Check if your backend in LaTeX is the same as specified in the pom (bibtex configuration)
  • I have no references at all: The name of the bibtex file needs to be the same as the main latex file. If your main latex file is named sample.tex, the bibfile needs to be sample.bib.

Options

  • latex.docsRoot=... the directory with the documentation, default: src/main/latex
  • latex.commonsDirName=... the directory with the common LaTeX sources, default: common
  • latex.binariesPath=... the directory with LaTeX binaries
  • latex.bibtex=... the name of the bibtex binary (eg bibtex8 or biber instead of bibtex)
  • latex.skipBuild=true|false for skipping the build, default: false
  • latex.forceBuild=true|false for forcing the build, default: false
  • latex.dummyBuild=true|false for creating dummy PDFs (eg if no LaTeX present), default: false
  • latex.extraRuns=... to run pdflatex more times than normal, default: 0

Versions

Version
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0