Skip to content

Commit

Permalink
Do not parse includes that contain a variable.
Browse files Browse the repository at this point in the history
The script would search for a file with the variables name and not find one, fixes #2.
  • Loading branch information
infininight committed Dec 21, 2012
1 parent ccdf91e commit 18e9d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Support/lib/LaTeXUtils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def initialize(old_scanner=nil)
# Default values for the +includes+ hash.
def set_defaults
@includes = Hash.new
@includes[/^[^%]*(?:\\include|\\input)\s*\{([^\}]*)\}/] = Proc.new {|m|
@includes[/^[^%]*(?:\\include|\\input)\s*\{([^}\\]*)\}/] = Proc.new {|m|
m[0].split(",").map do |it|
LaTeX.find_file( it.strip, "tex", File.dirname(@root) ) || raise("Could not locate any file named '#{it}'")
end
Expand Down

0 comments on commit 18e9d9c

Please sign in to comment.