-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
initial PGML version of niceTables #1034
base: develop
Are you sure you want to change the base?
Conversation
As with several other things, you might thank me for getting it started, but @dpvc did the critical work for getting that actually working. |
Does it do anything for you that there is already the option for |
This macro is independent of niceTables, my aim was to instead create an easy replacement for those who might be used to writing (or may be converting from) niceTables in PG. I'm sure there are others, but what I've noticed so far is that PGML ( Something else to consider with tables is that |
I see that you saw some things :) Observations you have made are not from when PGML started using The Line 387 in 9cefdf9
I think instead, you now are asked to use And Line 1268 in 9cefdf9
The horizontalrules option will be set if midrules is attempted.
And then The current documentation for Line 192 in 9cefdf9
So that example from the wiki is just yet another example that needs to be updated. I think this is more about CSS that works with an HTML col , not really about colgroup . But we probably don't need to be using colgroup at all, I just went for maximal structure just in case.
I don't have it in me to maintain the wiki examples with all the breakdown and commentary, but if we maintained actual pg file examples for tables, I could update those. If you haven't seen this yet, in |
Thanks for that -- yeah, yesterday I spent a good amount of time trying to track down what all is handled in PGML now and comparing it to the actual documentation for niceTables (rather than just trying to convert old code into this new structure). As for PGML documentation, are you talking about the PGML-lab? I'm on develop and I don't see anything in there about tables -- am I missing something? (I don't see any POD for PGML.pl either) |
Yeah, PGML lab. So if you have an old course, it has not had the PGML lab files updated most likely. Create a new course on develop and/or copy the current modelCourse PGML-lab.pg file into your course. |
This highlights an issue with PGML-lab.pg. If a course propagates over time, its PGML-lab.pg file will be relevant to the old version of WW/PG where the course was initialized, instead of whatever version the server is currently at. |
With the recent updates to support tables natively in PGML (thanks @Alex-Jordan!), I'm finally able to get MultiAnswer PopUps going inside a table (e.g. columns in a truth table).
I wrote up some helper functions to take the (soon to be) old-school niceTable arguments and create a PGML table from them. This PR is the collection of those helper functions wrapped up into a single
PGMLTable()
object.I tested this code out on all of the examples from our niceTables documentation, and it's mostly successful. There are a few unsupported arguments (
tex
andmidrules
, I'm looking at you), which we might consider supporting in the PGML tables code?A new option is added,
layout => 1
puts the table into LayoutTable spacing (the starred version of PGML tables).This is just a draft PR for now, of course documentation is still needed here.