class Rake4LaTeX::TeXMessage

Informations about one TeX-Message

end

Constants

TYPES

List of supported message types.

Attributes

details[R]

Hash with details for the message (special informations…)

line[RW]

Line in the TeX-Sourcefile. Place, where the error should be corrected. No number, may be something line ‘621-625’.

logline[R]

Line in the log line

message[R]

Message text of the message

nextlines[R]

collect additional lines for the message.

page[R]

Next page in the generated document. The previous page should be the location, where the effect of the error should be visible.

source[R]

TeX-Sourcefile. Place, where the error should be corrected.

type[R]

Type of the message

  • Error

  • Warning

Public Class Methods

new(type, logline, message, details = {}, page = nil, source = nil, line = nil) click to toggle source

Define a new TeX-Message.

line: Source code line of the tex-file, where the message was created. No number, may be something line ‘621-625’.

end

# File lib/rake4latex/tex_statistic.rb, line 42
def initialize(type, logline, message, details = {}, page = nil, source = nil, line = nil)
  @type = type
  #~ Rake4LaTeX::Logger.error("undefined TeX-message type #{@type.inspect}") if ! TYPES.include?(@type)
  @message = message
  @details = details
  @page = page
  @source = source
  @line = line
  @logline = logline
  @nextlines = []
end

Public Instance Methods

<<(logline) click to toggle source

Add the following line(s) to the message

# File lib/rake4latex/tex_statistic.rb, line 79
def << (logline)
  @nextlines << logline
end
<=>( mess ) click to toggle source

Sort by line of occurence in the log.

# File lib/rake4latex/tex_statistic.rb, line 73
def <=> ( mess )
  @logline <=> mess.logline
end