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

Can script be used to add a row at the beginning and end of the table and apply styles?

Enthusiast ,
Apr 12, 2021 Apr 12, 2021

Copy link to clipboard

Copied

Due to work needs, I often need to add the word "continuation table" to the first line of a long table. I need to set the unit style of the first line as "tab con", the accurate line height is 5mm, the upper and lower space is 0mm, and the left and right space is 0.5mm, and apply the paragraph style "con-p".

 

In addition, I also need to set the last row end of the table, apply the "tab tail" L cell style, the exact row height is 1.06mm, and apply the paragraph style tail-p (this may not be necessary, because the row height is too small).

 

Can these two be implemented by script?

The file is here

 

4-12-2.jpg

TOPICS
Bug , Feature request , How to , Import and export , Performance , Scripting

Views

146

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

correct answers 1 Correct answer

Community Expert , Oct 20, 2021 Oct 20, 2021

Votes

Translate

Translate
Community Expert ,
Oct 20, 2021 Oct 20, 2021

Copy link to clipboard

Copied

Hi dublove,

this could be done without scripting as well. Here we go:

 

[1] Add an additional header row to your table.

[2] Use the "Continued" text in the first header row.

Use "Industry", "Current" etc.pp. in the second header row.

[3] Add you usual header row as the first body row to the table.

 

[4] In the Table options you can skip the first frame or you can skip the first column for all header rows.

The result is this:

 

TableWithContinuedHeaderRow.PNG

 

From:

TableOptions-SkipFirst-DISABLED.PNG

 

To Skip the First Frame or Text Column:

TableOptions-SkipFirst-ENABLED.PNG

 

My sample document from InDesign 2021 can be downloaded from my Dropbox account:

https://www.dropbox.com/s/j9mm1kefjak13oj/TableWithContinuedHeaderRow-2021.indd?dl=1

 

Regards,
Uwe Laubender

( ACP )

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 ,
Oct 20, 2021 Oct 20, 2021

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