Tables¶
A table in Alekh is one object made of rows and columns of cells. Use it for a rate list, a price board, a school timetable, a menu card or the order of events on a wedding card. Each cell holds text, and can have its own fill and borders.
Tables are made with the Table tool in the toolbox and the Table menu. When a table is selected, its settings are on the property bar.

Making a table¶
Drawing a table¶
- Choose the Table tool in the toolbox.
- On the property bar, set the number of Rows and Columns, from 1 to 100. A new table has 3 of each unless you change them.
- Drag on the page to the size you want.
Making a table of an exact size¶
- Go to Table ▸ Create New Table….
- Type the Rows, Columns, Width and Height.
- Click OK. The table is placed in the middle of the page, and the Table tool is chosen so you can start typing.
Note
In Create New Table, Width and Height are in pixels (px), whatever units the document uses. One millimetre is about 3.78 px, so a table 150 mm wide is 567 px. You can also make it any size and then type the width and height in the document's units on the property bar.
A new table has black borders 1 px wide round every cell, and no fill.
Typing in cells¶
- Choose the Table tool.
- Click a cell and type.
- Press Tab to go to the next cell, or Shift+Tab to go back. Tab in the last cell adds a new row at the bottom.
- Press Esc when you have finished.
While you type in a cell, the property bar shows Cell text with the text settings: font, size, bold, italic and the rest. They work as for any other text. See Text.
Cells take Hindi, Marathi and the other Indian scripts like any text. Print merge fields such as «Name» work in cells too: see Print merge.
Selecting cells¶
With the Table tool:
- Drag across cells to select them. The selected cells are highlighted.
- Table ▸ Select All Cells selects every cell in the selected table.
Many commands work on the selected cells: fills, borders, alignment, merging, and inserting or deleting rows and columns. Changes to the font, size, bold and italic on the property bar, and to the text colour in the Text panel, go to the text of all the selected cells.
Changing row heights and column widths¶
- With the Table tool, drag a line between two rows or two columns to move it.
- To give rows the same height, select cells in those rows and choose Table ▸ Distribute ▸ Rows Evenly.
- To give columns the same width, select cells in those columns and choose Table ▸ Distribute ▸ Columns Evenly.
Select cells in at least two rows or two columns before you distribute.
To make the whole table bigger or smaller, select it with the Pick tool and drag its handles, or type its W and H on the property bar. The text keeps its size.
Adding and deleting rows and columns¶
Table ▸ Insert adds a row or column next to the selected cells:
| Command | Where the new row or column goes |
|---|---|
| Row Above | Above the selected cells. With no cells selected, at the top of the table. |
| Row Below | Below the selected cells. With no cells selected, at the bottom. |
| Column Left | Left of the selected cells. With no cells selected, at the left edge. |
| Column Right | Right of the selected cells. With no cells selected, at the right edge. |
Table ▸ Delete ▸ Rows deletes the rows that have selected cells in them. Table ▸ Delete ▸ Columns deletes the columns. Select the cells first. A table always keeps at least one row and one column.
You can also change Rows and Columns on the property bar. Rows and columns are added or taken away at the bottom and the right.
Note
Taking rows or columns away on the property bar deletes their cells and the text in them. Edit ▸ Undo brings them back.
Merging and splitting cells¶
Merge cells to make one big cell across several rows or columns, for a title row or a heading over two columns.
- With the Table tool, drag across the cells to merge.
- Go to Table ▸ Merge Cells (Ctrl+M).
The cells become one. To split a merged cell back into its cells, select it and go to Table ▸ Split Cells. Split Cells only works on a cell that was merged.
Fills, borders and alignment¶
Filling cells¶
Select the cells, then click a colour in the palette. Click the × swatch at the top of the palette to take the fill away.
While you are typing in a cell, a palette colour goes to the text instead.
Borders¶
- Select the cells.
- On the property bar, choose which Borders to change: All, Outside, Inside, Top, Bottom, Left or Right.
- Type the border Width. Type 0 for no border.
- To colour the borders, right-click a colour in the palette.
For example, for a rate list with lines only between rows, select all the cells, choose All and type 0, then choose Bottom and type 1.
Text alignment and margin¶
With cells selected, the property bar has:
- Align left, Center and Align right, for the text across the cell.
- Top, Middle and Bottom, for the text down the cell.
- Margin: the space between the cell's edges and its text. It applies to the whole table.
Font for the whole table¶
When the whole table is selected, with no cells selected, the property bar's font and Size set the text of the whole table.
Table menu commands at a glance¶
| Command | Shortcut | What it does |
|---|---|---|
| Create New Table… | Makes a table with the rows, columns and size you type. | |
| Insert ▸ Row Above, Row Below, Column Left, Column Right | Adds a row or column. | |
| Delete ▸ Rows, Columns | Deletes the rows or columns of the selected cells. | |
| Distribute ▸ Rows Evenly, Columns Evenly | Gives the selected rows the same height, or the selected columns the same width. | |
| Merge Cells | Ctrl+M | Joins the selected cells into one. |
| Split Cells | Splits a merged cell back into its cells. | |
| Select All Cells | Selects every cell. | |
| Break Table Apart | Ctrl+K | Turns the table into ordinary objects. |
| Convert ▸ Table to Text… | Turns the table into paragraph text. | |
| Convert ▸ Text to Table… | Turns text into a table. |
Most of these are also buttons on the property bar when a table is selected: Merge cells, Split cells, Insert row below, Insert column right, Delete rows and Delete columns.
Turning text into a table¶
If you already have the list as text, for example a rate list copied from a message, Alekh can turn it into a table. Each line becomes a row.
-
Type or paste the text, with the cells of each row separated by tabs or commas:
Card, One side, Both sides 300 gsm art card, ₹ 250, ₹ 400 Matt laminated, ₹ 450, ₹ 650 -
Select the text with the Pick tool.
- Go to Table ▸ Convert ▸ Text to Table….
- Choose how the columns are separated in the text: Commas, Tabs, or User defined and type the character, such as
|or;. - Click OK.
Each column is as wide as its widest text. The text keeps its font, size and other formatting.
Note
Text to Table works on one artistic or paragraph text. It doesn't work on text along a path, or on text that flows through linked frames.
Turning a table into text¶
- Select the table.
- Go to Table ▸ Convert ▸ Table to Text….
- Choose what goes between the cells of each row: Commas, Tabs, Paragraphs (every cell on its own line), or User defined and type the character.
- Click OK.
The table becomes paragraph text as wide as the table, with one paragraph for each row. The formatting of the text is kept.
Breaking a table apart¶
Table ▸ Break Table Apart (Ctrl+K) turns the table into a group of ordinary objects: a rectangle for each cell's fill, a paragraph text for each cell's text, and lines for the borders. They are placed exactly where the table was.
Do this when you need to change one part of the table in a way the table can't, for example a different outline style on one border. After breaking it apart, it is no longer a table: you can't add rows or merge cells any more.