Class TeXify


  • public final class TeXify
    extends java.lang.Object
    This class builds LaTeX documents into DVI, Postscript or PDF and displays the result.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static short DVIPS
      Backend format dvips (postscript)
      static short GENERIC
      Backend format generic (dvi)
      static short PDFTEX
      Backend format pdfTeX (pdf)
      static short XETEX
      Backend format XeTeX (also pdf, usually)
    • Constructor Summary

      Constructors 
      Constructor Description
      TeXify​(com.sun.star.uno.XComponentContext xContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean process​(java.io.File file, java.lang.String sBibinputs, short nBackend, boolean bView)
      Process a document
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TeXify

        public TeXify​(com.sun.star.uno.XComponentContext xContext)
    • Method Detail

      • process

        public boolean process​(java.io.File file,
                               java.lang.String sBibinputs,
                               short nBackend,
                               boolean bView)
                        throws java.io.IOException
        Process a document
        Parameters:
        file - the LaTeX file to process
        sBibinputs - value for the BIBINPUTS environment variable (or null if it should not be extended)
        nBackend - the desired backend format (generic, dvips, pdftex)
        bView - set the true if the result should be displayed in the viewer
        Returns:
        true if the first LaTeX run was successful
        Throws:
        java.io.IOException - if the document cannot be read