Class LaTeX

java.lang.Object
org.variantsync.diffdetective.util.LaTeX

public final class LaTeX extends Object
Commonly used constants used in LaTex code.
  • Field Details

    • TABLE_SEPARATOR

      public static final String TABLE_SEPARATOR
      Delimiter between LaTex table columns.
      See Also:
    • TABLE_ENDROW

      public static final String TABLE_ENDROW
      Delimiter between LaTex table rows.
      See Also:
    • verbDelimiters

      private static final char[] verbDelimiters
      Characters suitable for use with the \verb command. In decreasing preference.
  • Constructor Details

    • LaTeX

      public LaTeX()
  • Method Details

    • escape

      public static String escape(String text)
      Wraps text into a \verb command. Automatically tries to select a suitable delimiter not contained in text.
      Parameters:
      text - a string which should appear verbatim in LaTeX output
      Returns:
      LaTeX source code producing text verbatim
      Throws:
      IllegalArgumentException - if no suitable delimiter could be found.