Adobe InDesign: Libraries vs. Snippets

Actually, this isn’t a contest of which is better; I just used the whole “versus” thing to lure you in. Libraries have been around for years in page layout as a way to keep commonly used elements in one easy-to-grab place. Snippets are the new kids on the block, and by using Snippets you’re not required to keep everything in one place. The beauty of this is that there’s room for both in your design world. So let’s take a look at how they work.

STEP 1 Create a Document with Content on the Page
As with most InDesign tutorials, we need a document to get started. You can either open an existing document or create a new one. Either way, you’re also going to need some content on the page. We’re going to use one of the InDesign templates that ships with the application. You can too by choosing Create New from Template on the Welcome Screen (under the Help menu).

STEP 2 Create a New Library
We’re using the Brochure.indt file from the Hotel templates folder. With the document open, it’s time to create a new library file in which to store the content. Choose New>Library from the File menu. By default, InDesign will want to name this new library “Library.” You should choose a name that represents what you’re going to be putting into each library you create. Perhaps name the library after the client or project you’re working on, then save it wherever you like, and click OK.


PHOTO CREDITS: ©ISTOCKPHOTO/Skyline: JOHN W. DEFEO/Beds: TONY TREMBLAY/Pool: ADIVIN/Table: ALDRA

STEP 3 Add Something to the Library
After creating the library, a new panel will appear with the name you assigned to your library in Step 2. This is your library document. It’s important to note that libraries are not tied to the document you’re currently working on.

One way to add something to the library from your page is to drag it into the Library panel. Choose the Selection tool (V), select the logo on the right side of the trifold in the brochure template, and drag it into the Library panel.

STEP 4 When It’s Not Convenient to Drag-and-Drop
It won’t always be convenient to drag something into the Library panel, depending on how big your selection is. Also, because Libraries can contain more than just text and graphics (e.g., you may want to include guides), it may be easier to add items from the Library panel itself. Click-and-drag with the Selection tool to select everything in the middle part of the brochure. Then, click the New Library Item icon at the bottom of the Library panel. This will add the items you selected to the library all as one item.

STEP 5 Name Your Library Item
When you add a linked or embedded image to a library, InDesign simply gives the library item the same name as the linked or embedded image. However, when you add multiple items to the library, InDesign doesn’t know what to call them. Having a bunch of “Untitled” library items can become unwieldy, so let’s name this item. Double-click on it in the library and when the dialog appears, you can name the item and even give it a description. Then click OK.

STEP 6 Put Library Entries to Use
The whole point of creating a library and putting things into it is so you can use them in future documents or even throughout the existing document. Create a new document by choosing New>Document from the File menu. Our document is similar in layout to the brochure but it doesn’t have to be.

STEP 7 Drag from Your Library
As you might have suspected, when you created your new document, the library stayed open and on top, and now you can drag-and-drop from the library to your new document. We’re going to drag the logo from the library to the new document. You can drag as many copies out as you need. If the library item was a linked graphic in the original document, it will be a linked graphic in the new document. Libraries don’t actually store the graphics—they link to them.

STEP 8 Place Your Items
Using drag-and-drop is common when working with libraries, but sometimes you’ll want the item to be placed on the page in the exact location it was in the original document. In this case you can use the Place Item(s) command, which will attempt to place the contents on the page using the original coordinates of the library item (as long as the general layout of the new document is the same as the original document). Control-click (PC: Right-click) on the library item and choose Place Item(s).

STEP 9 Use List View
As you put more and more items in the library, it probably won’t be feasible to constantly scroll up and down looking for things by their thumbnails. So if you did a good job naming your library items, you can grab them quickly by using List View. To switch to List View, choose it from the Library panel’s flyout menu. Everything else will work the same. Your library file is a document, so you can close it now and open it in the future whenever you need it.

STEP 10 What about Snippets?
Think of snippets as library items without the library. Snippets were introduced in InDesign CS2 and, of course, are in InDesign CS3 as well. To create a snippet, use your Selection tool and select something on the page.

STEP 11 Export Your Snippet
The most structured way to create a snippet is to use the Export command from the File menu, because this will allow you to name your snippet and choose where to save it. In the Export dialog, make sure that your Format is set to InDesign Snippet. Name it, choose where you’d like to save it, and then click Save.

STEP 12 Yes, You Can Drag It out of InDesign
As I said, exporting snippets is more structured, but not necessarily the best way in all cases. You can also drag the selected items from your InDesign page directly to your desktop, a folder in your operating system, or an open window in Bridge. This will create a snippet in that location. If you drag it into a Bridge window as we did here, then you’ll see a nice preview of the item and, of course, you can rename the snippet in Bridge CS3.

STEP 13 Drag Your Snippet onto the Page
Now go back to that new document you created and drag your snippet onto the page from Bridge or from the folder in your operating system.

STEP 14 Place Your Snippets
Drag-and-drop from Bridge is cool, but it’s not efficient unless you have multiple displays. So just like any other content in Bridge, you can place snippets into InDesign from Bridge using the Place command from the Bridge File menu. You can also place snippets using the Place command in InDesign.

Visitor Comments »

 

When creating a library is there a reason aside from organizational purposes to save elements as text, image, structure, etc? For example I can double click on a library item I have saved as “text” and instantly change it to a PDF even though it is not really a PDF. This doesn’t change the file or file size does it? Just another way to stay organized in libraries?

 

Comment by Ryan | April 16, 2008 @ 10:11 am

 

No difference, other than simply another way to help organize your Library items.

 

Comment by Scott Citron | April 18, 2008 @ 8:49 am

 

one advantage of snippets over libraries is that you can view the snippet in bridge but the library only looks like the icon from bridge. To view the library you have to be in InDesign.

 

Comment by Diane Collins | April 25, 2008 @ 9:12 pm

 

When I create graphic objects in InDesign + drag them into a Library, where exactly are they saved?

Also, what would happen if I deleted one of the original graphic objects from the document?

 

Comment by Karen | August 10, 2008 @ 3:48 pm

 

@Karen: I’m not sure where the objects are actually saved.

But for your second question, if you delete an object in your library from the original document you created it it, the object still exists in your library. However, you do have to watch out for library objects that include links to other files…if those files are deleted or otherwise modified, your object linked to those files will no longer work.

 

Comment by Adam | August 17, 2008 @ 4:53 pm

 

I have discovered that, if the object is embedded in the original InDesign document they were exported (or saved) from, then it will be imbedded in the snippet or library files. If the object is linked in the original document, the snippet or library item will also be linked to the original location. Also, associated styles will be imbedded also.

My personal experience with libraries is that they can become corrupt, however it is nice to have all the elements in one list. The advantage with snippets, is that they are visible from Bridge, however they are single separate elements, harder to organize or share.

 

Comment by Susan | October 19, 2008 @ 9:50 am

 

Think ill just stick to the library, Snippets do the same thing really.

 

Comment by Harto | October 28, 2008 @ 11:20 pm

 

The graphics in the library and the snippet are stand alone, they create references and even after deleting the original matter you can place the instance of that through the library and snippet right. all the matter and the links to the graphics are intact.

 

Comment by prashant | November 4, 2008 @ 1:29 am

 

I was wondering if you edit an image or text file in the library does it effect all files that it is placed in? I have several documents that use the same images and text and i want to be able to edit them all with one step.

 

Comment by Katie | November 5, 2008 @ 8:19 pm

Pingback by Tutorials for Wed., Nov. 19th « Graphic and Information Design | November 30, 2008 @ 11:13 am

 

Some of you mentioned that the library can store an embedded picture. How can you embed a placed picture in InDesign?

 

Comment by Luvlee | May 1, 2009 @ 4:55 pm

 

From the Links panel, choose to Embed Link.

 

Comment by Trish | May 24, 2009 @ 2:24 pm

 

[...] Deuchler pointed out an old Terry White article about using libraries versus snippets that should be [...]

 

Pingback by InDesignSecrets » Blog Archive » This Week in InDesign Articles, Number 5 | July 25, 2009 @ 6:44 am

Leave us a comment

Comments RSS | TrackBack URI

Back to Top

 
 
Advertisement
Creative Suite Tutorials
  1. Photoshop Photoshop
  2. Illustrator Illustrator
  3. Indesign Indesign
  4. Dreamweaver Dreamweaver
  5. Fireworks Fireworks
  6. Premiere Premiere
  7. Flash Flash
  8. After Effects After Effects
  9. Lightroom Lightroom
  10. Acrobat Acrobat

Get the latest tips, tricks and news delivered straight to your inbox.

From our Partners
Subscribe to Layers Magazine
 
 
 
  • Back to the Layers Magazine Homepage
  • Creative Suite Tutorials
  • Layers Magazine
  • Reviews on top products
  • Layers Magazine Reader Forums
  • Subscribe to Layers Magazine