
org.danilopianini.gradle.latex.LatexArtifact.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-latex Show documentation
Show all versions of gradle-latex Show documentation
A plugin for compiling LaTeX, inspired by https://github.com/csabasulyok/gradle-latex
package org.danilopianini.gradle.latex
import java.io.File
import java.io.Serializable
/**
* Represents a TeX artifact which will can be compiled into a PDF.
* Used to maintain a graph of dependencies.
*
*/
data class LatexArtifact(
val name: String,
/**
* Represents tex file which is used to call pdflatex.
* Must be set.
*/
val tex: File,
val aux: File,
val pdf: File,
val bbl: File,
/**
* Collection of image files or directories with images
* which have to be transformed because LaTeX cannot use them directly (e.g. svg, emf).
* These are transformed to PDFs which then can be included in pdflatex.
*/
val imageFiles: Iterable,
/**
* Extra arguments to be passed to pdflatex when building this artifact.
*/
val extraArgs: Iterable,
/**
* Differential documents to get produced.
*/
val diffs: Iterable,
val watching: Iterable
) : Serializable {
init {
if ("/\\:<>\"?*|".any { it in name }) {
throw IllegalStateException("Illegal name $name")
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy