-
Notifications
You must be signed in to change notification settings - Fork 2
error with () in Tex.print calls #5
Copy link
Copy link
Closed
Labels
Description
Inside classes, the processor seems to not be able to correctly parse Tex.print calls with already existing parentheses
class MyClass
def initialize
Tex.print("Hi!, I'm a class being initialized")
end
endproduces the following in the generated .tex.rb file
def initialize rbtexinsertedlinenumber=0
Tex.print("Hi!, I'm a class being initialized"), rbtexinsertedlinenumber
endwhich fails on compilation. This can be fixed by having the processor generate
def initialize rbtexinsertedlinenumber=0
Tex.print(("Hi!, I'm a class being initialized"), rbtexinsertedlinenumber)
endwhich is valid Ruby syntax.
Reactions are currently unavailable