Difference between revisions of "Documentation/UserGuide/Writer/Tables"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Created page with "{{Documentation/DraftPage}} {{DISPLAYTITLE:Working With Tables in Writer}} = Creating and Customizing Tables = {{Documentation/Note|At the beginning of a document or a sect...")
 
Line 7: Line 7:
 
{{Documentation/Note|At the beginning of a document or a section in order to introduce content before the table it is necessary to go to the first cell (top left) and press {{Key|Enter}}}}
 
{{Documentation/Note|At the beginning of a document or a section in order to introduce content before the table it is necessary to go to the first cell (top left) and press {{Key|Enter}}}}
  
There are two ways to insert a table in a Writer document.
+
There are two ways to insert a table in a Writer document:
 +
* Click on the Table [[Image:Writer-table-icon.jpg]] icon in the Standard toolbar
 +
* Create a table through the Insert Table dialog box
  
The first is to use the corresponding button on the "Standard" toolbar, as shown in the following screenshot:
+
== Using the Table icon ==
  
 +
# Place the cursor where you want the table to appear
 +
# Click the arrow to the right side of the Table [[Image:Writer-table-icon.jpg]] icon
 +
# In the drop down grid, select the number of rows and columns for the table
  
  
Line 16: Line 21:
  
  
 +
== Using the Insert Table dialog box ==
  
On the grid it is possible to select the number of rows and columns needed.
+
To open the dialog box, select {{Menu|Table|Insert|Table}} or {{Key|Ctrl|F12}} or left click the Table icon. From this dialog box you can:
 
+
* Select the number of rows and columns of the table
The other way to insert a table gives greater control: {{Menu|Table|Insert|Table}} or {{Key|Ctrl|F12}}
+
* Give a name to the table to later distinguish it in the Navigator
 +
* Select the ''Heading'' option to define the first row in the table as the heading
 +
* Select the ''Repeat heading'' option to repeat the heading row if the table spans more than one page
 +
* Select the ''Don't split table'' option to prevent the table from spanning more than one page
 +
* Select the ''Border'' option to surround each cell of the table with a border
  
  
Line 25: Line 35:
  
  
In this dialogue it is possible to:
 
* select the number of rows and columns;
 
  
* give a name to the table to later distinguish it on the Navigator.
+
The {{Button|AutoFormat}} button opens the following dialog box:
  
  
The {{Button|AutoFormat}} offers the following dialogue:
+
[[File:AOO-TableAutoFormat.png|600px]]
  
  
[[File:AOO-TableAutoFormat.png|600px]]
+
From here it is possible to choose between different predefined formats.
 +
 
 +
If none of the predefined autoformats have the desired characteristics for your table, you can tune the format of the table or of a particular cell with the contextual Table toolbar. Open the toolbar by placing the cursor is inside a table cell or select {{Menu|View|Toolbars|Table}}. If you wish to save the formatting you just created, place your cursor inside the table, and select {{Menu|Table|AutoFormat}} and then press {{Button|Add}}. Provide a name for the new AutoFormat so you can find it later.
 +
 
 +
 
 +
 
 +
 
 +
== Creating nested tables ==
 +
 
 +
 
 +
You can create tables within tables. To achieve this, click in a cell of an existing table, and follow any method as described above to insert another table.
 +
 
 +
 
 +
[[Image:Writer-nested-table.jpg]]
 +
 
  
  
Here it is possible to choose between different predefined formats (different line types, cell colors, text format...).
 
  
If none of the predefined autoformats have the desired characteristics, it is possible to tune the format of the table or of a particular cell. This is accomplished either with the contextual toolbar "Table" that it is presented when the cursor is inside a table cell or with {{Menu|Table|Table Properties}} or with a right click Table. After that, it is possible to create your own AutoFormat: with the cursor inside the table {{Menu|Table|AutoFormat}} and then press {{Button|Add}} and provide a name to the new AutoFormat.
+
== Captioning a table ==
  
 
It is possible to assign a caption to a table, numbering it at the same time, with a right click → Caption.
 
It is possible to assign a caption to a table, numbering it at the same time, with a right click → Caption.

Revision as of 17:16, 10 October 2013

Template:Documentation/DraftPage


Creating and Customizing Tables

Template:Documentation/Note

There are two ways to insert a table in a Writer document:

  • Click on the Table Writer-table-icon.jpg icon in the Standard toolbar
  • Create a table through the Insert Table dialog box

Using the Table icon

  1. Place the cursor where you want the table to appear
  2. Click the arrow to the right side of the Table Writer-table-icon.jpg icon
  3. In the drop down grid, select the number of rows and columns for the table


ES-InsertarTabla.png


Using the Insert Table dialog box

To open the dialog box, select Table → Insert → Table or  Ctrl  +  F12  or left click the Table icon. From this dialog box you can:

  • Select the number of rows and columns of the table
  • Give a name to the table to later distinguish it in the Navigator
  • Select the Heading option to define the first row in the table as the heading
  • Select the Repeat heading option to repeat the heading row if the table spans more than one page
  • Select the Don't split table option to prevent the table from spanning more than one page
  • Select the Border option to surround each cell of the table with a border


AOO-InsertTableMenu.png


The  AutoFormat  button opens the following dialog box:


AOO-TableAutoFormat.png


From here it is possible to choose between different predefined formats.

If none of the predefined autoformats have the desired characteristics for your table, you can tune the format of the table or of a particular cell with the contextual Table toolbar. Open the toolbar by placing the cursor is inside a table cell or select View → Toolbars → Table. If you wish to save the formatting you just created, place your cursor inside the table, and select Table → AutoFormat and then press  Add . Provide a name for the new AutoFormat so you can find it later.



Creating nested tables

You can create tables within tables. To achieve this, click in a cell of an existing table, and follow any method as described above to insert another table.


Writer-nested-table.jpg



Captioning a table

It is possible to assign a caption to a table, numbering it at the same time, with a right click → Caption.


AOO-TableCaption.png


As shown in the screenshot it is possible to choose the numbering, the separator between number and text, and if the caption will be shown above or below the table.

With the  AutoCaption  button it is possible to set that all the inserted tables are automatically associated to a caption, while the  Options  gives the chance to define if the table number needs to reflect the chapter number, also. We will come back to this later.

It is important to note that the drop down menu "Category" can be edited. For example, if you want "Data" instead of "Table", you can click over the white box where the word "Table" is, and edit the text in the box to create another category

Number Recognition and Data Operations

By default, Writer tries to guess which kind of data you insert on a table and format the content accordingly. For example, if you insert "10/2" Writer will interpret it as a date and change it into "10/02/13" (the result may depend on your settings under Tools → Options → Language Settings → Languages → Locale setting). To disable this, go to Tools → Options → OpenOffice Writer → Table and under "Input in tables" disable "Number recognition".

With tables on Writer it is possible to operate with data introduced on cells, for example obtaining the sum over a column.

Documentation caution.png The operation you can do on a table on Writer are limited. If you need to perform complex calculations you need to use Calc instead. Remember that you can insert a Calc sheet on a Writer document as OLE object

TODO: talking about the Formula toolbar ( F2 ) and how to use it

Personal tools