Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latex rendering of tables is confused #85

Open
kai-e opened this issue Nov 2, 2021 · 0 comments
Open

latex rendering of tables is confused #85

kai-e opened this issue Nov 2, 2021 · 0 comments

Comments

@kai-e
Copy link

kai-e commented Nov 2, 2021

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant