📜 ⬆️ ⬇️

MS Word upgrade

We can only welcome the discussion of the capabilities of the LaTeX system. It is a pity, the authors sometimes allow themselves slightly holivarny statements, leading, respectively, to slightly holivarny responses (mine including, alas!).

However, to write in comments that MS Word is also not stupid and allows you to quite successfully cope with writing serious (and non-trivially formatted) texts - this is one thing, but to explain what was said with specific examples is quite another.

I think no one has any doubt that without fine file processing, using Word can be extremely unpleasant. At the same time, not all have enough strength, time and skills to “grind”.
')
In my daily work I use a template that I want to offer to your attention. Work on it is carried out with long breaks, so its status can be called "permanent beta." However, this is better than nothing, and you can still wait until I make the final release.


So, the template (links below are mirrors):
Rapida
Onlinedisk

This is a version for Word 2007, but I have an older version for Office 2003.
How to use it. By running the template file, you immediately go into the edit mode of the new document (based on the template).

The first step is to enable macros (you can later add the template to the trusted list, and the message will no longer appear).

Then you need to make an "installation" (Alt + F8, then run the Install macro). This operation creates some object names in Word. You can remove the names using the Uninstall macro. The installation, of course, is done only once.

After launching the template, you will see a new Universal panel:
image

Buttons 1-5 set the appropriate style for the title. At the same time autonumbering works:
image

The buttons of the next group (“Lists”) are designed to work with numbered and bulleted lists. The four top buttons create a list (of the appropriate type) of the first or second level. Accordingly, there is no need to rely more on the “smart” choice of the current list level by the Word - just press the corresponding button. The bottom button resets the current numbered list count:
image

The third group allows you to insert any object into the text. I work mainly with drawings, tables and listings. Moreover, each type of object has its own numbering (I think this is the most typical scenario in most cases):
image

I have not yet made a competent switch between the Russian and English versions of the text. While each figure displays the heading "Fig.", The table "Table", and the listing - "Listing". However, in the body of macros it is easy to find these lines and replace them with any others. Also, the various styles for signatures are not very relevant to me. So far, the table column headings (tabl_header) and listing body (listing_body) have their own style.

(Lyrical digression: this is why I am angry with MS - so much for the fact that they removed a decent listbox showing the current style of the text. It’s in vain!)

For technical reasons, I was forced to arrange each heading as a separate table (this can be seen if you turn on the display mode for non-printing characters). It's not scary, you just need to be careful when entering the title of the object (you can mistakenly insert text where you do not need):

image

Attention : now it is assumed two-level numbering of objects (chapter number), therefore at least one first level heading should always be present in the text. Yes, one more detail. The picture is inserted as a link (not as an embedded object), but this can, of course, be changed if required.

Group Refer to Object is designed to create links to objects.
Each of the buttons with a pencil creates a link to the corresponding type of object (figure, listing, table). A window opens with a full list of objects of this type, and you select the desired one:
image
(after insertion):
image

Both the number of the object itself and the link are automatically recalculated fields. Thus, you can insert a new picture between Figures 1 and 2. It will receive the number 2, and Figure 2 will automatically turn into Figure 3. Accordingly, the link to Fig. 2 will become a reference to fig. 3

By default, the Word does not update the links (this is a lengthy operation). Therefore, after inserting objects somewhere in the middle, you need to call a forced update (button with an exclamation mark).

Of course, it could be called automatically, but I decided that it would rather hurt if the document is long and the user wants to insert 5-10 objects into the middle at once.

The last group includes (for the time being few) style buttons:
1) style command. I use to highlight variables:
image
The button corresponds to the key combination Ctrl + Shift + C. Those. just select the fragment, press the key combination - and the text will become monospaced. Pressing the button again (or Ctrl + Shift + C) returns the paragraph's original paragraph style to the fragment.
2) listing_body style:
image
Suppose there is a code fragment in the text, but it is not large enough for an independent listing.
3) The style of "normal." Return to the standard paragraph style. It is useful, for example, to finish entering a numbered list (pressing a button turns the next list item into “just text”).
4) Auto listing format. Turns all tabs into four spaces, shifts the listing to the left as much as possible. The meaning of the shift is this. Suppose I want to insert into the text two lines from the body of the foo () function:
 void main ()
 {
     void foo ()
     {
         for (;;)
             do_something ();
     }
 }

Lines (for (;;) ...) will be greatly shifted to the right, but I do not need it.

Here, perhaps, that's all. I also wrote a module for bibliography, but I hardly ever finish it. EndNote handles this job more than satisfactorily. But the current (very simple) version of my module can also be useful. I can lay out if there are requests.

Note 1 : The macros are full of old unnecessary code. All hands do not reach to remove :)
Note 2 : Many thanks to the unfamiliar author of the very first version of this template, which fell into my hands around 2003. Now the template has become completely different, but the overall spirit (as well as some pieces of code) remained unchanged.

UPDATE: Template version for Word 2003
Rapidshare
Onlinedisk
Unfortunately, I do not have Word03 installed on my computer right now, so I can't really check what is there and how it works.
I only remember that in this template there is still (seemingly) no Install macro, but it can be pulled out of the new version. And for the old one in the archive there is a Normal.dot with an installation already done. I also remember that there are several panels with buttons, but really only one of them is useful and corresponds to the 2007 version. If there are problems, report.
UPDATE: The topic is moved to "I'm smart."

Source: https://habr.com/ru/post/47077/


All Articles