Skip to content

error with () in Tex.print calls #5

@sjyn

Description

@sjyn

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
end

produces the following in the generated .tex.rb file

def initialize rbtexinsertedlinenumber=0

Tex.print("Hi!, I'm a class being initialized"), rbtexinsertedlinenumber

end

which 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)

end

which is valid Ruby syntax.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions