Difference between revisions of "TableText Command"

From GeoGebra Manual
Jump to: navigation, search
m (1 revision)
(added v.4 - note/example formatting)
Line 1: Line 1:
<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
+
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
{{command|text}}
 
{{command|text}}
 
; TableText[List 1, List 2, List 3,...]: Creates a text that contains a table of the list objects.
 
; TableText[List 1, List 2, List 3,...]: Creates a text that contains a table of the list objects.
: Note: By default, every list is displayed in a new column of the table.
+
: {{Note| By default, every list is displayed in a new column of the table.}}
: Examples:
+
: {{Example|
 
:* <tt>TableText[{x^2, 4}, {x^3, 8}, {x^4, 16}]</tt> creates a table as a text object with three rows and two columns. All items of the table are left aligned.
 
:* <tt>TableText[{x^2, 4}, {x^3, 8}, {x^4, 16}]</tt> creates a table as a text object with three rows and two columns. All items of the table are left aligned.
:* <tt>TableText[Sequence[i^2, i, 1, 10]]</tt> creates a table as a text object with one row. All items of the table are left aligned.
+
:* <tt>TableText[Sequence[i^2, i, 1, 10]]</tt> creates a table as a text object with one row. All items of the table are left aligned.}}
 +
 
 
; TableText[List 1, List 2, List 3,..., "Alignment of text"]: Creates a text that contains a table of the list objects. The optional text “Alignment of text” controls the orientation and alignment of the table text.  
 
; TableText[List 1, List 2, List 3,..., "Alignment of text"]: Creates a text that contains a table of the list objects. The optional text “Alignment of text” controls the orientation and alignment of the table text.  
: Note: Possible values are "vl", "vc", "vr", "v", "h", "hl", "hc", "hr". Default is "hl".
+
: {{Note| 1=Possible values are "vl", "vc", "vr", "v", "h", "hl", "hc", "hr". Default is "hl".
 
:* "v" = vertical, i. e. lists are columns
 
:* "v" = vertical, i. e. lists are columns
 
:* "h" = horizontal, i. e. lists are rows
 
:* "h" = horizontal, i. e. lists are rows
 
:* "l" = left aligned
 
:* "l" = left aligned
 
:* "r" = right aligned
 
:* "r" = right aligned
:* "c" = centered
+
:* "c" = centered }}
: Examples:
+
: {{Example|
 
:* <tt>TableText[{1,2,3,4},{1,4,9,16},"v"]</tt> creates a text with two columns and four rows whose elements are left aligned.
 
:* <tt>TableText[{1,2,3,4},{1,4,9,16},"v"]</tt> creates a text with two columns and four rows whose elements are left aligned.
 
:* <tt>TableText[{1,2,3,4},{1,4,9,16},"h"]</tt> creates a text with two rows and four columns whose elements are left aligned.
 
:* <tt>TableText[{1,2,3,4},{1,4,9,16},"h"]</tt> creates a text with two rows and four columns whose elements are left aligned.
:* <tt>TableText[{11.2,123.1,32423.9,"234.0"},"vr"]</tt> creates a text with one column whose elements are right aligned.
+
:* <tt>TableText[{11.2,123.1,32423.9,"234.0"},"vr"]</tt> creates a text with one column whose elements are right aligned.}}

Revision as of 11:46, 14 February 2011


TableText[List 1, List 2, List 3,...]
Creates a text that contains a table of the list objects.
Note: By default, every list is displayed in a new column of the table.
Example:
  • TableText[{x^2, 4}, {x^3, 8}, {x^4, 16}] creates a table as a text object with three rows and two columns. All items of the table are left aligned.
  • TableText[Sequence[i^2, i, 1, 10]] creates a table as a text object with one row. All items of the table are left aligned.


TableText[List 1, List 2, List 3,..., "Alignment of text"]
Creates a text that contains a table of the list objects. The optional text “Alignment of text” controls the orientation and alignment of the table text.
Note: Possible values are "vl", "vc", "vr", "v", "h", "hl", "hc", "hr". Default is "hl".
  • "v" = vertical, i. e. lists are columns
  • "h" = horizontal, i. e. lists are rows
  • "l" = left aligned
  • "r" = right aligned
  • "c" = centered
Example:
  • TableText[{1,2,3,4},{1,4,9,16},"v"] creates a text with two columns and four rows whose elements are left aligned.
  • TableText[{1,2,3,4},{1,4,9,16},"h"] creates a text with two rows and four columns whose elements are left aligned.
  • TableText[{11.2,123.1,32423.9,"234.0"},"vr"] creates a text with one column whose elements are right aligned.
© 2024 International GeoGebra Institute