Skip to content

Repository files navigation

jcabi-latex-maven-plugin

mvn PDD status Maven Central Javadoc

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, and pnmtopng (from Netpbm)

On Debian or Ubuntu, this is enough:

sudo apt-get install -y texlive-latex-base ghostscript netpbm

Configure 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

How to contribute?

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

About

LaTeX Maven Plugin

Topics

Resources

Stars

7 stars

Watchers

4 watching

Forks

Releases

Used by

Contributors

Languages