• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

is there a table style I can create where all columns and rows are the same size in a file

Explorer ,
Nov 20, 2024 Nov 20, 2024

Copy link to clipboard

Copied

is there a table style I can create where all columns and rows are the same size in a file

TOPICS
Experiment , How to

Views

72

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2024 Nov 20, 2024

Copy link to clipboard

Copied

Table menu > Distribute Rows Evenly and/or Distribute Columns Evenly

TableStyles and CellStyles do not have the ability to control absolute physical size.

Mike Witherell

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Nov 20, 2024 Nov 20, 2024

Copy link to clipboard

Copied

But Javascript can simplistically imagine a gateway! … So 1 click!  😉

 

/*
    _FRIdNGE-0769_Width-HeightThroughTableStyle.jsx
    Script written by FRIdNGE, Michel Allio [20/11/24]
*/

var myDoc = app.activeDocument;
var myTables = myDoc.stories.everyItem().tables.everyItem().getElements();
var T = myTables.length,  t;
for ( t = 0; t < T; t++ ) {
    // "TableStyle_1" and "TableStyle_2" are Table Style Names:
    if ( myTables[t].appliedTableStyle.name === "TableStyle_1" ) {
        myTables[t].cells.everyItem().width = 8;
        myTables[t].cells.everyItem().height = 22;
    } else if ( myTables[t].appliedTableStyle.name === "TableStyle_2" ) {
        myTables[t].cells.everyItem().width = 16;
        myTables[t].cells.everyItem().height = 9;
    }
    // and so on! ...
}
alert( "Done! ...")

 

Capture d’écran 2024-11-20 à 17.03.26.png

 

 

 

Capture d’écran 2024-11-20 à 17.07.03.png

 

(^/)  The Jedi

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 20, 2024 Nov 20, 2024

Copy link to clipboard

Copied

I'm not sure how to install javascript into indesign

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 20, 2024 Nov 20, 2024

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines