Setting different columns width as a style
Learn / Forums / General InDesign Topics / Setting different columns width as a style
- This topic has 11 replies, 7 voices, and was last updated 6 years, 7 months ago by Rombout Versluijs.
-
AuthorPosts
-
-
April 23, 2014 at 8:36 am #68080Iza GleiMember
Hi All
I created a table that has 8 Columns in different width, I want to create a style for the columns width.
Can I create a table style for that table setting, if yes how to set the style?
or maybe there is different way for this table setting?I will appreciate any help
Thanks
-
April 23, 2014 at 7:46 pm #68083Tom PardyMember
Rather than create a style, how about creating a “template“ table with the column widths you want but with just one row or, if you want specific headers, just a header row and one “normal” row? The cells can be left blank. Perhaps this table could then be saved as a snippet or a library item. Then, whenever you want the table, insert the snippet or library item and begin to fill your cells. When you are in the last cell of the row, just hitting Tab will create a new row below.
Alternately, if you always use the table with a set number of rows, give it that many rows when you create the snippet. There may be other features that are always used when you use this table, such as the contents of particular cells. These too could be incorporated into your “template”. -
April 24, 2014 at 3:26 am #68084Iza GleiMember
I am not sure, but how exactly I can create a “template” table?
My second question, How I can apply the newly created “template” table on new table that copied or placed in the frame?Thanks
-
April 24, 2014 at 8:13 pm #68093Tom PardyMember
It is a public holiday where I am (Anzac Day) so my brain is not running at peak efficiency. But here goes. Without seeing the data you are using, I am guessing a little. But here is what I would do. This is my work-around for the problem:
In an empty page, create a text frame of the width you want your table to be. Then, within that text frame, create a table with only one row and with the number of columns you want. If you plan to have a header row as well, you can set this up at the same time using the Table/Insert Table… menu command. Then adjust the widths of the columns to those you want. Give the table whatever other features you know (or expect) you will need whenever you use it in the future. This is then your “template” table.
I figured that the most efficient way to use this “template” table is to save it as an ordinary InDesign document (.indd), perhaps giving it a title that allows you to identify it quickly, such as “Six-column data table.indd”. Then, whenever you need that particular table format, open the “template” document, select the table, copy it and then, in the document where you want it to be, paste it in. The data can then be copied and pasted, or simply typed, into the cells as needed.
This work-around does NOT give you a table style to be applied to another table. However, if you are importing another table from elsewhere (or rather, using the data from another table) and therefore know the number of rows, you can do this:
1. Copy and paste your “template” table as above.
2. Increase the size of your newly-pasted table to the desired number of rows using the Table/Table Options/Table Setup… dialog box.
3. Select the contents of your other table and copy.
4. Select all the cells of your new table and paste.The data should then appear in the new table but retain the column widths that you have established.
Let me stress that this is a work-around. It is not pretty, but it works. I will be delighted if some other contributor comes up with a better solution.
-
April 25, 2014 at 4:31 am #68094Iza GleiMember
Thanks for the solution, but I can’t use this method, I need to find a way to save the table column width as a style.
Thanks again for the entire help. -
April 25, 2014 at 6:04 am #68095David BlatnerKeymaster
Sorry, table and cell styles cannot “remember” size information.
-
May 1, 2014 at 4:31 am #68245Masood AhmadParticipant
It seems to be a limitation. There must be some ways to save Tables as styles with all the information including size,width, height, number of rows and columns.
@Adobe, please make a note of it.
-
May 1, 2014 at 5:48 am #68246Dwayne HarrisMember
@Masood: I don’t know if Adobe checks out these forums, and thus will make a note of it.
I think it needs to be submitted to Adobe as a feature request.
-
July 25, 2017 at 12:15 pm #96356Rombout VersluijsMember
2017 and tables styles are still a joke! Do we really need to redo tables if we need to adjust the width. How about doing 200pages adjusting the width!!!! pfffff
Does anybody know a trick? My idea was object style and do something about the warning i would get if the table is to wide
-
July 25, 2017 at 12:51 pm #96359Kai RübsamenMember
Rombout, if you have 200 pages, you would normally use a script for this task. There are several scripts available that can control the table inside a textframe and also the width of different columns.
-
July 25, 2017 at 2:46 pm #96360David BlatnerKeymaster
As Kai said: there are scripts, several of which are available on this site. Search for “script table width” and you’ll find a bunch.
For example:
https://creativepro.com/sizing-tables-with-script.php -
July 25, 2017 at 4:31 pm #96364Rombout VersluijsMember
okay guys thanks! But still wondering why after 7 years this is not implemented, imean some items are. But very need items like this still need to be done by scripting, thats weird, isnt it???
-
-
AuthorPosts
- You must be logged in to reply to this topic.