TableText[] nice command but...

acron shared this idea 9 years ago
Answered

TablelText does not seem to have the ability to span multiple columnse3d41f3ecbf35323f5b453a156799266The first box is with TableText, the rest are done with LaTex array commands...

    TableText[{{"Triangle ABC ", ""}, {"Base", Element[segList, 1]}, {"Height", Element[apothemList, 1]}, {"Area", Element[apothArea, 1]}}, "c_|101"]

versus

    \begin{tabular} {|c|c|}

    \hline

    \multicolumn{2}{|c|}{\text{Regular ### }} \\

    \hline

    No. Sides & ### \\ \hline

    Area & ### \\ \hline

    Perimeter & ### \\ \hline

    \end{tabular}

where ### indicates a variable object.


IMHO, there should be simple methods to create the same objects. So far, HTML5 is requiring multiple workarounds which reduces desire to utilize in the classroom.


Tony

https://ggbm.at/566697

Comments (2)

photo
1

Hi Tony, try

    TableText[{{"Shaded", TableText[{{"Area", "48.8929"}, {"\% of circle", "24.3173\%"}}, "c|010_010"]}}, "vc|_"]

not very far.

photo
1

    TableText[{{"Triangle ABC", TableText[{{"Base", Element[segList, 1]}, {"Height", Element[apothemList, 1]}, {"Area", Element[apothArea, 1]}}, "c|111_"]}}, "vc_|11"]

Works almost perfectly. Thanks...


The next problem is when the background is shade in Java version things work well, but shading in HTML5 moves the box right about 25% off alignment...any fix for this problem?


Tony

© 2023 International GeoGebra Institute