Skip to main content
Inspiring
July 27, 2008
Question

Table style that keeps column width

  • July 27, 2008
  • 5 replies
  • 5885 views
I have irregular column widths that need to be part of a table style. Does anyone know of a script that would incorporate the irregular column widths in a table (preferable) or cell style?
This topic has been closed for replies.

5 replies

Participant
June 1, 2015

Just in case someone might find it useful, I modified ramkumar.vp's script to use relative widths. Works great with InDesign CS4; haven't tested with any other versions.

GitHub Gist

blockstation
Known Participant
February 1, 2017

Is there a was to use also absolute widths instead of relatives?

For example i would like to have the 2 column tables set to relative 10/50 and all 3 column tables to absolut 5mm, 7mm and 9mm.

I like the way Nathans Script defines the widths at the end of the script - really easy to edit and useful.

Also i am looking for a way to use this script (with a dialog box) on the whole document or the actual selection or the actual table.

Community Expert
February 1, 2017

See also Gerald Singelmann's AutoSpalte 2 script:

Set table-columns numerically II | InDesign FAQ

Regards,
Uwe

Inspiring
January 8, 2010

Has anything changed since this was posted in 2008? -- wondering if there is a script that would keep the column width as part of a table style in InDesign CS4, or if there is any way of implementing that in InDesign.

Jeremy_bowmangraphics-DQuh1B
Inspiring
January 9, 2010

As far as I know, table styles do not specify column widths. It is easy to write scripts that create tables with specific column widths, but you might also consider the following technique:

1. Make a new paragraph style with tab stops at positions that correspond to the desired column widths.

2. Convert table to text, apply the above paragraph style, then convert text back to table. The columns should be where the tab stops were.

3. Apply the table style of your choice. Because table styles do not specify column widths, the columns keep the specified widths.

Inspiring
January 17, 2010

Jeremy,

Thanks  -- Your technique works fine, and it's good to know about your clever workaround. However, a script would be faster. I'm not knowledgable enough to create one -- are there any scripts that would set the column widths?

Inspiring
July 28, 2008
For Mac.
Inspiring
July 28, 2008
For MAC

-----Original Message-----
From: Robert_Tkaczyk [mailto:member@adobeforums.com]
Sent: Sunday, July 27, 2008 5:26 PM
To: adobe.scripting.indesign@adobeforums.com
Subject: Re: Table style that keeps column width


A new message was posted by Robert_Tkaczyk in

InDesign Scripting --
Table style that keeps column width

for PC or MAC ??

robin

--
www.adobescripts.com


------------------------------------------------------
View/reply at
Replies by email are OK.
Use the unsubscribe form at
to
cancel your email subscription.
Known Participant
July 27, 2008
for PC or MAC ??

robin

--
www.adobescripts.com