is now part of CreativePro.com!

Making Labels that Disappear Later

4

I had a need recently to type out a bunch of data (like name, code number, price, and so on). It wasn’t enough work to warrant building a database (in my opinion), and I didn’t have a database handy anyway. But the problem was that I was forever forgetting what text should come next. That is, was price after name? Or SKU? I needed labels! But I didn’t want those labels to appear when I exported the text, or formatted the text later.

Here’s the solution I came up with: Numbered Lists. Sounds weird, but it works great.

First, I built a character style called “label” and set it to a blue Courier so that it’d be obvious that it’s a label. Next, I made a paragraph style called “name” that had had a numbered list in its definition. But (and here’s the key to the whole trick) I changed the Number field from the default value of “^#.^t” (which means: put a number followed by a period followed by a tab) to the label I wanted to use — in this case “Name:^t”

labels1

When I apply this to my first paragraph, the label magically appears:

labels2

Then, for each additional label, I would:

  1. Create a new paragraph style, based on “name”
  2. Change the “Number” field in the Bullets & Numbering pane to reflect the label I wanted to apply.
  3. Click OK
  4. Edit the previous style so that the Next Style pop-up menu is set to the next one. For example, for the name style, I chose code as the Next Style. On the last label, I set the Next Style back to the first label (so it would repeat indefinitely).

When I was done, I had a labeling machine!

labels3

Best of all, I could even type in Story Editor! While the label doesn’t appear on the document page until you actually type one or more letters, the Story Editor shows you the label (because of the style name). This acts as a prompt to remind me which to type next. See also Anne-Marie’s revelation that the “numbering” appears in story editor.

labels4b

But the best part of all is that the lables could be visible or not, depending on what I wanted. If I want to hide all the labels, I change the “name” paragraph style definition so that it no longer has auto numbers. Because all the other labels are based on that one, all the other labels hide, too.

If I want export the story as RTF or TXT (or XML), the labels all disappear, and I end up with just the data. (Or, if I wanted the labels in there for some reason, I’d first have to select all the text and choose Convert Numbering to Text from the context menu.)

Can you think of any other ways you might use labels or non-regular “numbers”?

David Blatner is the co-founder of the Creative Publishing Network, InDesign Magazine, CreativePro Magazine, and the author or co-author of 15 books, including Real World InDesign. His InDesign videos at LinkedIn Learning (Lynda.com) are among the most watched InDesign training in the world.
You can find more about David at 63p.com

Follow on LinkedIn here
  • Wa Veghel says:

    Now that is using a function in a way you would never think of! Very smart. Same way, I use tables for a grey box behind a paragraph, not as intented but using a function in a ‘smart’ way to achieve something else.

  • Klaus Nordby says:

    Gee, David, that’s pretty creative — hats off! Very nifty, and yes, the idea might have other uses.

    I’m glad to find you still can do other things besides talk-ing-ing-ing about . . . damn XML. ;-) But now that’s mercifully over with, you can return to InDesign!

  • Peter Gold says:

    You can use these styled text labels for special paragraph types like “Note:,” and “Warning:”

  • >