\begindata{text,17820888} \textdsversion{12} \template{help} \define{global } \chapter{LookZ: Customize Styles in a document} \section{What LookZ is} \leftindent{LookZ is the tool you use to create and change the styles in a document. Every document has some standard styles available -- \bold{Bold}, \bold{Italic}, \bold{Center}, and so forth. You can use LookZ to create new styles: double-spaced styles, styles that set the left and right margins, styles that set different tab positions, and others. You can then place these styles on pieces of text in your document. With LookZ, you can also change the attributes of the styles in a document. Changing style attributes changes the way that a style formats the text to which it is applied. For example, the \bold{Section} style on the \italic{Title} menu card has the attributes Bold, Left flush and a font size that is two points larger (+2) than the bodyfont of the document. With LookZ, you could change these attributes and your changes will apply to all text in the document which has the \bold{Section} style. The changes you make with LookZ remain in effect each time you edit the same document. If you want style changes in other documents, you have to use LookZ for each of those documents. In this way, you can store a customized set of styles for each document that you write. It is also possible to use LookZ to create and edit templates, which can be used to establish styles and style changes for a whole series of documents. See the \italic{\helptopic{templates}} help document for more information. \flushleft{\bold{Note: }}You cannot use LookZ to add styles to selected pieces of text. To do that, you must use EZ. For details about using styles to format text, see the \italic{\helptopic{ez}} or \italic{\helptopic{styles}} help documents. This help document is composed of the following sections: }\leftindent{\leftindent{ Starting LookZ Changing style attributes What the attributes mean Adding styles to your menus Warnings/Bugs Pop-Up Menu Meanings Program Author Related Tools } }\section{Starting Lookz} \leftindent{ To start Lookz, place the text caret in the text of your EZ document. Then, choose the \bold{Edit Styles} menu option from the \italic{File} menu card in EZ. \bold{Parts of LookZ. } LookZ appears as a rectangle that contains a series of boxes. There are three boxes in the top row. The small box on the left contains the icon. The middle box,\bold{ menu card}, lets you choose the name of the menu card whose styles you want to edit. When you click the left button on the name of a menu card, the name is darkened and the styles contained on that menu card are displayed in the right box. For example, you can click on "Title" to see the styles listed in the Title menu card. These include Chapter, Section, Paragraph, and other styles. Use the option to edit the default styles in your document. The right box, \bold{name on menu card}, lets you choose a particular style and display its attributes. When you click the left mouse button on one of the styles displayed here, its attributes are displayed in the bottom three rows of boxes. The attributes that apply to the style are darkened. For example, you can click on "Section" to display the attributes for the Section style, which include Bold, Left flush, and +2. The "global" style under the menu card controls the overall style of a document. By changing it, you can readily change your entire document to use a different font, be double-spaced, or to have different margins.} \section{Changing style attributes} \leftindent{ When the attributes of a style are displayed in the bottom three rows of boxes, you can change them. \leftindent{ \bold{To add an attribute:} click on an undarkened attribute. This darkens the attribute and associates it with the style name. \bold{To remove an attribute:} click on a darkened attribute. This undarkens the attribute, meaning that it no longer applies to the style name. } To show the effects of changed styles, choose \bold{Update Document} from the menus. Your document redisplays to show the effects of the style changes you have made. Note that using \bold{Update Document} has exactly the same effect as redisplaying the window by any other means. (In other words, if you change some style, say Quotation, to mean bold and then redisplay some text that is marked as a Quotation, the text will be bold even if you have not yet chosen UpdateDocument.) } \section{What the attributes mean} \leftindent{ Below is a listing of the attribute boxes and their functions. \bold{font }contains the attribute for the font family used in your document. There are three choices: \leftindent{ \italic{Andy} is a serif font. \italic{AndySans} is a sans serif font. \italic{AndyType} is a typewriter-style, fixed width font. (When you choose this, you must also choose "Fixed Width" from the Enable box.) prompts for a font family name. Sometimes available are the names: char, cour, helv, lu, lub, lut, ncen, sym, symb, symba, tech, term, tim}. \bold{font size }contains numbers that you can use to set the size of text. Some numbers have no sign; this means they constrain the font size to the specified absolute size. The font size numbers with plus and minus signs are relative font size changes, which make the text bigger or smaller than the surrounding text. Good choices are +2 , +4 , -2 or -4. Not all devices have all font sizes, so you may have to experiment to see if the font size you want is available. \bold{enable }and\bold{ disable }turn on or off a set of attributes which can be combined. If you enable an attribute, you turn it on for the style. If you disable an attribute, you turn off an attribute that was turned on by some other (surrounding) style. For example, you might want to create a style that, when it appears inside an italicized region, turns off the italic print. You could accomplish that by disabling italics for the new style. Disabling is seldom necessary, however. Not all of the following attributes initially appear in the \bold{enable} and \bold{disable} panels. To add one which does not, click on \italic{} and enter the attribute's name in response to the prompt. (Capitalization does not count, but spaces do.) These attribute names will also appear in the box if you edit a style that has the attribute. \leftindent{\italic{Bold} and \italic{Italic} modify the current font to be bold-face or italicized. \italic{Underline} - Draws a line under the text. \italic{ Fixed Width} - This attribute must be specified in any style that selects a fixed width font. \italic{Tab by spaces} - In styles with this attribute, tab stops are positioned every 8 space characters, instead of a particular distance. This is appropriate when using Fixed Width. \italic{Hidden} - The text is (usually) invisible on the screen. You can step through the text by moving the cursor with the arrow keys. You can find the text with search commands. \italic{Format Note} - The text is assumed to be troff commands and is treated as such when the document is printed. (\bold{Note:} At some point, troff commands will no longer be supported. From that time on, the Format Note attribute will have no effect on printing.) \italic{Continue Indent} - If a line that begins with whitespace extends to more than one display line, the continuation of the line is indented. \italic{Over Bar} - Text is displayed with a line over it. \italic{Strike Through} - Text is displayed with a line through it. \italic{Dotted Box} - Text is displayed with a dotted rectangle surrounding each line (or part of a line). (At the moment, this only visible on the screen, not when the document is printed.) \italic{No Wrap} - If the text is longer than a display line, it is truncated at the right margin. \italic{No Fill} - Input lines are copied to the output without regard for line length. \italic{Keep Prior NL, Keep Next NL} - These modify the treatment of newlines in toez. If KeepPrior(or Next)NL is set for a style any preceding (or following) newline is retained from the Scribe input to the ez output. \italic{} - This allows you to enter any of the above attribute names, if it does not already appear in the box. } \bold{justify} contains attributes for justification of a style. The following options are available: \leftindent{\italic{Center} fills each line with as many words from the selected region as possible, then fills out the line with whitespace on both sides and starts a new centered line. \italic{Left flush} fills each line with as many words from the selected region as possible, then fills out the line with whitespace on the right and starts a new flushleft line. \italic{Right flush} fills each line with as many words from the selected region as possible, then fills out the line with whitespace on the left and starts a new flushright line. \italic{Justified} causes left and right justification. \italic{Left-right} justifies the first line to the left, subsequent lines to the right. } \bold{line (and paragraph) spacing} are the number of extra points to be left between lines (and paragraphs). \bold{color} is the color in which the text should be displayed. \bold{baseline} contains attributes for raising and lowering scripted text from the normal baseline of the document. Use these attributes to make superscripts and subscripts. \bold{relative margins and paragraph indent} contains two ruler segments on which you set the margins and indentations for the current styles. Clicking on the whirlwind icon at the left of the ruler changes the ruler units between inches, centimeters, and points. The ruler segments specify relative distances rather than absolute distances. For instance, when the left margin icon is at "+1", the left margin will be indented one unit from the surrounding text. When there is no value for a margin or the paragraph indent, the icon is shown parked on a grey background. If an icon has a value and the value is outside the visible portion of the ruler, then the icon is shown in white on a black background. If both the left indent and paragraph indent icons have values, the paragraph indentation becomes relative to the left margin. You can see this by trying to use a paragraph indent and a left margin at the same time. Note that when you move the left margin, the paragraph indent moves too. \bold{tab stops} contains a ruler for the width of the page, showing where all the tab stops are for the selected style. Tab stops are represented by a small downward-pointing arrow. To change the tab stops for a style, simply drag the arrows around with the left mouse button. Upon releasing the button, the tab stop will be set at that location. By default, the tab stops are every \^{=}" across the page. To add a new tab stop, click with the left mouse button on the arrow which is inside the shaded area. The arrow will move up to the top left of the ruler and you can then drag it to the location you desire. To remove a tab stop, click with the right mouse button on the stop you wish to remove. There are three ``whirlwind'' icons at the bottom of the ruler: the leftmost icon allows you to change the current units of measurement, in the same fashion as used for the indentation ruler. The middle icon, labelled ``AllClear'', will mark this style as clearing all tabs. Note: Any tab changes you perform are recorded \italic{in the order} in which you do them. So making a lot of tab changes and then recording an ``AllClear'' would be pretty pointless - all the changes before the AllClear would be cancelled. The rightmost icon, labelled ``Cancel'' will cancel all the changes which you have done to the tabs. When the character-model of tabs is enabled from the attributes section, then although the tab stops will still be shown and can be edited, they will not be used to find tab positions when drawing text in that style. } \section{Adding styles to your menus} \leftindent{ You can use LookZ to create new styles and add them to the selected-region menus in the document you are editing. \bold{To add a style to the menus: } \leftindent{1. Choose \bold{Add Style} from the LookZ menus. A prompt similar to the following appears, containing the name of the menu you have currently selected. The menu that is listed (in this case, Title) is the one on which your new menu option will appear. Name for new style: \bold{Title,} 2. Type in the name of the style you want to add. \leftindent{(Optional: When typing in a name, you can add a tilde (\bold{~}) and a menu priority number to specify where the style appears in the menu. Priority numbers range from 10 to 99, with lower numbers appearing closer to the top of the menu card. If the two priority numbers differ in the tens digit, a blank line is inserted between them in the menu. For example, if you want to add a two new styles called "Newstyle" and "Nextstyle" to the bottom of the \italic{Title} menu, you might use \bold{Add Styles} twice and type in lines like these: Name for new style: Title, Newstyle~40 Name for new style: Title, Nextstyle~50 If both of these menus were inserted, they would appear with a line separating them at the bottom of the \italic{Title} menu.) } 3. Press Enter to add the style, which then appears in the "name on menu card" box. To choose attributes for the new style, move the mouse cursor into the attribute boxes and click on the ones you want. 4. Choose \bold{Update document} to list the new style in your menus. } \bold{To modify the menu location of a style name:} \leftindent{ Use \bold{Add Style} to add the style again, but with a new priority number. Then, update the document, save it, and use "Switch to File" to reread the file and relist the menus. The new menu priority number you assigned to the style will then take effect. } } \section{Warnings/Bugs }\leftindent{ A change to the style alone is not sufficient to cause the editor to consider the file as having been modified. Thus after the style is changed a \bold{Switch File} request will not itself cause the prompt to save the existing changes. Because some of the screen display fonts differ in size by four points instead of two, something made bigger or smaller by only 2 points may not necessarily appear that way on the screen. Previewing or printing the document should achieve the desired result, though.} \leftindent{Because of the differences between the fonts displayed on the screen, and those printed out on paper, you may find that a table created using tab stops does not come out correctly when printed. As far as possible, we have tried to maintain the correct proportions when printing tabs, but be aware that it is not always correct (especially when using larger fonts). If you really want to create a table, you should use a table inset.\bold{ }} \section{Pop-Up Menu Meanings} Except for the two menu options below, the pop-up menus in LookZ resemble those in EZ. If you are working in your document instead of LookZ, click the left mouse button once inside LookZ before trying to display the menus. \italic{Front Menu Card} \leftindent{ \bold{Update Document:} Redisplays the current document and shows the effects of style changes you have made using LookZ. \bold{Add Style:} Prompts you for the name of a new style and adds the corresponding style to the men}u.\leftindent{ } \section{Author} \leftindent{Fred Hansen}\leftindent{ }\leftindent{Tabs by Nick Williams} (njw@athena.mit.edu) \section{Related tools} Select (highlight) one of the italicized names and choose "Show Help on Selected Word" from the pop-up menu to see the help file for: \leftindent{\italic{\helptopic{ez} \italic{\helptopic{compchar} }}(for international characters)\italic{\italic{ \helptopic{header} }}(for page headers, footers, and numbering)\italic{\italic{ }\helptopic{styles}} }\italic{\leftindent{\helptopic{table}}} \begindata{bp,17829008} \enddata{bp,17829008} \view{bpv,17829008,3,0,0} Copyright 1992 Carnegie Mellon University and IBM. All rights reserved. \smaller{\smaller{$Disclaimer: Permission to use, copy, modify, and distribute this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice, this permission notice, and the following disclaimer appear in supporting documentation, and that the names of IBM, Carnegie Mellon University, and other copyright holders, not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. $ }}\enddata{text,17820888}