A few days ago one of our customers, who publishes documents in 30-40 different languages, contacted me about a problem they were having with their product catalog.
Within these documents they use a label (like the one you see in the image below) to indicate new products.
The word "New" when translated into other languages might take up more space (in Italian, for example, "New" is "Nuovo"). Consequently, any time this customer downloaded a document in a new language from Redokun, they had to manually modify these labels to make them fit the new language.
Imagine having to make this change in 30, 40 or 50 products for 30-40 languages. That is the type of job you don't want to be doing in InDesign.
The final result
They wanted to automate this task. Every time the text changed, the label had to adapt.
InDesign is an amazing piece of software. Every shape you place in a document can be converted into a text box.
So, I tried to:
- Create a label shape;
- Transform the shape into a text-box by clicking on it with the "Type tool";
- Activate the text-frame's
Auto-Sizingoption so that the text-box could automatically enlarge and adapt to its content (more on this later).
Unfortunately, the result was not the best.
With this method, when the text inside the label changed, the label adapted in width. But with this solution, I was facing the issue that is highlighted in the image above. The right side of the label didn't stay consistent when the text-box width changed.
I had to come up with a new solution. And luckily, this proved successful.
So here is how I solved the issue, and how you can re-create the same label:
- Create two shapes (a rectangle and a triangle);
- Transform the rectangle to an auto-sizing text-box;
- Anchor the triangle to the rectangle.
Easy right?! Let's see the process step-by-step.
- The first step is to split up the more complex shape into two different objects.
This will allow you to make sure the text-box adapts its width automatically and at the same time, the corner will maintain the correct shape.
Now we have to transform the rectangle into a text-box and then set-up the text-box so it adapts its width automatically when the text it contains changes.
- Select the
Type tooland click on the rectangle. This will transform your rectangle into a text-box.
At this point, I'd suggest you place some text inside and to apply the correct formatting to the text. In my case, I want it to look like this.
- Right-click on the rectangle and select
Text Frame Options.
- Click on
Auto-Sizeon the top of the pop-up.
The last step is to anchor the triangle to the text-box and make sure that it moves every time the text-box changes its width.
- Select the triangle.
- At the top, you can see a little blue square. Press the "Alt" key and click on the little square, now drag the square into the text-box. As soon as the mouse pointer meets the text-box, you'll see a black line that will follow your movements. That black line indicates where you are placing the anchor. Make sure to place it after the text.
When you let the click go, InDesign opens a new pop-up. This pop-up allows you to adjust how the anchored object (the triangle) should behave when the text-box changes size or position.
- Let's change the options. (A) Set
Custom. (B) In
Anchored Objectchange the
Reference pointso that InDesign will use the left-center point of the triangle. (C) In
Anchored Positionchange the
Reference pointso that InDesign will use the right-center point of the rectangle to position the triangle. (D) Change both the options for X and Y to
0 mm, in this way, the triangle will be attached to the text-box. (E) Finally, activate
Prevent Manual Positioningto make sure nobody can manually change the position of the triangle.
If you pay attention to the image above, you'll notice that the triangle is cutting away a bit of my text. To change this, we have to add some space on the right side of the text-box.
You can do this by changing the
Right Indent, in my case, I'll add 1 mm.
InDesign is an amazing tool, full of functionalities that can help you simplify and automate most of your daily tasks.
As you probably noticed from the example in this post, discovering all the features and learning how to use them correctly might save you a huge amount of time.
Nowadays, there are a lot of great, cheap (below US$100) options for learning InDesign. Here is a list of my favorite InDesign courses that you can use right away to improve your skills!