|
Graphics Tips
Miscellaneous tips for inserting and using
graphic images in a WordPerfect document |
Page Contents
Ceate and save a custom
graphic style (figure, line, box border, etc.) with Format, Graphic
Styles
Set your preferred
(i.e., your default) graphic box style when inserting images
Set the size (or other
settings) of individual graphic boxes with a macro
How to keep a graphic image
or text box from "jumping around" on a page or moving
to another page
Cross-reference a
Table
Cross-reference
a Figure box
How to number some
graphic box images ("Figure 1," "Figure 2,"
etc.) but not all images
How to install the
entire Clip Art catalog on a hard drive
How to create "sticky
notes" in WordPerfect
Add your scanned signature
to a document
About graphic images
and "file bloat"
JPEG images on a Pentium 4
Line up (align) text boxes
or other graphics in WP10 and later versions
Create a page border
with repeating graphic images or text images
Problems inserting graphics
into WordPerfect on a Windows 2000 or Windows XP computer?
Messages about images being
greater than 27 inches
Using boxes to cover up
dividing lines between columns
Stop certain
graphics from printing
Controlling the printing
and non-printing of all graphics with a macro
Create a page border
with repeating graphic images (clip art, photos, etc.) around
the four edges of the page [External
link to a page on this site]
- You
can create and save a custom graphic style (figure, line, box
border, etc.) with Format, Graphic Styles. Note that Graphics Styles
come in four "flavors" which can be accessed by the
four radio buttons on that dialog: Box, border, line, and fill.
Tip: If you select one of them and choose a style from
the list, you can then use the Options button to make a Copy
of an existing style and modify it instead of making changes
to an existing style (which, in any case, can always be Reset
to the default using the Options button).
- Example 1: [Tested
in WordPerfect X3/X4 but the process should be similar in other
versions.]
- Suppose you want to use a "Chapter.FigureNumber"
format such as Figure 1.1, Figure 1.2, Figure 1.3 ... Figure
2.1, Figure 2.2, etc. To create automatic
numbering, Figures (which are a WP graphic style) use a built-in
Counter style (i.e., FigureNum) -- which, in turn, can be edited
to create a new (counter) numbering style. To do this you need
a FigureNum style with two levels instead of the default of one
level. One will track the Chapter number, the other will track
the Figure number within each Chapter.
- First, create
a new two-level counter (actually, we'll just modify the existing
style, which is document-specific; however, as noted above you
can modify and save a custom graphics style for future use).
- Go to the top of the document and -
- (1) Click Insert, Other, Counter.
- (2) Choose ".Figure Box" from the
Counter Numbering dialog's list.
- (3) Click the Edit button to bring up the
Edit Counter Definition dialog; set the Number of Levels to "2".
- (4) Click OK, then Close.
- You now should have a two-level counter available.
- Next you need
to insert the new counter into the Figure's style, where the
Caption appears:
- (1) Click Format, Styles and choose FigureNum,
then click Edit.
- (2) You should see the text characters, "Figure
", followed by a box counter code. Delete that code so that
we can replace it with a custom version.
- (3) With the cursor still at the same location
in the Contents pane, click Insert, Other, Counter (from the
Styles Editor dialog's menu bar), and choose ".FigureBox
Level 1" in the Counter list, then click "Display in
Document." This inserts the code into the Contents pane
(at this point, this pane is considered a "document"
by WordPerfect).
- (4) Press the period/full-stop key to insert
a "dot".
- (5) Click again on Insert, Other, Counter,
and choose ".FigureBox Level 2" in the Counter list,
then click "Display in Document." This inserts the
second counter code.
- (6) Click OK, then Close to return to the
document.
- Finally, since
the counters will need to be reset with each Chapter, go to the
top of each chapter (perhaps on the line with your Chapter's
title) and -
- (1) Click Insert, Other, Counter.
- (2) Choose the Level 1 counter; click Value
bring up the small dialog which lets you set reset the two counter
Levels to 2 and 1 (for Chapter 2, Figure 1). This allows starting
the renumbering of figures in each Chapter.
- Example 2: [Tested
in WordPerfect X4 but the process should be similar in other
versions.]
- Suppose you want to create a "three-sided"
border box, with the left side of the box made borderless. This is a two-step process: Create the "three-sided"
border style first, then create a new box style
using that custom border style.
- Step 1:
- - Click Format, Graphic Styles. This opens
the Graphics Styles dialog. Be sure the option, "Default
Template," is selected in the "List styles from"
drop list.
- - Click the Border radio button.
- - Click Create. The Create Border Style dialog
opens.
- - Give the new border style a name -- e.g.,
No Left Border.
- - De-select (un-tick) the All checkbox to
remove all check marks.
- - Select (tick) just the Left check box,
then click the Line style button and choose the "X"
(i.e., "None") line style. The dialog's central image
should now show the resulting "three-border" style.
- - Click OK. The new border style will be
saved with the other Styles.
- Step 2:
- - Now, back in the Graphics Styles dialog,
click the Box radio button.
- - Click Create. The Create Box Style dialog
opens.
- - Give the new box's Style a name -- e.g.,
No Left Border.
- - Click the Border/Fill button. The Box Border/Fill
dialog opens.
- - Under the Border tab, in the Available
border styles list, scroll down and select (click) the new No
Left Border style.
- - Click OK twice to return to the Graphics
Styles dialog.
- At this point you can click Insert to insert
the box in the document (once it is there, double click on the
box to add text, etc.), or click Close.
- WordPerfect should now remember these styles
for future use. You can then use Insert, Text Box and right-click
the box to choose the new custom border, or you can use Insert,
Graphics/Pictures, Custom Box and choose the new custom box from
the pop up dialog.
- You
can set your preferred (i.e., your default) graphic box
style when inserting images.
- Click Format, Graphic Styles to bring up
the Graphics Styles dialog, then enable the radio button corresponding
to the Style type (Box, Border, Line, or Fill) to want to modify.
- In the Styles list, choose the type of graphic
(e.g., Image, Figure, etc.), then click Edit to set your desired
program defaults for any of the seven categories in the Edit
Box Style dialog that appears.
- Note that the Caption button in the Edit
Box Style dialog will take you to another dialog (Box Caption)
where you can set the "Caption numbering method and style"
for that type of box (i.e., FigureNum, TextBoxNum, etc.). For
example, you can change the default figure caption from "Figure
1" to "Fig. 1," remove the bold attribute, add
italics, etc. You can also set a multi-level style (Fig. 1.1,
Fig. 1.2 ... Fig 2.1, Fig. 2.2, etc.).
- Tip: You can
also change the relative vertical position of the Caption in
relation to its image by editing the "Caption numbering
method and style" for that type of box. Simply add a hard
return or two in the style's Contents pane, or use the Styles
Editor dialog's menu: Format, Typesetting, Advance....
- You can always use Options, Reset
in the Graphics Styles dialog to restore things at a later date.
- You
can set the size (or other settings) of individual graphic
boxes with a macro such as the ones
in Footnote 1.
- How
to keep a graphic image or text box from "jumping around"
on a page or moving to another page:
- [From a post by Martin V. at WordPerfect Universe:]
- "When positioning a
graphic, right-click the graphic and have a look at the "position"
dialog of that graphic. Any grahic (or box) can be -
- Attached to a page: which means the location will stay
on a fixed position relative to the edge of the page or relative
to a the margins or relative to a column. However if a lot of
text is inserted before the imagecode in the document, the image
can still move to the next page [unless the "Box stays on
page" is checked].
- Attached to the paragraph: the image is positioned relative
to a margin or to the paragraph and is attached to the paragraph.
It will move when the paragraph moves.
- Attached to a character: now it will be attached to a certain
character. It will move with that character. Most of the time
you will only use this with very small images.
- You will have to figure out
what to attach an image too. If you do not want an image to "jump
around" start with the option "attach to page"
and position it relative to the edge of the paper. If it does
not produce what you need, try attach to paragraph."
- Cross-reference
a Table: Put the table inside a captioned custom box (which can
be repositioned on the page):
- Put each of your tables inside
a custom box by either copying them into a box or creating a
table-in-a-box.
- For example: Click Insert,
Graphics/Pictures, Custom Box. Select the "Table" style,
and click OK.
- Double-click inside the empty
box (it has 8 drag handles around its perimeter) to edit it.
Create the table there (or copy a table into the box).
- Right-click the box-with-table,
choose Caption from the context menu. This brings up the Box
Caption dialog. Click Edit. This inserts a "Table x"
(where "x" is a number) caption. [Here, you can also
add text to describe the table.]
- While editing the caption,
carefully select the [Open Style] code (this is easy with a Shift+arrow
key). Then click Tools, Reference, Cross-Reference. In the Reference
Tools dialog, choose "Caption Number" in the Reference
Type drop list. Now, click in the Select Target field; the table
number should appear in it. Click Mark Target. A [Target] code
will appear in the caption. Then click Close.
- At this point you can drag
the box-with-table to a location on the page. It probably is
best to "anchor" it to a paragraph (with the Position
feature from the context menu, when you right-click on the box).
But you can experiment with other Positions.
- Click in the document text
area at the location where you want the reference to the table.
Then click Tools, Reference, Cross Reference. In the Reference
Type field, select (as above) "Caption Number". Then
click in the Select Target field and, in the drop list, choose
the table number of the table. Click Mark (but /not/ Mark Target!).
A '?' mark will appear in the document.
- At this point (or later,
when you are finished) you can click Generate to generate the
links between the references and their targets.
- Repeat the above for each
of your tables.
- Cross-reference
a Figure box: Once the box is placed on a page:
- Edit the box's caption. (If the caption exists,
right-click on the box and select Edit Caption; if there is no
caption yet, create one with Create Caption.) In Reveal Codes
the cursor should now be next to the "Figure x" code
inside the caption (where "x" is a number; the code
itself is displayed as an [Open Style: FigureNum] code).
- While still in the caption, click Tools,
Reference, Cross Reference, Reference Type: <Caption Number>.
In the Select Target field, give a name to the box's target (such
as "Box3" or "Fig 3"), then click on Mark
Target. In Reveal Codes you should now see a [Target] code appear
after the [Open Style: FigureNum] code.
- The Reference Tools dialog remains on screen,
but you can Close it if you wish until all targets are marked.
- Next, place the cursor where you want the
reference to go in the body text. (If the Reference Tools dialog
is not open, click on Tools, Reference, Cross Reference.) Next,
click the down arrow on the Reference Type drop list and choose
<Caption Number>. Then in the Select Target field, choose
the name of the box from the list (such as "Box3" or
"Fig 3"); click on Mark (not Mark Target), then
Close.
- Finally, generate the cross references with
Tools, Reference, Generate. You should see the reference appear
in the body text as (for example) "See Figure 5," where
"Figure 5" is hyperlinked with a blue underline.
- Advantage: This method has the advantage that
the [Target] code is inside the graphic's Caption, and will move
with it if the graphic is moved elsewhere in the document.
- Tip: This method works best in documents
that will be Published to PDF, since the hyperlinks will take
you to the relevant graphics and not directly into their captions
(as will be the case in a .WPD document).
- See also the next tip below.
- How
to number some graphic box images ("Figure 1,"
"Figure 2," etc.) but not all images:
- First, add captions with numbers to the ones
you need captioned and numbered:
- Right-click the image, choose Caption, then
click Edit. "Figure 1" appears by default if you have
inserted a graphic image; a simple "1" appears if you
have inserted a text box; etc.. Type some text after the number
if you need a description or title, then click outside the image
to go to the body text area.
- Insert (or go to) a new image, and repeat
the process.
- When finished, un-number the images
that should not be numbered:
- Since WordPerfect keeps track of image numbers
with an internal counter (a different counter for Equation, Figure,
Table, Text, and User boxes), you can turn the counter off for
the images that should not be numbered. The other images
will be properly numbered. Here's how.
- Right-click an image you do not want
numbered and choose Caption from the context menu. The Box Caption
dialog appears.
- If the image is already captioned, click
the Reset button to revert the image to a non-captioned image
(i.e., delete any caption for that image).
- Next, click Change, then <none> for
the Counter type.
- Finally, click Select, then OK.
- Go to the next image you don't want counted
or captioned, and repeat the above four steps. All other captioned
and numbered boxes should then be properly and automatically
numbered in sequence. If some are not, right-click them and choose
Caption, then click the Edit button. This should reset the displayed
number.
- Here's
how to install the entire Clip Art catalog (located on
the installation CD Disk 2) to a hard drive so that you can have
ready access to it without using the CD. [Warning: This involves
a small change to the Windows Registry. Always make a backup
of the Registry before modifying it. For information, see Microsoft's
Support Knowledge Base at http://support.microsoft.com
and Search for "edit Registry in Windows XP" (for Windows
XP; various versions of Windows have different articles, so use
the appropriate Windows version in your Search].
- The following method was posted by Charles
Rossiter, Corel C_Tech, on a Corel newgroup. It refers to WordPerfect
12, but the method should work for other versions that ship with
a separate ClipArt CD:
- "With CD#2 in its drive, access the
full set of clipart just by doing Insert, Graphics, Clipart.
Close WPWin12.
- Copy the entire F:\Graphics folder (assuming
F is the CD drive) to E:\Graphics (assuming E is the target hard
drive partition).
- Edit the Windows registry and search for
'srb'. There will be a few entries -- you need to find the one
that references F:\Graphics. Just change the F:\ to E:\.
- Now launch WPWin12, without CD#2 in its drive.
Do Insert, Graphics, Clipart and you should have access to all
the Clipart."
- TIP:
Recent versions of WP include the catalog (a PDF file) for all
clip art on CD #2.
- How
to create "sticky notes" in WordPerfect.
- See this
thread on WordPerfect Universe.
- Insert a "Post-It"-type note (or
yellow "sticky note") in a WordPerfect (or Microsoft
Word) document with Insert, Object, CorelMEMO.
- For an alternative to these electronic "sticky
notes," see 3M Post-It Software
Notes.
- Want
to add your scanned signature to a document? See this
thread on WordPerfect Universe.
- About
graphic images and "file bloat": If documents with graphics
in them result in large, bloated file sizes, perhaps it is because
you are saving Undo changes when you save the files, thus saving
additional copies of any inserted graphics along with the originals.
(Additionally, WordPerfect converts all inserted graphics to
its own WPG format, resulting in larger file sizes than expected
in some cases.) Solution: Click on Edit, Undo/Redo History,
Options and make sure that "Save Undo/Redo items with document"
is NOT checked. Then re-save the file. (For more on this option
as it relates to sharing confidential documents with other users,
see here.)
- JPEG
images on a Pentium 4: If importing a JPEG image (*.JPG) into WordPerfect
10-X3 on an Intel Pentium 4 computer causes the photo to
appear partly missing (or black), see "Parts of my imported
image are missing or appear blank in WordPerfect" (Answer
ID: 207681) on the Corel
support site.
- Line
up text boxes or other graphics in WP10 and later versions with the Align and Distribute tool. Once you have
created several text boxes or other graphics, you can select
all (or a group) of them by holding down your <Shift> key
while you left-click each box. This will put a (borderless) box
around all the boxes you have selected. Right-click inside this
parent box (click directly on top of one of the child boxes)
and you can Align and Distribute the child boxes inside the parent.
(Use the Help button on the Align and Distribute dialog for more
information.) Also, the entire parent box can be dragged into
position and right-clicked to select a caption, border, etc.
- Create
a page border with repeating graphic images (clip art, photos, etc.) around the four edges of
the page (the method requires Corel Presentations, part of the
WordPerfect Office Suite). See here.
To create a page border
using text,
see the TextBord macro
in the Library (Presentations not required).
- Problems
inserting graphics into WordPerfect on a Windows 2000 or Windows
XP computer?
- In both Win2000 and WinXP, to be able to
insert non-wpg graphics, you have to enable indexing service
on your NTFS partition, although you can disable it overall.
- Double-click My Computer to get a list of
partitions. Right-click on the partition with the graphics. Select
Properties. Check on the option "Allow index service to
index this disk ...".
- In Win2000 to disable indexing service overall, you can do Windows
Start, Search, Files or Folders, if needed click on Search Options
to open that sub-dialog. If Indexing Service is enabled, you
can set it to disabled, which should over-ride the option for
the particular partition which has to be enabled.
- In WinXP to disable indexing service overall, you can do Windows
Start, Search, Files or Folders, click Change Preferences. Now
click Without Indexing Service and select the option "No,
do not enable indexing service", which should over-ride
the option for the particular partition which has to be enabled.
- Messages
about images being greater than 27 inches:
- From Charles Rossiter, Corel C_Tech, with
regard to the "Graphic
image viewport width/height exceeds 27" (inches)" message:
- "This is a known problem with JPG or
GIF graphics. [N.B.: This has been fixed in WordPerfect X4.]
The key is not just the size of the graphic, but also the resolution
in dots per inch. Take the number of pixels (dots) that the graphic
is wide (or long) and divide that by the resolution in dpi. The
answer is in inches, and is the size of the graphic. If that
size is greater than 27.308 inches (69.36 cm), then the conversion
will abort.
- The solution is just to change the resolution.
As far as WPWin is concerned, doubling the resolution halves
the size, for example.
- With many graphics packages, you can change
the resolution, and this has no adverse effect on the graphic
or the quality of the image. You can try ... [the free program]
IrfanView to reset the
resolution. Then the graphic will open in WPWin."
- Follow up quote
from Charles:
- "Let me go through this in detail. The
key size is 27.308 inches. When you open a jpg file in IrfanView
or VuePro32 or other package, you will see a status line giving
the number of pixels in the graphic and its resolution. If you
divide the larger dimension by the resolution (dpi or pixels
per inch), you will get the size of the graphic in inches. If
that size is bigger than 27.308 inches (32768 wordperfect units
at 1200 units per inch), then WPWin will not open it.
- So you need to increase the number of dpi,
to decrease the size
perceived by WordPerfect. One way is to open the graphic in IrfanView (and save it immediately
with a new name, but still as a jpg file). Do Image, Information
and change the DPI from the probable values of 72 by 72, to 144
by 144 (for example). As you make such changes, you can see the
print size changing. Just make sure the Print Size is less than
27.308 inches. Now save the graphic with another new name. It
will now open in WordPerfect."
- Using
boxes to cover up dividing lines between columns in newsletters or similar document styles in WordPerfect
8/9. This tip can be used to cover
up text, parts of a table, clip art, etc.
- Stop certain graphics from printing:
- If the graphic is a text box, you can make
the text hidden so it won't print. (To make a selection of text
hidden: Format > Font > Hidden.Then be sure to uncheck
the menu option, View > Hidden Text.)
- For most graphic images (clip art, photos,
text art, etc.) you can right-click on the graphic, choose Content,
then enable "Suppress box." (Lines and shapes do not
have this option.) You can also use a macro (and/or a template
macro) to use this option to prevent a given graphic from printing,
as discussed in a thread on WordPerfect Universe here.
- For a mixed group of "graphic"
itmes such as a company logo with text, graphics, lines, shapes,
etc., you can put all of them inside a Custom Box (which acts
as a single container). Then a macro (or template macro) can
temporarily delete the box's contents while you print the document,
then restore the contents after printing. This was discussed
in a post on WordPerfect Universe here,
and is repeated in Footnote 2 below.
- Controlling
the printing and non-printing of all graphics with a macro can be done with the PrintGraphics() command.
Unfortunately, the "on" and "off" parameters
are reversed in their common meanings. Here are two small
demonstration macros to show the difference. Load a document
with both text and graphics and play the macros, one at a time.
Also: In your own case, it might help to reset the PrintGraphics()
setting to your preferred state before the macro exits
so that subsequent print runs during the same session print (or
don't print) graphics according to your standard preference.
- //
Macro #1
// True! = select Print dialog choice: "Print Text
Only" - do not print any graphics.
PrintGraphics (State: True!)
Print (FullDocument!)
Return
- //
Macro #2
// False! = deselect Print dialog choice: "Print
Text Only" - print graphics, too.
PrintGraphics (State: False!)
Print (FullDocument!)
Return
|
|
Footnote 1
Here are two macros that can set the size
(e.g., the height and width) of a selected graphic box
(or the next box, if none is selected).
You can precede the code with macro commands
that either (1) insert the graphic from a file, or (2) copy the
graphic to the clipboard, then paste it at a specific location.
The code in Example 1 below uses just one
measurement (the width of the box, set to 2.5 inches) to show
how to enter a specific measurement. It also attaches the box
to Paragraph, adjusts text flow, and sets the Overlap and position
(relative to text) to Front.
The code in Example 2 simply sets the box
to its maximum size (between the left and right margins).
See also other
BoxText... and BoxTo... commands on the Macro toolbar's
Commands button or in Macro Help.
// EXAMPLE 1: Macro code begins
-
// Get box number -
vBox:=?BoxNumber
BoxEdit(vBox)
// Use desired measurements/settings
in the next Box... commands -
BoxAttachTo (Paragraph!)
BoxWidth(2.5")
BoxHeight(AutoHeight!)
BoxHorizontalAlignment(AlignMargins!; Center!; 0.0")
BoxVerticalAlignment (Top!)
BoxTextFlow (NeitherSide!)
BoxOverlap (Yes!)
BoxToFront
// Exit graphic box here -
BoxUpdateDisplay ()
BoxEnd(Save!)
// Macro code ends
// EXAMPLE 2: Macro code begins
-
// Get box number -
vBox:=?BoxNumber
BoxEdit(vBox)
// Set the size to maximum
- BoxHorizontalAlignment (Alignment: AlignMargins!;
Position: FullAlign!; Offset: 0.0")
BoxVerticalAlignment (Alignment: FullAlign!; Offset: 0.0")
// Exit graphic box here -
BoxUpdateDisplay ()
BoxEnd(Save!)
// Macro code ends
Footnote
2
If the logo's text, graphics, lines, shapes,
etc., were put inside a borderless custom box (Insert > Graphics/Pictures
> Custom Box), which can be created as a fixed size so that
other material on the page can flow around it, the contents of
that box could be temporarily deleted during printing.
Thus, the box would act as a container, and
when emptied during printing it would maintain the same formatting
on the page.
One way to do this is to create a paired bookmark
(see below) around all the material inside the Box. Then a macro
can find this bookmark, select it, delete the selection, print
the document, and undo (i.e., restore) the deleted selection.
[This macro could be used in a template and
triggered with the PRE PRINT trigger. For more on triggers, see
http://wptoolbox.com/tips/Triggers.html.]
For example, assume that a paired bookmark
named "logo" has been created inside the Custom
Box (as described in the first sentence of this Footnote). This
macro can do the job (be sure to note the comments in the
macro code):
// Macro code begins
// IMPORTANT: This macro requires a paired bookmark surrounding
// all items inside a Custom Box. (Edit the Box; Select
// all the material in it (use Reveal Codes to be sure),
// then click Tools > Bookmark > Create. Give it a name
(here:
// "logo"), enable the box "Selected Bookmark,"
and click OK.)
// Exit from any substructure:
pExitSubstructures ()
// Remove contents of the
Box before printing:
OnError(Msg@) // (if the bookmark does not exist)
BookmarkFind("logo")
BookmarkBlock("logo")
EditCut
OnError(End@)
// Exit from the Box:
pExitSubstructures ()
// Print document here, then
restore original Box:
Print (FullDocument!)
Undo
// OPTIONAL: Remove
Undo material for privacy:
ClearUndoLevels
Label(End@)
Quit
Label(Msg@)
Messagebox(;"Error"; "No bookmark found!")
Quit
// Exit from any header, footer,
footnote, endnote, text box, graphic caption, etc.:
Procedure pExitSubstructures ()
While (?Substructure)
vSubDoc:=?CurrentSubDoc
SubstructureExit
If ((vSubDoc=10) or (vSubDoc=11))
BoxEnd (Save!)
EndIf
EndWhile
vBoxType:=?BoxContentType
If (vBoxType=3) BoxEnd (Save!) Endif
EndProc
// Macro code ends
|