All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.csabasulyok.gradlelatex.LatexArtifact.groovy Maven / Gradle / Ivy

Go to download

This Gradle plugin allows automation of compiling PDFs using LaTeX and BiBTeX.

The newest version!
package com.github.csabasulyok.gradlelatex

import org.gradle.api.file.FileCollection

/**
 * Represents a TeX artifact which will can be compiled into a PDF.
 * Used to maintain a graph of dependencies.
 * 
 * @author csabasulyok
 */
class LatexArtifact {
  
  /**
   * Name of artifact - derived from the name of the input TeX file,
   * without its extension.
   * 
   * Must be unique per project, and multiple Gradle tasks are created
   * dynamically based on its value.
   */
  String name
  
  /**
   * Represents tex file which is used to call bibtex, pdflatex
   * Must be set.
   */
  File tex
  
  /**
   * Represents bib file used to call bibtex.
   */
  File bib
  
  /**
   * Represents output pdf file.
   */
  File pdf
  
  /**
   * Collection of dependencies which have to be compiled
   * in order for this one to work (e.g. used with \input). 
   */
  Collection dependsOn
  
  /**
   * 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. 
   */
  FileCollection img
  
  /**
   * Collection of dependencies which do not have to be compiled
   * for this one. Not taken into consideration at all during compilation,
   * but added to set of input files, so that up-to-date checks and continuous build
   * are triggered when they change.
   */
  FileCollection aux
  
  /**
   * Extra arguments to be passed to pdflatex when building this artifact.
   */
  String extraArgs
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy