MadCap Software Tutorials Guide: Product Foldout 3-Fold Template Flare 11 Copyright 2015 MadCap Software. All rights reserved. Information in this document is subject to change without notice. The software described in this document is furnished under a license agreement or nondisclosure agreement. The software may be used or copied only in accordance with the terms of those agreements. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or any means electronic or mechanical, including photocopying and recording for any purpose other than the purchaser's personal use without the written permission of MadCap Software. MadCap Software 7777 Fay Avenue La Jolla, California 92037 858-320-0387 www.madcapsoftware.com THIS GUIDE WAS CREATED USING MADCAP FLARE. CONTENTS CHAPTER 1 Introduction 5 CHAPTER 2 Content 7 Layout Modes and Style Mediums Replacing Images Need More Space? Variables CHAPTER 3 Page Layouts Page Layout Files Front Page Layout Back Page Layout CHAPTER 4 Images Insert and Resize Image Position Image CHAPTER 5 Styles Body Style Company Name Title First-Level Headings Second-Level Headings Body Text Company Info 8 9 11 12 13 14 16 26 33 34 36 37 38 41 43 45 48 50 54 Numbered and Bulleted Lists Example Applying Styles to Content APPENDIX PDF Guides iv 57 63 70 71 CHAPTER 1 Introduction The Product Foldout 3-Fold project template in Flare contains two topics and two page layouts designed to create a product foldout with three panes. It is ideal for brief product instructions. This template starts you out with two PDF targets, one with crop and registration marks and the other without. You can add other kinds of targets if you like. We're not going to attempt to explain every aspect of this template. Instead, we'll focus on some of the features and tasks that raise the most questions. 6 CHAPTER 2 Content Adding your own content to the Product Foldout 3-Fold template is relatively simple. There are just a few things to keep in mind. This chapter discusses the following: Layout Modes and Style Mediums Replacing Images Need More Space? Variables 8 9 11 12 Layout Modes and Style Mediums When you open a topic in the XML Editor, you may notice in the local toolbar that there are different modes for viewing the layout. In addition, you can switch to different style mediums to show the content with the correct styles applied. So if you open the Front or Back topic and it looks nothing like the page layout or the end result, you likely need to switch to the appropriate layout and medium. For best results with this template, you should view topics using the Print Layout mode with either the default or print medium. After you select these options, you should see the text on top of the page layout associated with it. Then you can simply replace the template text with your own content. 8 Replacing Images The images in this template were added in a few different ways. First, some images were added to the page layout. A couple were added to the background of the page layout, and some small logo images were inserted into footer frames. Adding a background image in a page layout is a good method if you want content to appear in front of the image (using it as a watermark), or if you have multiple body frames on the page and want the image to span across them. Here is how you can replace a background image: (1) Open the page layout, (2) open the Properties dialog for the page, and (3) on the Background tab you can replace the image with your own. You can also remove the background images altogether. For more, see "Page Layouts" on page 13. Another way that we added images was to insert them directly into the topics. In most cases, we used absolute positioning to click and drag the images where we wanted them, sometimes with content flowing around the image on multiple sides. You can use absolute positioning for content that is in the same body frame, even if there are multiple columns in it. However, you cannot use this method to span images across content in multiple body frames. CHAPTER 2│Tutorials Guide: Product Foldout 3-Fold Template 9 See "Images" on page 33. For more about absolute positioning, see the online Help. 10 Need More Space? You might find that you require more space to include all of the content that you want. In that case, you probably want to use one of the other Product Foldout templates that contains more panels (i.e., 4-Fold, 5-Fold, 6-Fold, 12-Fold). CHAPTER 2│Tutorials Guide: Product Foldout 3-Fold Template 11 Variables We used variables for the company name and the title of the foldout on the first panel. We also used them for company information (e.g., address) on the back of the foldout. Variables can be useful if you plan to use the same page layout for multiple outputs. For one target you can use the default definitions for the variables, and you can override the variable definitions for any of the other targets you might generate. For more about variables and overriding definitions in targets, see the online Help. 12 CHAPTER 3 Page Layouts Page layouts are used to configure the pages for print-based output and are especially important in this particular template because of its unique characteristics (e.g., multiple columns, images in the middle of columns, color and images that bleed off the page). This template comprises only two topics—one for the front of the product foldout and the other for the back of the foldout. We therefore created two page layouts—one to be associated with each topic. Following are the main tasks that we performed with the page layouts in this template. We recommend creating the page layout for the front of the product foldout first, then making a copy of that page layout and modifying it for the back of the foldout. This chapter discusses the following: Page Layout Files Front Page Layout Back Page Layout 14 16 26 Page Layout Files 1. Follow the steps for adding a new page layout file and give it a name (we called ours "Front"). When you create the page layout, select the Default template, because it is quite simple and requires fewer changes than other templates.For steps on adding page layouts, see the online Help. 2. Open the new page layout and delete the header frame at the top. 14 3. Click to save your work. The steps above are only for the "Front" page layout. Continue with the following sets of steps to complete the Front page layout. After you are finished, make a copy of that page layout. Then complete the next sets of steps for the "Back" page layout. By making a copy of the finished Front page layout, you will need to make fewer changes to the Back page layout. CHAPTER 3│Tutorials Guide: Product Foldout 3-Fold Template 15 Front Page Layout Complete the following sets of steps for the first page layout you create (in our case, the "Front" page layout). PAGE SIZE AND MARGINS 1. In the local toolbar of the Page Layout Editor, click . The Page Properties dialog opens. 2. Select the General tab. 3. Click the Page Size drop-down and select (custom). 4. In the Custom Width field, enter 15, and for the unit of measurement select Inch (in). 5. In the Custom Height field, enter 5, and for the unit of measurement select Inch (in). 6. Keep the Orientation field set to Portrait. 7. In all of the Margins fields, enter 0. Note: Of course, you can set some value for the margins on your page. However, in our template we chose to set them all to 0 and specify the margins on our CSS styles instead. 8. Click OK. 9. Click 16 to save your work. BODY FRAMES 1. In the Page Layout Editor, double-click the body frame. CHAPTER 3│Tutorials Guide: Product Foldout 3-Fold Template 17 The Frame Properties dialog opens. Note: An alternative is to simply click and drag the body frame, and its edges, until you have it placed just where you want it on the page. However, in this exercise, we'll use the Frame Properties dialog, because it's easier to get the precise size and position that you see in our template. 2. Select the Frame tab. 3. We want to set the size and position of the body frame so that it fits exactly on top of the page. So in the Size and Position section, click in the Width field, enter 15, and for the unit of measurement select Inch (in). 4. In the Height field, enter 5, and for the unit of measurement select Inch (in). 5. In the Padding section, click in the Left field, enter 10, and for the unit of measurement select Pixel (px). Note: This is optional; you can set it to 0 if you like. 6. In the rest of the fields on the tab, enter 0. 7. Select the Columns tab. 8. In the Count field, enter 3. 9. In the Gap field, enter 0. 10. Click OK. 11. Click 18 to save your work. BLEED 1. In the local toolbar of the Page Layout Editor, select View>Bleed. Now you can see the bleed area in the editor. CHAPTER 3│Tutorials Guide: Product Foldout 3-Fold Template 19 2. In the local toolbar of the Page Layout Editor, click . The Page Properties dialog opens. 3. Select the Print Marks tab. This lets us set the size of the bleed area. 4. In all of the fields, enter 0.25 and for the unit of measurement select Inch (in). Note: You can certainly keep the default setting of 0.50 in. We simply changed it in our template because 0.25 in is the industry standard. The most important thing to keep in mind is to make sure the bleed area is large enough. Ideally, it should be no less than 0.125 in. 5. Click OK. 6. Click 20 to save your work. FOOTER FRAME 1. In the Page Layout Editor, double-click the footer frame. (You may need to scroll down in the Page Layout Editor to find it if you started out with the Default page layout and then resized page as described above. You will see a small rectangle with the word "footer." That's the label at the bottom-right of the footer frame; double-click that.) The Frame Properties dialog opens. Note: An alternative is to simply click and drag the footer frame, and its edges, until you have it placed just where you want it on the page. However, in this exercise, we'll use the Frame Properties dialog, because it's easier to get the precise size and position that you see in our template. 2. Select the Frame tab. 3. In the Size and Position section, click in the Top field, enter 424, and for the unit of measurement select Pixel (px). 4. Click in the Width field, enter 1440, and for the unit of measurement select Pixel (px). 5. Click in the Height field, enter 44, and for the unit of measurement select Pixel (px). CHAPTER 3│Tutorials Guide: Product Foldout 3-Fold Template 21 6. In the Anchors section, click in the Bottom field, enter 12, and for the unit of measurement select Pixel (px). 7. In the rest of the fields on the tab, enter 0. 8. In the lower-right corner of the tab, click the left, right, and bottom arrow so that it looks like this: These anchors are useful in case you decide to resize the entire page at some point. When the page is resized, the footer frame will maintain its same distance from the left, right, and bottom edges of the page because they are anchored. 9. Select the Alignment tab. 10. Set the Vertical Alignment to Middle. Note: This is purely optional. You do not need to specify how content is aligned in the frame. In our template, we decided to align the content in the middle of the frame vertically. 11. Click OK. 12. The footer frame should now be repositioned and selected on the page. But we need to bring it up to the top level so that it's easy to work with and so that no content obscures the decoration images or page numbers that we'll place in the footer. So in the local toolbar, select Layout>Depth>Float To Top. 13. Now let's add content to the footer frame. With the frame selected, press F2 on your keyboard. 14. In the dialog asking if you want to insert a page number, click No. The Frame Editor opens at the bottom of the workspace. 15. Select the Table ribbon. 22 16. On the far left of the ribbon, click the face of the Insert Table button. The Insert Table dialog opens. 17. In the Number of columns field, enter 3. 18. In the Number of rows field, enter 1. 19. In the Number of header rows and Number of footer rows field, enter 0. 20. In the AutoFit Behavior section, select AutoFit to window, and in the field to the right select 100%. 21. In the Align field, select Center. 22. Click OK. 23. In the first column of the table, add content. In our template, we did the following: a. Insert three circle images in a row, each separated by a space (in our template, the image is named "FooterCircleBlack"). b. If necessary, resize the images you inserted. We resized ours to a maximum width of 30px.For more about resizing images, see the online Help. c. Apply a style to the paragraph in that cell. To do this, click in that cell, select the Table ribbon, click Cell Content Style, and select the style class. In our template, the style is named "p.FrameFooterImages." d. Align the content to the right of the table cell. You can do this by making sure the style applied to the paragraph has the text alignment set to the right. Alternatively, you can open the Home ribbon and click . 24. In the second column of the table, add content. In our template, we did the following: a. Type the number 2 to represent page 2. In our template, we did not use a page variable—like we would normally do in a page layout—because we're dealing with columns within a single page, rather than one page number per page. Besides, the product foldout only has six panes total, so typing the page numbers is not an issue. b. Apply a style to the paragraph in that cell. To do this, click in that cell, select the Table ribbon, click Cell Content Style, and select the style class. In our template, the style is named "p.FrameFooterText." The content should be aligned to the left of the table cell. CHAPTER 3│Tutorials Guide: Product Foldout 3-Fold Template 23 25. In the third column of the table, add content. In our template, we did the following: a. Type the number 3 to represent page 3. b. Apply a style to the paragraph in that cell. To do this, click in that cell, select the Table ribbon, click Cell Content Style, and select the style class. In our template, the style is named "p.FrameFooterText." c. Align the content to the right of the table cell. You can do this by making sure the style applied to the paragraph has the text alignment set to the right. Alternatively, you can open the Home ribbon and click 26. Click . to save your work. BACKGROUND IMAGE The circle decoration images are discussed in the section above on the footer frame. The following steps describe how we added a larger background image in the page layout. Flare allows you to add one background image to the entire page layout and one background image in each body frame. We added one image to the background of the page layout. We did this because we planned to use it as a watermark, appearing behind all of the content. As for the other large image on the front side of the product foldout (the one spanning the second and third columns), we inserted it directly into the topic and used absolute positioning to place it where we wanted it 24 (see "Images" on page 33). We did this because we planned to have content in the foldout wrap around the image, and this is the easiest way to accomplish that. Another thing to keep in mind with page layouts is the dots per inch (DPI) of images. For print-based output, you ideally want images with high DPI settings. A DPI of 300 is recommended if possible, but sometimes you need to use an image with a lower DPI so that you can display it at the right size. The best practice is to start out with a very large image with a high DPI. When it is added to the Page Layout Editor, it appears to shrink because you've told Flare to display it at 300 DPI (or another high DPI setting). The larger the DPI, the smaller it's going to be displayed in the Page Layout Editor and in the output. 1. In the local toolbar of the Page Layout Editor, click . The Page Properties dialog opens. 2. Select the Background tab. 3. In the Image section, click Browse and select the image you want to use for the page layout background. In our template, we selected an image named "Image1.eps" that we had already added to the Resources/Images subfolder in the Content Explorer. Click OK when you are done. 4. In the Repeat field, select No repeat. 5. In the Position section, click in the X field and enter -200px. This positions the image 200 pixels left horizontally. Note: It's not uncommon to play with different values in the Position fields until you get the image placed just where you want it. 6. Click OK. Because this image was set in the background of the entire page layout, and the image is larger than the page, it bleeds beyond the edge of the page. If instead we had set the image in the background of a frame, it would stop at the edge of that frame. 7. Click to save your work. CHAPTER 3│Tutorials Guide: Product Foldout 3-Fold Template 25 Back Page Layout Make a copy of the Front page layout and give it a name (we called our second page layout "Back"). After that, complete the following sets of steps for the Back page layout. BODY FRAMES 1. In the Page Layout Editor, double-click the body frame. The Frame Properties dialog opens. 2. Select the Frame tab. 3. In the Width field, enter 480, and for the unit of measurement select Pixel (px). 4. In the Height field, enter 480, and for the unit of measurement select Pixel (px). 5. In the Anchors section, click in the Right field, enter 960, and for the unit of measurement select Pixel (px). 6. In the rest of the fields on the tab, enter 0. 7. Select the Columns tab. 26 8. In the Count field, enter 1. 9. Click OK. You'll probably notice that the frame still has a background image. Don't worry about that right now; we'll fix that in the steps below for images. 10. Make a copy of that body frame. Then double-click it. The Frame Properties dialog opens. 11. Select the Frame tab. 12. In the Size and Position section, click in the Left field, enter 480, and for the unit of measurement select Pixel (px). 13. In the Width field, enter 10, and for the unit of measurement select Inch (in). 14. In the Height field, enter 5, and for the unit of measurement select Inch (in). 15. In the Padding section, click in the Left field, enter 10, and for the unit of measurement select Pixel (px). Note: This is optional; you can set it to 0 if you like. 16. In the rest of the fields on the tab, enter 0. 17. Select the Columns tab. 18. In the Count field, enter 2. 19. Select the Background tab. 20. In the Color section, select Solid. 21. Click in the Fill Start field and choose a color. In our template, that color has a hex number of 4E4D4E. (You can enter this hex number directly if you select More Colors from the drop-down.) 22. Click OK. 23. Click to save your work. CHAPTER 3│Tutorials Guide: Product Foldout 3-Fold Template 27 DECORATION FRAME 1. In the local toolbar of the Page Layout Editor, click the down arrow next to the New Frame button and select New Decoration Frame Mode. 2. Click on the page and draw a rectangle. It doesn't matter how big it is or where you draw it. 3. Double-click that frame. The Frame Properties dialog opens. 4. Select the Frame tab. 5. Set the fields as follows: SIZE AND POSITION Left 480 px Top -0.25 in Width 10.25 in Height 5.50 in 28 ANCHORS Right -0.25 in Bottom -0.25 in PADDING Left 0 Right 0 Top 0 Bottom 0 6. Select the Background tab. 7. In the Color section, select Solid. 8. Click in the Fill Start field and choose the color that matches the background of the body second body frame. In our template, that color has a hex number of 4E4D4E. (You can enter this hex number directly if you select More Colors from the drop-down.) 9. Click OK. 10. Now we just need to make sure that the decoration frame is behind the body frame. So click on the decoration frame in the Page Layout Editor. 11. In the local toolbar, select Layout>Depth>Sink To Bottom. 12. Click to save your work. CHAPTER 3│Tutorials Guide: Product Foldout 3-Fold Template 29 FOOTER FRAME 1. In the Page Layout Editor, select the footer frame and press F2 on your keyboard. The Frame Editor opens so that we can change the content in the three-column table. 2. In the first column of the table, replace the content if necessary. In our template, we kept two of the plain circle images, but we replaced the third one with a circular logo image (called "FooterLogoBlack" in our template). We also aligned the content to the left side of the table cell. You can do this by applying a style to the paragraph that has the text alignment set to the left. Alternatively, you can open the Home ribbon and click . 3. In the second column of the table, add content. In our template, we replaced the number 2 with 4 to represent page 4. Also, we applied a style named "p.FrameFooterTextDarkBackground" to this number to give it the look we wanted (e.g., green font). 4. In the third column of the table, add content. In our template, we replaced the number 3 with 5 to represent page 5. We also applied a style to it in order to give it the same look as the other page number, and we aligned the number to the right side of the table cell. 5. Click 30 to save your work. 6. We need to make sure the footer frame is on the top level so that it's easy to work with and so that no content obscures the decoration images or page numbers. So in the local toolbar, select Layout>Depth>Float To Top. CHAPTER 3│Tutorials Guide: Product Foldout 3-Fold Template 31 BACKGROUND IMAGE If you've been following the steps up until now—copying the Front page layout and making changes to it— you should see a background logo image, which we will replace with a different image of a Flare box. There is another image on the back side of the product foldout, which we inserted directly into the topic and used absolute positioning to place it where we wanted it (see "Images" on page 33). 1. In the local toolbar of the Page Layout Editor, click . The Page Properties dialog opens. 2. Select the Background tab. 3. In the Image section, click Browse and select the image you want to use for the page layout background. In our template, we selected an image named "Image3.png" that we had already added to the Resources/Images subfolder in the Content Explorer. Click OK when you are finished. 4. In the Position section, click in the X field and enter -30px. 5. In the Y field, enter -44px. 6. Click OK. 7. Click 32 to save your work. CHAPTER 4 Images The images in this template were added in a few different ways. Some images were added to the page layout. For more about that, see "Page Layouts" on page 13. Another way that we added images was to insert them directly into the topics. In most cases, we used absolute positioning to click and drag the images where we wanted them, sometimes with content flowing around the image on multiple sides. You can use absolute positioning for content that is in the same body frame, even if there are multiple columns in it. However, you cannot use this method to span images across content in multiple body frames.For more about absolute positioning, see the online Help. Following are the steps we used to insert and position one of these images into a topic. This chapter discusses the following: Insert and Resize Image Position Image 34 36 Insert and Resize Image 1. Open the Content Explorer and expand the Resources/Images subfolder. 2. Open the topic (in this example, we opened the Front.htm file). 3. In the Content Explorer click the image you want to insert into the topic (in this example, we chose Image2.png). Our Front.htm topic has a body frame with three columns, so we were able to drag and drop the image anywhere in the topic. If your topic has multiple body frames, make sure you drag the image to the body frame where you want it to be placed. 4. Resize the image. There are multiple ways to do this in Flare. In our template, we selected the image, then clicked the icon near the lower-right corner of the inserted image. Then we dragged up and to the left to reduce the size of the image. For more about resizing images, see the online Help. 34 5. Click to save your work. CHAPTER 4│Tutorials Guide: Product Foldout 3-Fold Template 35 Position Image 1. Right-click the image that you inserted, and from the context menu select Text Wrap>Square. 2. Click in the middle of the image and drag it to the desired location. Then drop it. 3. Click to save your work. Note: The image that we used in this example already has a good amount of empty space around its edges, which prevented the text from being displayed too close to it. Depending on the image (s) you want to use, you might consider adding space around the image (such as padding via a stylesheet). For more about adding padding to images, see the online Help. 36 CHAPTER 5 Styles To make sure our content looks good with the page layouts we created, we used styles. Following are the steps we followed for the different elements. This chapter discusses the following: Body Style Company Name Title First-Level Headings Second-Level Headings Body Text Company Info Numbered and Bulleted Lists Example Applying Styles to Content 38 41 43 45 48 50 54 57 63 70 Body Style First, we specified some settings on the body style in our stylesheet. We did this because all of the other styles inherit those settings. For example, we wanted most of the styles in our project to use an Arial font. Therefore, it does not make sense to specify Arial on every style. Instead, we specified Arial on the body style, and as a result, all other styles and style classes use it as well. However, we wanted to use Century Gothic as the font for a few styles, so we simply specified that particular font for those styles, overriding the inherited Arial setting. 1. Do one of the following: USE THE STYLESHEET EDITOR (BEGINNERS) a. Open your stylesheet. b. In the local toolbar, make sure the first button displays . If the button displays instead, then click it. c. In the upper-left of the editor, make sure the Show Styles field is set to . d. On the left side of the Stylesheet Editor, select the body style. e. From the Show drop-down list on the upper-right side of the editor, select f. Choose the settings shown in the following image (most of these properties should already be set by default): 38 . CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 39 GET THE CSS (ADVANCED USERS) Enter this in the stylesheet (other necessary properties are already using the default values): body { color: #404040; font-family: Arial; font-size: 8pt; line-height: 13px; margin: 8px; } 2. Click 40 to save your work. Company Name We created a style class called "p.ManualTitle1" to control the look of the company name on the first panel on the front side of the foldout. 1. Do one of the following: USE THE STYLESHEET EDITOR (BEGINNERS) a. Open your stylesheet. b. In the local toolbar, make sure the first button displays . If the button displays instead, then click it. c. In the upper-left corner of the editor, click in the Show Styles field and select . d. On the left side of the Stylesheet Editor, select the p style. e. In the local toolbar, click Add Class. f. Type a name for the new style class (we named ours "ManualTitle1") and click OK. g. From the Show drop-down list on the upper-right side of the editor, select . h. Choose the settings shown in the following image: CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 41 GET THE CSS (ADVANCED USERS) Enter this in the stylesheet: p.ManualTitle1 { column-break-before: always; font-family: 'Century Gothic'; font-size: 9pt; margin-bottom: 0; margin-left: 50px; padding-top: 80px; } 2. Click 42 to save your work. Title We created a style class called "p.ManualTitle2" to control the look of the foldout title on the first panel on the front side of the foldout. 1. Do one of the following: USE THE STYLESHEET EDITOR (BEGINNERS) a. Open your stylesheet. b. In the local toolbar, make sure the first button displays . If the button displays instead, then click it. c. In the upper-left corner of the editor, click in the Show Styles field and select . d. On the left side of the Stylesheet Editor, select the p style. e. In the local toolbar, click Add Class. f. Type a name for the new style class (we named ours "ManualTitle2") and click OK. g. From the Show drop-down list on the upper-right side of the editor, select . h. Choose the settings shown in the following image: CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 43 GET THE CSS (ADVANCED USERS) Enter this in the stylesheet: p.ManualTitle2 { color: #bed230; font-family: 'Century Gothic'; font-size: 22pt; line-height: 0; margin-bottom: 0; margin-left: 50px; margin-top: 0; } 2. Click 44 to save your work. First-Level Headings We used the standard h1 style to control the look of first-level headings when the background is light. In addition, we created a style class called "h1.DarkBackground" to control the look of first-level headings when the background is dark. CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 45 1. Do one of the following: USE THE STYLESHEET EDITOR (BEGINNERS) a. Open your stylesheet. b. In the local toolbar, make sure the first button displays . If the button displays instead, then click it. c. In the upper-left corner of the editor, click in the Show Styles field and select . d. On the left side of the Stylesheet Editor, select the h1 style. e. From the Show drop-down list on the upper-right side of the editor, select f. Choose the settings shown in the following image: g. With h1 still selected on the left, in the local toolbar click Add Class. h. Type a name for the new style class (we named ours "DarkBackground") and click OK. 46 . i. Choose the setting shown in the following image (the class inherits the other settings from the parent h1 style): GET THE CSS (ADVANCED USERS) Enter this in the stylesheet: h1 { column-break-before: always; font-size: 12pt; font-weight: normal; margin-bottom: 4px; margin-left: 20px; margin-right: 20px; margin-top: 20px; padding-top: 28px; page-break-before: avoid; } h1.DarkBackground { color: #e1e1e1; } 2. Click to save your work. CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 47 Second-Level Headings We use the h2 style to control the look of second-level headings when the background is light. 1. Do one of the following: USE THE STYLESHEET EDITOR (BEGINNERS) a. Open your stylesheet. b. In the local toolbar, make sure the first button displays . If the button displays instead, then click it. c. In the upper-left corner of the editor, click in the Show Styles field and select . d. On the left side of the Stylesheet Editor, select the h2 style. e. From the Show drop-down list on the upper-right side of the editor, select . f. Choose the settings shown in the following image (some of these properties should already be set by default): 48 GET THE CSS (ADVANCED USERS) Enter this in the stylesheet: h2 { font-size: 10pt; font-weight: normal; margin-bottom: 4px; margin-left: 20px; margin-right: 20px; margin-top: 16px; mc-heading-level: 0; } 2. Click to save your work. CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 49 Body Text We used several paragraph styles to control the various ways that body text appears in our template. First, we used the standard p style to control the look of regular body text when the background is light. Second, we created a style class called "p.BackPanel" to control the look of body text that needs special placement on the back panel of the foldout. And third, we created a style class called "p.DarkBackground" to control the look of body text when the background is dark. 50 1. Do one of the following: USE THE STYLESHEET EDITOR (BEGINNERS) a. Open your stylesheet. b. In the local toolbar, make sure the first button displays . If the button displays instead, then click it. c. In the upper-left corner of the editor, click in the Show Styles field and select . d. On the left side of the Stylesheet Editor, select the p style. e. From the Show drop-down list on the upper-right side of the editor, select . f. Choose the settings shown in the following image: CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 51 g. On the left side of the Stylesheet Editor, select the p style. h. In the local toolbar click Add Class. i. Type a name for the new style class (we named ours "BackPanel") and click OK. j. Choose the settings shown in the following image: k. On the left side of the Stylesheet Editor, select the p style. l. In the local toolbar click Add Class. m. Type a name for the new style class (we named ours "DarkBackground") and click OK. n. Choose the setting shown in the following image: 52 GET THE CSS (ADVANCED USERS) Enter this in the stylesheet: p { margin-bottom: 8px; margin-left: 20px; margin-right: 20px; margin-top: 8px; } p.BackPanel { column-break-before: always; color: #000000; margin-left: 10px; margin-top: 30px; } p.DarkBackground { color: #e1e1e1; } 2. Click to save your work. CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 53 Company Info We created a style class called "p.CompanyInfo1" to control the look of text that displays the company name on the back panel of the foldout. We also created a style class called "p.CompanyInfo2" to control the look of additional company information (e.g., address, website) that follows the company name on the back panel of the foldout. 54 1. Do one of the following: USE THE STYLESHEET EDITOR (BEGINNERS) a. Open your stylesheet. b. In the local toolbar, make sure the first button displays . If the button displays instead, then click it. c. In the upper-left corner of the editor, click in the Show Styles field and select . d. On the left side of the Stylesheet Editor, select the p style. e. In the local toolbar click Add Class. f. Type a name for the new style class (we named ours "CompanyInfo1") and click OK. g. From the Show drop-down list on the upper-right side of the editor, select . h. Choose the settings shown in the following image: i. On the left side of the Stylesheet Editor, select the p style. j. In the local toolbar click Add Class. k. Type a name for the new style class (we named ours "CompanyInfo2") and click OK. l. Choose the settings shown in the following image: CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 55 GET THE CSS (ADVANCED USERS) Enter this in the stylesheet: p.CompanyInfo1 { color: #000000; font-size: 7pt; margin-bottom: 0; margin-left: 10px; margin-top: 310px; } p.CompanyInfo2 { color: #000000; font-size: 7pt; margin-bottom: 0; margin-left: 10px; margin-top: 0; } 2. Click 56 to save your work. Numbered and Bulleted Lists We used the standard ol style to control the look of numbered lists. We used the standard li style to control the look of individual list items on a light background. And we created a style class called "li.DarkBackground" to control the look of individual list items on a dark background. We also used the standard ul style to control the look of bulleted lists on a light background. We also created a style class called "ul.DarkBackground" to control the look of bulleted lists when they appear on a dark background. Finally, we created a character-level class called "span.LightGreen" to control the look of the initial text at the beginning of list items. CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 57 1. Do one of the following: USE THE STYLESHEET EDITOR (BEGINNERS) a. Open your stylesheet. b. In the local toolbar, make sure the first button displays . If the button displays instead, then click it. c. In the upper-left corner of the editor, click in the Show Styles field and select . d. On the left side of the Stylesheet Editor, select the ol style. e. From the Show drop-down list on the upper-right side of the editor, select f. Choose the settings shown in the following image: g. On the left side of the Stylesheet Editor, select the li style. 58 . h. Choose the settings shown in the following image: i. On the left side of the Stylesheet Editor, select the li style. j. In the local toolbar click Add Class. k. Type a name for the new style class (we named ours "DarkBackground") and click OK. l. Choose the settings shown in the following image: m. On the left side of the Stylesheet Editor, select the ul style. n. Choose the settings shown in the following image: CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 59 Note: The image file shown in the list-style-image row (BulletDark.eps) is a file that we placed in the Resources/Images folder in our template. You can add a bullet image with a different name and point to that instead. o. On the left side of the Stylesheet Editor, select the ul style. p. In the local toolbar click Add Class. q. Type a name for the new style class (we named ours "DarkBackground") and click OK. r. Choose the settings shown in the following image: s. In the upper-left corner of the editor, click in the Show Styles field and select . t. On the left side of the Stylesheet Editor, select the span style. u. In the local toolbar click Add Class. v. Type a name for the new style class (we named ours "LightGreen") and click OK. w. Choose the settings shown in the following image: 60 GET THE CSS (ADVANCED USERS) Enter this in the stylesheet: li { margin-bottom: 6px; margin-top: 6px; orphans: 2; widows: 2; } li.DarkBackground { color: #e1e1e1; margin-bottom: 6px; margin-top: 6px; orphans: 2; widows: 2; } ol { list-style-image: none; margin-left: 60px; } CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 61 span.LightGreen { color: #bed230; font-weight: bold; } ul { list-style-image: url('../Images/BulletDark.eps'); margin-left: 60px; } ul.DarkBackground { list-style-image: url('../Images/BulletLight.eps'); margin-left: 60px; } Note: The image files shown for the ul and ul.DarkBackground styles (BulletDark.eps and BulletLight.eps) are files that we placed in the Resources/Images folder in our template. You can add bullet images with different names and point to those instead. 2. Click 62 to save your work. Example We created a style class called "p.ExampleHead" to control the look of the heading at the beginning of an example. We also created a style class called "p.ExampleMiddleSection" to control the look of the content after an example heading but before the end of the example. Finally, we created a style class called "p.Example" to control the look of content at the end of an example. 1. Do one of the following: USE THE STYLESHEET EDITOR (BEGINNERS) a. Open your stylesheet. b. In the local toolbar, make sure the first button displays . If the button displays instead, then click it. c. In the upper-left corner of the editor, click in the Show Styles field and select . d. On the left side of the Stylesheet Editor, select the p style. e. In the local toolbar click Add Class. f. Type a name for the new style class (we named ours "ExampleHead") and click OK. CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 63 g. From the Show drop-down list on the upper-right side of the editor, select h. Choose the settings shown in the following image: i. On the left side of the Stylesheet Editor, select the p style. j. In the local toolbar click Add Class. k. Type a name for the new style class (we named ours "ExampleMiddleSection") and click OK. l. Choose the settings shown in the following image: 64 . m. On the left side of the Stylesheet Editor, select the p style. n. In the local toolbar click Add Class. o. Type a name for the new style class (we named ours "Example") and click OK. p. Choose the settings shown in the following image: CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 65 66 GET THE CSS (ADVANCED USERS) Enter this in the stylesheet: p.Example { background-color: #bed230; border-bottom-color: #a4ac67; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: #a4ac67; border-left-style: solid; border-left-width: 1px; border-right-color: #a4ac67; border-right-style: solid; border-right-width: 1px; margin-top: 0; padding-bottom: 14px; padding-left: 20px; padding-right: 20px; padding-top: 6px; } CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 67 p.ExampleHead { background-color: #bed230; border-left-color: #a4ac67; border-left-style: solid; border-left-width: 1px; border-right-color: #a4ac67; border-right-style: solid; border-right-width: 1px; border-top-color: #a4ac67; border-top-left-radius: 6px; border-top-right-radius: 6px; border-top-style: solid; border-top-width: 1px; font-size: .9em; font-weight: bold; letter-spacing: 5px; margin-bottom: 0; margin-top: 6px; padding-bottom: 6px; padding-left: 20px; padding-right: 20px; padding-top: 14px; page-break-after: avoid; 68 } p.ExampleMiddleSection { background-color: #bed230; border-left-color: #a4ac67; border-left-style: solid; border-left-width: 1px; border-right-color: #a4ac67; border-right-style: solid; border-right-width: 1px; margin-bottom: 0; margin-top: 0; padding-bottom: 6px; padding-left: 20px; padding-right: 20px; padding-top: 6px; } 2. Click to save your work. CHAPTER 5│Tutorials Guide: Product Foldout 3-Fold Template 69 Applying Styles to Content Now that you've got your styles, you just need to apply them to the appropriate content. For more about applying styles to content, see the online Help. 70 APPENDIX PDF Guides The following PDF guides are available for download from the online Help: Accessibility Guide Key Features Guide Analyzer Guide Language Support Guide Autonumbers Guide Movies Guide Condition Tags Guide Navigation Links Guide Context-sensitive Help Guide Print-based Output Guide DotNet Help Guide Project Creation Guide Eclipse Help Guide Pulse Guide Getting Started Guide QR Codes Guide Global Project Linking Guide Reports Guide HTML Help Guide Reviews & Contributions Guide HTML5 Guide Search Guide Images Guide SharePoint Guide Importing Guide Shortcuts Guide Index Guide Skins Guide Snippets Guide Templates Guide Source Control Guide: Git Topics Guide Source Control Guide: Perforce Touring the Workspace Guide Source Control Guide: Subversion Transition From FrameMaker Guide Source Control Guide: Team Foundation Server Tutorials Guide: Product Foldout 3-Fold Template 72 Source Control Guide: Visual SourceSafe Tutorials Guide: Top Navigation Adv Template Styles Guide Tutorials Guide: Tripane and PDF Adv Template Tables Guide Variables Guide Tables of Contents Guide WebHelp Outputs Guide Targets Guide What's New Guide
© Copyright 2024