Difference between revisions of "Tables -- PGML"

From WeBWorK_wiki
Jump to navigation Jump to search
(initial checkin of PGML table documentation)
 
m (Pstaabp moved page PGML tables to Tables -- PGML without leaving a redirect: this name is better in the topic listing)
(No difference)

Revision as of 06:20, 9 May 2024

PGML Tables

One can make a table inside a PGML within the tags [* *]

Then cells use the tags [. .] and the last cell in a row ends in a *.

BEGIN_PGML

A simple table

 [* [. col 1 .] [. col 2 .] [. col 3 .]*
   [. 1 .] [. 2 .] [. 3 .]*
   [. 4 .] [. 5 .] [. 6 .]*
 ]*

Would make a table similar to

col 1 col 2 col 3
1 2 3
4 5 6