javatools.util
Class LatexChecker

java.lang.Object
  extended by javatools.util.LatexChecker

public class LatexChecker
extends java.lang.Object

This class is part of the Java Tools (see http://mpii.de/yago-naga/javatools). It is licensed under the Creative Commons Attribution License (see http://creativecommons.org/licenses/by/3.0) by the YAGO-NAGA team (see http://mpii.de/yago-naga) This utility checks which files are referenced by a Latex File. Note that we cannot guarantee that this tool finds all references!! *********

Author:
Fabian M. Suchanek

Field Summary
static java.lang.String[] extensions
          Extensions to consider
static java.util.Set<java.lang.String> includeStatements
          Include statements
 
Constructor Summary
LatexChecker()
           
 
Method Summary
static void main(java.lang.String[] args)
          returns all referenced and all superfluous files of a given latex file
static java.util.Set<java.io.File> nonReferenced(java.util.Set<java.io.File> otherFiles)
          returns all superfluous files.
static java.util.Set<java.io.File> referencedBy(java.io.File latexFile)
          Returns all referenced files, recursively
static java.util.Set<java.lang.String> references(java.io.File latexFile)
          Returns all files referenced in this latex file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

includeStatements

public static final java.util.Set<java.lang.String> includeStatements
Include statements


extensions

public static final java.lang.String[] extensions
Extensions to consider

Constructor Detail

LatexChecker

public LatexChecker()
Method Detail

references

public static java.util.Set<java.lang.String> references(java.io.File latexFile)
                                                  throws java.io.IOException
Returns all files referenced in this latex file

Throws:
java.io.IOException

referencedBy

public static java.util.Set<java.io.File> referencedBy(java.io.File latexFile)
                                                throws java.io.IOException
Returns all referenced files, recursively

Throws:
java.io.IOException

nonReferenced

public static java.util.Set<java.io.File> nonReferenced(java.util.Set<java.io.File> otherFiles)
returns all superfluous files. WITHOUT WARRANTY


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
returns all referenced and all superfluous files of a given latex file

Throws:
java.lang.Exception