View Single Post
  #18   Report Post  
Posted to microsoft.public.word.pagelayout
Elbert Elbert is offline
external usenet poster
 
Posts: 9
Default Equation line numbers

Bob,

Thanks for helping again.

I was able to record a macro that did, I think, pretty much what your description said You're a better man than I. When in record macro mode, I could not select the table to turn off borders, I could not grab the left edge of the table to move it in, and I could not grab the caption to drag it into the table cell.


To change/add keyboard shortcuts in Word 2007 to a macro you can use

Office Files Button=Word Options=Customize=Keyboard Shortcuts
(Alt, F, I, C, AltT) and choose the macros category This works fine. Thanks.

once you have stored a reusable table as a Building block (i.e. right sized, margins set, borders off, caption field inserted) you could record the macro to fetch that building block into the document then call the equation editor of choice Insert=Object) I couldn't quite get this to work. I could insert the building block, but then the cursor is positioned after the inserted table and with record macro on, I could not move the cursor into the table before opening MathType.


or you could store an Equation Object in the building block so that when you insert the table you should be able to edit the equation object already prepped there. This is closest to what I want. I can't see where to click to open an empty MathType equation, so I stored an equation with just the letter x in it. So now I hit alt-shift-m to insert the table with the equation, double click on the x, delete the x and type the equation. Not as slick as the macro I had recorded pretty straightforwardly in Word 2003, but good enough, I guess. I still find macro recording disappointing in Word 2007 compared to Word 2003.


One more question: I now have the macros and building blocks set up on my
home computer and need to move them to my office computer. I guess that
involves copying normal.dotm from one computer to the other. I also have
several custom templates I've set up for myself, and I occasionally tweak one
of them. Is there a way to store templates on my flash drive ahd have Word
look for them there? I carry the flash drive back and forth, so I'd always
have the latest version of templates no matter which computer I'm using.

Thanks again for the help,

Elbert






"Bob Buckland ?:-)" wrote:

Hi Elbert,

To change/add keyboard shortcuts in Word 2007 to a macro you can use
Office Files Button=Word Options=Customize=Keyboard Shortcuts
(Alt, F, I, C, AltT) and choose the macros category, although you'll need to choose something other than a Shift+F1 for a Word
shortcut. I don't know if perhaps MathType has its own facility for that as well.

You can also assign keyboard shortcuts there to the gallery entry you made for the 2cell table from the 'AutoText' keyboard
customization gallery. Before going to the keyboard shortcut area be sure to open the equations (or other) Building Block gallery
once to have Word populate all of the dialogs. It doesn't do so on startup, so as not to delay the startup process.

If you want your 2 cell table QuickPart to instead appear in the 'canned' Equations locate your saved item in
Insert=Quickparts=Building Blocks Organizer
cnoose 'Edit Properties' and switch the 'gallery' used from 'Quick Parts' to 'Equations'.

The macro recorder is also available to be used from the Word status bar in Word 2007. Right click the status bar and tick mark
that choice.
I was able to record a macro that did, I think, pretty much what your description said, although to save some time, once you have
stored a reusable table as a Building block (i.e. right sized, margins set, borders off, caption field inserted) you could record
the macro to fetch that building block into the document then call the equation editor of choice (Insert=Object) or you could store
an Equation Object in the building block so that when you insert the table you should be able to edit the equation object already
prepped there.


==============
"Elbert" wrote in message ...
Hi Bob,

Thanks for the help.

If you have created custom toolbars (rather than customizing Word's built in toolbars) in a prior version if you place that

template in Word 2007's Startup folder (or attach the template (Alt, T, I) in Word 2007, your toolbars should appear in an 'Add-In'
tab...

Mostly I had customized the built in toolbars, but this procedure (which I
would never have figured out for myself) got me one custom toolbar that I had
created.

Your macros should likewise be available (View Macros=View Macros) and some may need to be tweaked for differences in Word

2007.

On the View ribbon I clicked on the View Macros button, but I did not see my
macros in the list. However, in the organizer I selected normal11.dot (my
normal template for Word 2003) and I was able to move some macros to
normal.dotm, including the one that aligns and captions MathType equations the way I want them! Can you tell me how to assign
keyboard shortcuts to
those macros? Shift-F1 used to invoke the equation macro, but now it reveals formatting.

BTW, I couldn't figure out how to record the equation macro with Word 2007. With 2003, the macro was assigned to shift-F1. Shift-F1
would insert a two cell table, move the left edge of the table in 1/2", insert a caption with Equation # in the right cell, right
justify the caption, move to the left
cell, turn off all borders, do insert/object/MathType equation, then move the
cursor to the line after the table. I'd hit shift-F1 and almost immediately
I'd see the MathType window. I'd type my equation, and when I exited from
MathType, I'd have my equation aligned where I wanted it and captioned, with
the cursor on the next line so I could continue typing.

With 2007, I finally figured out (again my intuition failed me) that the
record macro feature is located on the view ribbon. So I tried to use it to record the same macro--the only way I could see to
assign a keyboard shortcut to it, but I got stuck when I tried to move the caption into the right cell, and again when I tried to
move the left edge of the table over by 1/2". Unless I'm missing something, the record macro feature is a lot less useful in 2007
than it was in 2003.

Your suggestion to insert an aligned and captioned equation as a quick part works pretty well. Since I need to double click the
empty equation object, and I can't see it when it's empty, I made an equation with the letter x in it. Now to insert an equation I
have to click Insert, then quick object, then equation. Then I have to double click on the equation, delete the x, type the
equation, exit from MathType, and move the cursor below the table. Not bad, but not quite as slick as my old shift-F1.

Thanks again for the help,

Elbert
--

Bob Buckland ?:-)
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*