The first line is the header, can you use the table style and cell style to automatically realize that the left and right lines are empty and the top and bottom lines are bold?
The first one in the figure below is implemented automatically, and the left and right headers are not empty (this is not what I want).
The second is the effect I want, which is to manually set the left and right lines of the meter head to 0 on the basis of the first one.
Note: The first line must be the header
Copy link to clipboard
Put a table border in the Table Style settings that matches the top and bottom rules.
For the header and body Cell Styles, change the rule setting.
For example, for the header:
Do the same for the body cell style.
Below is an example of a one-click Table Style.
Here is the link to the InDesign file if you want it: https://1drv.ms/u/s!AoUnkZfvAJFlqOVScaFKLB3pE7_E1A?e=gcr0k2
… and if I want a 1-point black stroke between columns!
(^/) The Jedi
The body rows can be automated with the table style and a first/last column cell styles.
The header row needs cell styles applied to the first and last column cell(s). Not much of an issue since the header automatically repeats if the table flows on multiple pages.
The ID file has been updated with the modifications.
You know I know how to build a table and I think for a very long time that this is a game for scripting and true automation that will make simpler things and do them in 1 click, maybe even you have hundreds of tables and thousands of cells.
I would prefer using Table and Cell styles for global updates of the formats. Certainly having a script to automate the five clicks would be helpful (apply style, select first header cell and apply cell style, select last header cell and apply cell style). Of course, there would be more clicks if a footer is involved.
Scripting can make just about anything in ID easier. If you have a script, feel free to post it.
In the header part, both the leftmost line and the rightmost line need to be set manually?
Yes, but just with a simple click on a Cell style.
Sure! … but 500 tables = 1,000 simple clicks on a cell style! 😉
That's why I prefer to play it by script! … But I agree: not automatic even if the user just needs 1 click!
Where are you coming up with the larger number of tables? No one is arguing that a script would be more efficient for a large number of tables, but I don't see that mentioned in the OP's posts.
If you have a script solution--post it. Unless you are just trying to drum up business for your services...
I just mention the "time" limits of manual treatments!
… and simplistically (quickly typing), the user could just need, instead of 1,000 clicks:
app.activeDocument.stories.everyItem().tables.everyItem().leftBorderStrokeWeight = app.activeDocument.stories.everyItem().tables.everyItem().rightBorderStrokeWeight = 0;
This problem can only be improved by adobe.
The form should be controlled in three parts:
[I let you play until now! ...]
… So reading this thread, there could be apparently 4 ways to handle this question (fixing it or not):
• Using existing InDesign functionalities and your own current skills. But it seems too "fringe" for you!
• Using the line of code I gave ("fast and furious").
• Waiting for Adobe!
• … The 4th way: an immediate and free course on "How-To-More-Deeply-Use-InDesign-Table-Feature!"! [I'm not a trainer (and definitely not interested about that). I've just updated the .indd doc shared. All is in the table-cells parameters!]
Can script realize the following functions
Set the first row of the table as the header,
Add a new row in the front, apply the "continuation table" cell style, and set the minimum row height to 5mm. I'm going to put the word "continuation form" in it.
Next, add a new row at the end of the table, and set its exact row height to the minimum value (1.058mm), bottom border to 0.3mm, and convert to the end of the table.
The minimum height of other lines: 7.6 mm。
Apply “mytab” table style to the whole table。
Take a look at Fridnge's example. It's built more efficiently than my original quick example.
I saw it. Thank you very much~
It's true that there are experts in the world
amazing, my God
hm, for the "continue" issue you could use a function in the table style.
It would allow to skip header rows in the first text frame or the first text column where the table is running through.
From my German InDesign 2021 on Windows 10:
A table is running through several text frames. Only on the second frame and the next frames after the second one the two header rows are visible. In the first frame you simply can put in the header's contents to the first body row of the table. The yellow rows are header rows, the white ones are all body rows:
There is a control for skipping all the header rows in the first frame or first column of a table:
( ACP )