Skip to content

latex rendering of tables is confused #85

@kai-e

Description

@kai-e

I've tried two versions of table for gcd. Both render incorrectly.

gcd2(x,y): RECURSIVE posnat =
  TABLE
  %--------+-------------+-------------++
  |[ x = y | x > y       | ELSE        ]|
  %--------+-------------+-------------++
  | x      | gcd2(x-y,y) | gcd2(x,y-x) ||
  %--------+-------------+-------------++
  ENDTABLE
  MEASURE x+y

has an empty first cell. The one below it contains x.

gcd2(x,y): RECURSIVE posnat =
  TABLE
  %-------+-------------++
  | x = y | x           ||
  %-------+-------------++
  | x > y | gcd2(x-y,y) ||
  %-------+-------------++
  | ELSE  | gcd2(x,y-x) ||
  %-------+-------------++
  ENDTABLE
  MEASURE x+y

has an additional empty first line that ends "open".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions