left menu mob button

New Video on YouTube:

You will never find time for anything. If you want time, you must make it. (Charles Buxton)


Danko Josic
(05.06.2020 1:08):

Thank you. Great help.

(Common Formatting of Several Tables)

(28.04.2020 20:50):

Это замечательно! Огромное спасибо за скрипт!!!

(Split Text By Paragraphs)

(25.04.2020 16:41):

Михаил, приветствую! Пример того, как создаются выпадающие списки стилей, можно посмотреть, например, в скрипте: eugenyus.rudtp.ru/ru/applyParStyleWithNextStyle Строки 3-19 - создание массивов, окна и выпадающего списка в этом окне; строка 30 - получение доступа к выбранному пользователем стилю после того, как была нажата кнопка выполнения. Там происходит обращение к абзацным стилям. Чтобы организовать список символьных стилей, нужно просто заменить везде в этих строках paragraph на character.

(Quick formatting)

Only The Necessary Information

(series of articles):

Exact Table Alignment

The script is a tool that expands the capabilities of formatting of table cells compared to the manual formatting. It allows you to specify the cell values, such as the insets, the width and the height, with increased accuracy. In addition, the changes are applied to each cell individually, relative to its original values. It is also possible to set the width of the columns for several tables the same.

Exact table alignment


Place the script in the "Startup Scripts" folder and restart InDesign. A menu item will be added to the "Table" menu and the context menu of the tables, which will call on the script window. If this does not happen after you restart the program, correct the script code yourself, as described in the article "The Acript Did Not Appear In the Menu, or One More Time About the Localization". If the problem persists, please use feedback.

Exact table alignment in Context Menu

If the script is not needed in the main menu, find and change the code lines that are marked with comments (it’s not difficult), and copy the script into the main folder that contains the scripts.

If the script does not appear in the menu...>>


The numbers in the script boxes are the increments, by which you need to change the values of certain parameters of the selected cells.

"Balance" does the same, as if you dragged an inside row or column edge while holding down the Shift button. That is, the edge moves within the selected two columns, while their total width does not change. If more than two columns are selected, the width of the leftmost (+/–) and rightmost (-/+) columns in the selected area will change. You may also set the equal width for the leftmost and rightmost columns in the selected area (or equal height for rows). To do this, just set the increment to 0 (zero) and press any of the execution buttons (up/down).

It is possible to measure the selected area of a table (the number of rows and columns, their total height and width).

More features:

Exact Table Alignment add 1 auto vertical fit of the text frame content to its bottom edge by changing the height of the selected cells;
Exact Table Alignment add 2 alignment of columns of several tables;
Exact Table Alignment add 3 fit the columns' widths to the text widths in these columns (let's call it "Fit Cell to Content").

The script does not block the work with the document, i.e. it is not necessary to close it after completion.

Update to the version 2.2 from 07.06.2016

The new features are added, which allow you to precisely fit the table width relative to the nearest-to-the-right text frame column by changing the width of one or several columns of the table.

To perform such a fit, you should place the cursor in any cell from the selected column, or select the cells of several columns whose width will be changed, and then press the new button:

Button for fitting to column edge

Button for fitting to column edge

Update to the version 3 from February 2017

In the new version, the functionality of all basic operations has been significantly expanded due to two important innovations.

Exact Table Alignment version 3

First innovation: now you can assign fixed parameter values to selected cells — both cell inset spacing and width/height.

For the cell inset spacing, an option has been added that allows setting and simultaneously changing the same increment value in one click.

If this option is enabled, when you change the value of any increment for cell insets, other boxes will receive the same value. When you apply this to the selected cells, the values of all insets will change by the specified amount.

If, in addition, the new option "Fixed" is enabled, then the cell insets will get fixed values specified in the respective boxes.

Second innovation: the ability to work separately with empty cells and separately with cells containing text.

At the same time, you can choose which empty/non-empty objects — cells or columns/rows — will be affected at this moment.

fix and proportionality

These two new options make it much easier and faster to get the desired result when the table is used, for example, as a tool for creating flow-charts:

Exact Table Alignment version 3 example 1

Exact Table Alignment version 3 example 2


The main difference between working with balance and working with column width (or row height) is that, when you change the cell size with the balance, the total size of the table does not change (except for one case, see table below).

The table below shows how the balance now works depending on the options selected.

Balance work result with different parameters

Exact Table Alignment version 3 balance

Menu embedding

The algorithm for adding to the menu has been redesigned so that the embedding now takes place regardless of the version and localization of InDesign. Read more about localization in the article "Localized menu: the adventure continues". Read about installing the script above (section "Installation")

Corrections and other improvements

Exact Table Alignment add 1 Vertical alignment at the bottom of the text frame Now, before executing, the script checks and warns if the bottom edge of the frame is not aligned with the bottom margin of the page.
Exact Table Alignment add 3 Fit column widths to text widths If a part of the table is outside the frame (in overset), the script does not stop working as before, but works with the available cells, after which a warning is displayed in the script window that some of the cells are in overset.
Exact Table Alignment add 4 Alignment relative to the nearest column edge on the frame Fixed a bug, due to which the script stopped working and knocked down the units of measurement of the script in the case when the text in the cells of the selected columns was in overset.


Comments: 2

Олег (03.07.2019 10:52) E-mail
http://skrinshoter.ru/s/030719/2iSZwT56?a Вообще не работает. Версия 14.0.2 х64
Admin (03.07.2019 20:40) E-mail
Олег, вероятно, Вы используете одну из предыдущих версий скрипта. Скачайте, пожалуйста, ещё раз скрипт. Я только что проверил — под этой версией он работает.