home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Komunik / Amaya / WinNT2000 / amaya-WindowsNT-4.3.exe / _SETUP.1 / Tables.html < prev    next >
Encoding:
Extensible Markup Language  |  2001-02-22  |  5.6 KB  |  146 lines

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6.   <title>Editing Tables</title>
  7.   <meta name="GENERATOR" content="amaya V4.2.2" />
  8.   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  9. </head>
  10.  
  11. <body xml:lang="en" lang="en">
  12.  
  13. <table border="0" width="100%" summary="toc">
  14.   <tbody>
  15.     <tr>
  16.       <td><p><img border="0" alt="W3C" src="../../Icons/WWW/w3c_home" /> <img
  17.         border="0" alt="Amaya" src="../Icons/amaya.gif" /></p>
  18.       </td>
  19.       <td><p align="right"><a href="Changing.html" accesskey="p"><img
  20.         alt="previous" border="0" src="../Icons/left.gif" /></a> <a
  21.         href="Manual.html" accesskey="t"><img alt="top" border="0"
  22.         src="../Icons/up.gif" /></a> <a href="Math.html" accesskey="n"><img
  23.         alt="next" border="0" src="../Icons/right.gif" /></a></p>
  24.       </td>
  25.     </tr>
  26.   </tbody>
  27. </table>
  28.  
  29. <div id="Editing">
  30. <h2>Editing tables</h2>
  31.  
  32. <p>There is no separate table editor in <strong>Amaya</strong>. A table is
  33. simply a structure described by the HTML DTD and it is edited as such. The
  34. same commands apply to tables as to other HTML structures, with a few
  35. additional ones.</p>
  36.  
  37. <h3><a name="Creating">Creating a new table</a></h3>
  38.  
  39. <p>When activating the table button <img src="../Icons/table.gif"
  40. alt="Table button" /> or selecting the <strong>Table</strong> entry from the
  41. <strong>Types</strong> menu, Amaya displays a dialog box which allows you to
  42. specify the initial number of rows and columns for the new table, as well as
  43. its border. If you have done that by mistake, just click the
  44. <strong>Cancel</strong> button. To create a new table at the current position,
  45. click the <strong>Confirm</strong> button. Amaya will then generate something
  46. like the following table (3 columns and 2 rows in that case):</p>
  47.  
  48. <table border="1" summary="table">
  49.   <caption>I</caption>
  50.   <tbody>
  51.     <tr>
  52.       <td></td>
  53.       <td></td>
  54.       <td></td>
  55.     </tr>
  56.     <tr>
  57.       <td></td>
  58.       <td></td>
  59.       <td></td>
  60.     </tr>
  61.   </tbody>
  62. </table>
  63.  
  64. <p>The space above the table is reserved for the caption. The caret is
  65. automatically put in this caption, so that you can enter its contents
  66. immediately. You can also delete it if you don't need a caption.</p>
  67.  
  68. <p>The new table contains empty cells. You can click on any of them and insert
  69. text, images, and so on. You can also move the caret from cell to cell with
  70. the arrow keys.</p>
  71.  
  72. <h3><a name="Adding">Adding a new column</a></h3>
  73.  
  74. <p>New columns can be created very efficiently with the <a
  75. href="Creating.html#L906">Enter key</a>. Move the insertion point to the end
  76. or the beginning of a cell (for example at the end of Cell 1.1 in the table
  77. below). By pressing the Enter key twice (the first keystroke creates a
  78. paragraph in the current cell) you create a new cell and its corresponding
  79. column, as shown below:</p>
  80.  
  81. <table border="1" summary="table">
  82.   <caption>Caption</caption>
  83.   <tbody>
  84.     <tr>
  85.       <td>Cell 1.1</td>
  86.       <td>I</td>
  87.       <td>Cell 1.2</td>
  88.       <td>Cell 1.3</td>
  89.     </tr>
  90.     <tr>
  91.       <td>Cell 2.1</td>
  92.       <td></td>
  93.       <td></td>
  94.       <td></td>
  95.     </tr>
  96.   </tbody>
  97. </table>
  98.  
  99. <h3><a name="Adding1">Adding a new row, a new tbody</a></h3>
  100.  
  101. <p>To create a new row, press Enter three times when the insertion point is at
  102. the end of the last cell of a row (in Cell 1.3, for instance). You can also
  103. select the row by <a href="Selecting.html#Selecting1">pressing the Esc key (on
  104. Unix platforms) or F2 key (on Windows platforms)</a> and pressing Enter only
  105. once.</p>
  106.  
  107. <p>To create a new <code>tbody</code>, press Enter four times (or three times
  108. if the cell is empty) and one time more to create a new paragraph after the
  109. table.</p>
  110.  
  111. <h3><a name="Removing">Removing a column</a></h3>
  112.  
  113. <p>There is no specific command to create a new column. When you create a new
  114. cell, Amaya generates the corresponding new column. When you delete a cell in
  115. a column that becomes empty, Amaya deletes the column automatically. But there
  116. is a specific command (Delete table column) to delete a column, even if it's
  117. not empty. This command is located at the end of submenu
  118. <strong>Table</strong> of menu <strong>Types</strong>.</p>
  119.  
  120. <h3><a name="Adding2">Adding something after a table</a></h3>
  121.  
  122. <p>Many element types can be included within table cells. For that reason,
  123. Amaya could misunderstand what you want to do when you select an element type
  124. (eg. clicking H1, H2, etc. or selecting an entry in the menu Type) while a
  125. table component is selected. When you want to create an element after the
  126. table, you have to select the whole table (check the current selection in the
  127. bottom line of the window) and press the Enter key. Amaya will generate a
  128. paragraph after the table. This new paragraph can be transformed if
  129. needed.</p>
  130.  
  131. <p><em>Note that the table model implemented
  132. in</em><strong><em>Amaya</em></strong><em>is the</em><a
  133. href="../../TR/REC-html40"><em>HTMLá4.0</em></a><em>model. This includes
  134. features such as multiple bodies (</em><code><em>tbody</em></code><em>),
  135. header (</em><code><em>thead</em></code><em>) and footer
  136. (</em><code><em>tfoot</em></code><em>).</em></p>
  137. </div>
  138.  
  139. <p align="right"><a href="Changing.html"><img alt="previous" border="0"
  140. src="../Icons/left.gif" /></a> <a href="Manual.html"><img alt="top" border="0"
  141. src="../Icons/up.gif" /></a> <a href="Math.html"><img alt="next" border="0"
  142. src="../Icons/right.gif" /></a></p>
  143. <hr />
  144. </body>
  145. </html>
  146.