Difference between revisions of "TableText Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}</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>, <List>, ... ]
 +
: Creates a text that contains a table of the list objects.
 
: {{Note| By default, each list is displayed in its own row of the table.}}
 
: {{Note| By default, each list is displayed in its own row of the table.}}
 
: {{Example|1=<br/>
 
: {{Example|1=<br/>
Line 7: Line 8:
 
:* <code>TableText[Sequence[i^2, i, 1, 10]]</code> creates a table as a text object with one row. All items of the table are left aligned.}}
 
:* <code>TableText[Sequence[i^2, i, 1, 10]]</code> 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>, <List>, ..., <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| 1=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
Line 15: Line 17:
 
:* "c" = centered }}
 
:* "c" = centered }}
 
: {{Example|1=<br/>
 
: {{Example|1=<br/>
:* <code>TableText[{1,2,3,4},{1,4,9,16},"v"]</code> creates a text with two columns and four rows whose elements are left aligned.
+
:* <code>TableText[{1, 2, 3, 4}, {1, 4, 9, 16}, "v"]</code> creates a text with two columns and four rows whose elements are left aligned.
:* <code>TableText[{1,2,3,4},{1,4,9,16},"h"]</code> creates a text with two rows and four columns whose elements are left aligned.
+
:* <code>TableText[{1, 2, 3, 4}, {1, 4, 9, 16}, "h"]</code> creates a text with two rows and four columns whose elements are left aligned.
:* <code>TableText[{11.2,123.1,32423.9,"234.0"},"vr"]</code> creates a text with one column whose elements are right aligned.}}
+
:* <code>TableText[{11.2, 123.1, 32423.9, "234.0"}, "vr"]</code> creates a text with one column whose elements are right aligned.}}
  
It's now possible to insert:
+
:It's now possible to insert:
* different types of brackets, using the following symbols ||||, ||, {}, [] or ()  
+
:* different types of brackets, using the following symbols ||||, ||, {}, [] or ()  
* line separators, using the symbol  _  
+
:* line separators, using the symbol  _  
* column separators, using the symbol |  
+
:* column separators, using the symbol |  
  
 
: {{Examples|1=<br/>
 
: {{Examples|1=<br/>
:* <code><nowiki>TableText[{1,2},{3,4},"c()"]</nowiki></code> creates the text <math>\begin{pmatrix}{} 1 & 2 \\ 3 & 4 \\ \end{pmatrix} </math>  
+
:* <code><nowiki>TableText[{1, 2}, {3, 4}, "c()"]</nowiki></code> creates the text <math>\begin{pmatrix}{} 1 & 2 \\ 3 & 4 \\ \end{pmatrix} </math>  
:* <code><nowiki>TableText[{1,2},{3,4},"c|_"]</nowiki></code> creates the text [[File:TabellaTesto.png|50px]]
+
:* <code><nowiki>TableText[{1, 2}, {3, 4}, "c|_"]</nowiki></code> creates the text [[File:TabellaTesto.png|50px]]
:* <code><nowiki>TableText[{1,2},{3,4},"||"]</nowiki></code> creates the text <math> \begin{vmatrix}{} 1 & 2 \\ 3 & 4 \\ \end{vmatrix} </math>  
+
:* <code><nowiki>TableText[{1, 2}, {3, 4}, "||"]</nowiki></code> creates the text <math> \begin{vmatrix}{} 1 & 2 \\ 3 & 4 \\ \end{vmatrix} </math>  
:* <code><nowiki>TableText[{1,2},{3,4},"||||"]</nowiki></code> creates the text <math>\begin{Vmatrix}{} 1 & 2 \\ 3 & 4 \\ \end{Vmatrix} </math> }}
+
:* <code><nowiki>TableText[{1, 2}, {3, 4}, "||||"]</nowiki></code> creates the text <math>\begin{Vmatrix}{} 1 & 2 \\ 3 & 4 \\ \end{Vmatrix} </math> }}

Revision as of 09:15, 9 August 2013



TableText[ <List>, <List>, ... ]
Creates a text that contains a table of the list objects.
Note: By default, each list is displayed in its own row 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>, <List>, ..., <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.


It's now possible to insert:
  • different types of brackets, using the following symbols ||||, ||, {}, [] or ()
  • line separators, using the symbol _
  • column separators, using the symbol |
Examples:
  • TableText[{1, 2}, {3, 4}, "c()"] creates the text \begin{pmatrix}{} 1 & 2 \\ 3 & 4 \\ \end{pmatrix}
  • TableText[{1, 2}, {3, 4}, "c|_"] creates the text TabellaTesto.png
  • TableText[{1, 2}, {3, 4}, "||"] creates the text \begin{vmatrix}{} 1 & 2 \\ 3 & 4 \\ \end{vmatrix}
  • TableText[{1, 2}, {3, 4}, "||||"] creates the text \begin{Vmatrix}{} 1 & 2 \\ 3 & 4 \\ \end{Vmatrix}
© 2022 International GeoGebra Institute