Top Level Namespace

Defined Under Namespace

Classes: BibtexWarning, CitationWarning, FilenameParser, FontWarning, MissingParenthesisWarning, MultipleLabelWarning, OtherWarning, PDFVersionMismatchWarning, PharagraphEndedWarning, ReferenceWarning, RepeatedPageNumberWarning, String, TReX, TexError, TexOutputFormatter, TexWarning, TooManyWarning

Constant Summary collapse

SOURCE =

CHANGE THESE PROPERTIES FOR YOUR PROJECT

nil
FIGURES =

not yet used

'figures'
GARBAGE =
'log aux out blg pdfsync synctex.gz'

Instance Method Summary collapse

Instance Method Details

#color_terminal?Boolean

Returns:

  • (Boolean)


53
54
55
56
57
58
59
# File 'lib/trex.rb', line 53

def color_terminal?
    return true if STDOUT.isatty
    [/linux/, /xterm.*/, /rxvt.*/].each { |m|
        return true if ENV['TERM'] =~ m
    }
    return false
end