Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

10. Making text disappear

From: InDesign: 10 Things to Know About GREP

Video: 10. Making text disappear

What if you want some of your text to be visible, some of the time and then sometimes you want it hidden? Well, InDesign CS4 has a cool feature called Conditional Text. And you can find that in the Conditional Text panel by going to the Window menu choose Type & Tables and then choose Conditional Text. I am going to create a new condition in here by clicking on a New Condition button. And then I'll just name this condition which speech. How about that? Click OK and it shows up here. And I could apply that condition to each one of these pieces of text, by selecting it and then clicking on it and then going to the next line and next line but that would be really, really, really tiresome.

10. Making text disappear

What if you want some of your text to be visible, some of the time and then sometimes you want it hidden? Well, InDesign CS4 has a cool feature called Conditional Text. And you can find that in the Conditional Text panel by going to the Window menu choose Type & Tables and then choose Conditional Text. I am going to create a new condition in here by clicking on a New Condition button. And then I'll just name this condition which speech. How about that? Click OK and it shows up here. And I could apply that condition to each one of these pieces of text, by selecting it and then clicking on it and then going to the next line and next line but that would be really, really, really tiresome.

Instead, I want to apply it quickly and the best way to do this is with a Find/Change. But because some of these are First Inaugural and some are Second Inaugural and some have no First or Second before them. The only good way for me to do that is with a GREP expression. So what I'll do is I'll open the Find /Change dialog box with Command+F or Ctrl+F on Windows. Let's bring this up a little bit. And I'm going to make sure I'm in the GREP tab and I'm going to look for one or the other thing. Let's say it might start with First, it might start with Second, I don't really know. It might just start with Inau. So I'll just start with any of those. It's going to start with one of those and then it's going to be one or more characters.

Let's say the period and then plus. One or more characters and it's going to always end with the word Address. So why don't I just say ress in here? That will probably grab it. In fact, I'm also going to grab the comma afterward. And all of those things First, Second, or Inaugural Address followed by a comma I want to have a condition applied to it. So I can do that down here in the Change Format field. I'll just click anywhere down in that field. Switch over to the Conditions pane and then turn on which speech. So which speech condition will be applied to anything that matches that. Let's try it out. Click Change All. Went to the document almost instantaneously. Click Done and we can see that all of these now have little blue underlines. It's blue because that's the color of this particular condition. All right. So now it's visible, but to make it invisible all we have to do is Turn Off the Condition and they all disappear. All right.

Let's try another cool trick for how to make text disappear that doesn't involve Conditional text. In this case, I'm going to go through and look for all the words that say Saturday and I'm going to abbreviate them Sat. I don't know if I would really want to do this particular thing to this document. But let's say that's what my art director told me to do, so I'm just following directions. Saturday should be Sat. I'm not going to truly get rid of the urday, but I want to hide it. I could do it with Conditions, but I'm going to show a different kind of fun little trick that you might be able to use for this sort of thing or any other time that you want text to disappear.

I am going to do this with GREP Styles. So in the future, if I ever type Saturday it will automatically update and abbreviate. And I'll do that by double-clicking on List of dates. All of these have the List of dates, Paragraph Style applied to it. And I'm going to add a GREP Style to it. And the GREP Style is going to simply look for that text, the urday. So I'll type that in urday. But it's only going to find it if it's after the Sat. So I better put a Match, Positively Lookbehind Sat, something like that. Okay, Saturday but it's going to find the urday. So what do I want to do with that. I want to make it disappear. So I better make a Character Style that makes text disappear. I'm going to call this the disappear Character Style and here is how I make text disappear in InDesign. I'm going to set the Size of this text to 1. Really tiny. All right. I'm going to go to the Advanced Character Format and I'm going set the Horizontal Scale to 1%. So really tiny and very, very, very narrow. It's almost completely gone now. But there is one more thing I would like to do and that is set the Character Color to None. It will fill it with none. And something that's filled with none, you simply cannot see it at all. That is going to make it completely disappear.

Because the Preview checkbox is turned On, I can see that immediately all of my Saturdays have become abbreviated Sat. The urday is gone. Click OK. And we can test this out. I'm going to select this word Thursday and change it to Saturday and I'll type the letters, but as soon as I type the Y it disappears. Because the text really is there, but it's disappeared with our GREP Style. Disappearing text isn't something you need to do everyday but when you need it GREP Styles and the GREP Find and Change are there for you.

Show transcript

This video is part of

Image for InDesign: 10 Things to Know About GREP
InDesign: 10 Things to Know About GREP

12 video lessons · 6317 viewers

David Blatner
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed InDesign: 10 Things to Know About GREP.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.