Code Monkey home page Code Monkey logo

mathan-latex-maven-plugin's Introduction

Maven metadata URI example branch parameter Codacy Badge

mathan-latex-maven-plugin / mathan-latex-gradle-plugin

Run LaTeX with this project either with Maven or Gradle.

mathan-latex-maven-plugin

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.

Usage

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.

mathan-latex-gradle-plugin

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.

Usage

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.

mathan-latex-maven-plugin's People

Contributors

dependabot[bot] avatar reallyinsane avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mathan-latex-maven-plugin's Issues

Resolving dependencies fails when entries point to sub directories

When dependencies (JARs/ZIPs) contain entries with paths to sub directories (e.g. META-INF/MANIFEST.MF) extracting the files failes with a FileNotFoundException. Missing sub directories should be created during extraction of the dependencies.

Thanks to Sebastian O. for the bug report.

Convert multiple tex files in the resources of the same maven project

Hi Matthias,

I would like to have a few .tex files under the maven project resources and convert them to pdf. Just realised that you require to have exactly one. Any suggestions would be really appreciated.

I use this plugin (together with others, e.g., a Plantuml one) to generate during build time diagrams and latex artefacts (mainly tables) for including them in the generate maven site documentation of the repo.

Thanks for your time!

Fails to process kafka-streams-avro-serde-7.3.1.jar

Plugin fails if a maven dependency has the following structure:

META-INF/MANIFEST.MF
META-INF/

if the iterator return MANIFEST.MF first and META-INF/ second. As the META-INF/ will be already created as part of the processing of MANIFEST.MF.

Caused by: java.io.IOException: Could not create directory /var/folders/gr/0k9ly3t15c11g26_jl9sx3km0000gn/T/8cbe4bc9-9e90-438e-a967-fccb253b7f3a/META-INF at io.mathan.latex.core.Utils.extractArchive (Utils.java:150) at io.mathan.maven.latex.internal.MavenBuild.extractArchive (MavenBuild.java:161) at io.mathan.maven.latex.internal.MavenBuild.resolveDependency (MavenBuild.java:149) at io.mathan.maven.latex.internal.MavenBuild.resolveDependencies (MavenBuild.java:86) at io.mathan.latex.core.MathanLatexRunner.executeSteps (MathanLatexRunner.java:100) at io.mathan.latex.core.MathanLatexRunner.execute (MathanLatexRunner.java:78) at io.mathan.maven.latex.MathanLatexMojo.execute (MathanLatexMojo.java:162) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)

You can try to process io/confluent/kafka-streams-avro-serde/7.3.1/kafka-streams-avro-serde-7.3.1.jar for reproducing the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.