Package adams.doc.latex
Class LatexHelper
- java.lang.Object
-
- adams.doc.latex.LatexHelper
-
public class LatexHelper extends Object
Helper class for LaTeX setup.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description static StringBIBTEXthe bibtex executable.static StringBINARIES_DIRthe binaries dir.static StringEXECUTABLEthe executable.static StringEXECUTABLE_OPTIONSthe executable options.static StringFILENAMEthe name of the props file.protected static adams.core.Propertiesm_Propertiesthe properties.
-
Constructor Summary
Constructors Constructor Description LatexHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetBibtex()Returns the bibtex executable.static adams.core.io.PlaceholderDirectorygetBinariesDir()Returns the binaries dir.static StringgetExecutable()Returns the executable, eg pdflatex.static StringgetExecutableOptions()Returns the executable options, eg "-halt-on-error".static adams.core.PropertiesgetProperties()Returns the underlying properties.static booleanwriteProperties()Writes the specified properties to disk.static booleanwriteProperties(adams.core.Properties props)Writes the specified properties to disk.
-
-
-
Field Detail
-
FILENAME
public static final String FILENAME
the name of the props file.- See Also:
- Constant Field Values
-
BINARIES_DIR
public static final String BINARIES_DIR
the binaries dir.- See Also:
- Constant Field Values
-
EXECUTABLE
public static final String EXECUTABLE
the executable.- See Also:
- Constant Field Values
-
EXECUTABLE_OPTIONS
public static final String EXECUTABLE_OPTIONS
the executable options.- See Also:
- Constant Field Values
-
BIBTEX
public static final String BIBTEX
the bibtex executable.- See Also:
- Constant Field Values
-
m_Properties
protected static adams.core.Properties m_Properties
the properties.
-
-
Method Detail
-
getProperties
public static adams.core.Properties getProperties()
Returns the underlying properties.- Returns:
- the properties
-
writeProperties
public static boolean writeProperties()
Writes the specified properties to disk.- Returns:
- true if successfully stored
-
writeProperties
public static boolean writeProperties(adams.core.Properties props)
Writes the specified properties to disk.- Parameters:
props- the properties to write to disk- Returns:
- true if successfully stored
-
getBinariesDir
public static adams.core.io.PlaceholderDirectory getBinariesDir()
Returns the binaries dir.- Returns:
- the binaries dir
-
getExecutable
public static String getExecutable()
Returns the executable, eg pdflatex.- Returns:
- the executable (no path)
-
getExecutableOptions
public static String getExecutableOptions()
Returns the executable options, eg "-halt-on-error".- Returns:
- the executable options
-
getBibtex
public static String getBibtex()
Returns the bibtex executable.- Returns:
- the bibtex executable (no path)
-
-