Writing Portfolio

Tab Leaders (Part 5): Fixed-Width Floating Tabs/Spacers

Published By: InDesignSecrets.com
Credit: Byline
Canonical URL

Although I had planned to make part 5 the last in this se­ries, a read­er ques­tion prompt­ed me to push the tips and tricks out a week and cov­er an­oth­er top­ic this week.

After read­ing the first few “Tab Leaders” in­stall­ments, read­er Tom asked:

I would like to add words to a text frame and hit tab and know that the space is al­ways a de­fined amount, say 5mm, re­gard­less of how long the pre­ced­ing word was. Is it pos­si­ble to set this up with­out hav­ing to set a load of in­di­vid­ual tabs? For ex­am­ple: word(tab 5mm) long word(tab 5mm) longer word(tab 5mm) longest word

Because text in InDesign fol­lows a hor­i­zon­tal ruler, and tab­stops are linked to ab­solute po­si­tions on that ruler, there re­al­ly isn’t a way to set a float­ing tab of con­stant width. The end points of tab­stops are fixed, you see, while the be­gin­nings are de­ter­mined by pre­ced­ing text. However, there is a way you could fake it–probably a few ways, but here’s one.

  1. Using the Rectangle tool, click and re­lease on the pasteboard–don’t click and drag, click and re­lease. Up will pop the Rectangle di­a­log, which al­lows you to pre­cise­ly spec­i­fy the di­men­sions of the rec­tan­gle (see Figure 1). Set the rec­tan­gle to 1mm wide by 1mm deep and click OK. (I know you want 5mm, but trust me.)

Figure 1

  1. Switch to the Selection Tool and se­lect your new rec­tan­gle. It prob­a­bly has a de­fault ap­pear­ance of black stroke and emp­ty fill. Swap that by press­ing SHIFT+X to make the tiny box eas­i­er to see. If you want even high­er vis­i­bil­i­ty, fill it red or ma­gen­ta; the fill is on­ly tem­po­rary regardless.
  2. With the rec­tan­gle still se­lect­ed, open the Text Wrap palette/panel from Window > Text Wrap. Choose the Wrap Around Bounding Box wrap style and set the top and bot­tom out­set val­ues to 0 while mak­ing the left and right out­sets 2mm (see Figure 2). Also make sure that Wrap To is set to the de­fault of Both Right & Left Sides (oth­er­wise, text to one side of the box or the oth­er will drop be­low the box).

Figure 2

  1. On the Object Styles pan­el (Window > Object Styles), cre­ate from, and ap­ply to, the lit­tle box a new styled named some­thing like “5mm Spacer.”
  2. Now, copy the spac­er box, and, switch­ing to the Type tool, paste it di­rect­ly in­to text at the po­si­tion where you’d like your 5mm-wide space. Make sure that you don’t have spaces or tabs be­fore or af­ter the in­sert­ed box. As you see in Figure 3, the di­vi­sion be­tween words is now ex­act­ly 5mm–1mm box + 2mm left out­set + 2mm right out­set = 5mm.

Figure 3

  1. Finally, re­turn to the orig­i­nal box still on the paste­board and se­lect it once again with the black ar­row Selection tool. Change its fill to None, and then up­date the style with the Redefine Style com­mand on the Object Styles’ panel’s fly­out menu. All the in­stances of the spac­er box with­in text will up­date to re­flect the change, emp­ty­ing their fills to leave you with fixed-width, float­ing spaces.

Why, you might ask, didn’t we just cre­ate a 5mm box and be done with it? Why com­pli­cate the mat­ter by adding a text wrap? Where some may see su­per­flu­ous com­pli­ca­tion, I see fu­ture­proofed simplicity.

Are you ab­solute­ly pos­i­tive you’ll nev­er want to ad­just those fixed-width, float­ing spac­ers in your doc­u­ment to be 4mm wide or maybe 10mm? If you re­ly on the phys­i­cal di­men­sions of the box to de­fine the width of your spac­er, then you must man­u­al­ly re­size each and every in­stance in the event that you need more or less space. Object styles can’t store or af­fect phys­i­cal di­men­sions. Conversely, mak­ing the rec­tan­gle a min­i­mal width, just large enough to grasp with the Selection tool, and then set­ting its width via a for­mat­ting at­tribute like Text Wrap out­set does en­able you to al­ter the width of all ob­ject in­stances by chang­ing the ob­ject style.

If your fixed-width, float­ing spac­ers need to be changed to 4mm wide, ed­it the ob­ject style and change the left and right out­sets to 1.5mm each; if you need 10mm spac­ers, make those out­sets 4.5mm each. Use the text wrap out­sets to con­trol the width, down to ze­ro val­ues, which leave you with the spac­er box’s own 1mm width. If you need nar­row spaces than that, don’t use this tech­nique. Instead, use some of the spe­cial spaces on the Type > Insert White Space menu.

Next week in the fi­nal, fi­nal seg­ment in this se­ries, I’ll prof­fer those promised ad­di­tion­al tips and tricks for work­ing with tabs, lead­ers, and nest­ed styles that are too small for their own posts but def­i­nite­ly too big to miss.