<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<article id="MSWord">
  <articleinfo>
    <title>Using MSWord Effectively</title>
    <author>
      <firstname>Ashley</firstname>
      <othername>J.S</othername>
      <surname>Mills</surname>
      <affiliation>
        <address><email>ashley@ashleymills.com</email></address>
      </affiliation>
    </author>

    <copyright>
      <year>2005</year>
      <holder role="mailto:ashley@ashleymills.com">The University Of Birmingham</holder>
    </copyright>
  </articleinfo>

  <sect1 id="MSWord-Introduction"><title>Introduction</title>
    <para>
      Microsoft Word, which will be referred to as &quot;Word&quot; throughout the rest of this document, is a proprietary WYSIWYG word processor for the Microsoft Windows operating system family. It is widely used by the business world and many professionals rely on it.
    </para>
      
    <para>
      The fact is, Word is used extensively throughout the world and anyone interested in an office career is likely to have to use it some day so it is a good idea to learn how to use it as effectively and efficiently as possible.
    </para>

    <para>
      Familiarity with GUI systems is assumed. This tutorial is also relevant to OpenOffice, a free office suite similar to Microsoft Office: <ulink url="http://www.openoffice.org/">http://www.abisource.com/</ulink>, this tutorial is probably also relevant to other free word processing tools too.
    </para>
  </sect1>

  <sect1 id="MSWord-Styles"><title>Styles</title>
    <para>
      Word styles are one of the most important concepts to producing structured documents within Word. A typical Word user will edit the document and make changes on-the-fly, that is, they will alter the appearance of the document as it is being written. Often the typical Word user is blissfully unaware of how to use styles. Not using styles is inefficient and unstructured.
    </para>

    <para>
      The default word &quot;mode&quot; one is dropped into when creating a new document is not oriented toward the use of styles or structured editing. The desired view is one which shows exactly which styles are applied to each part of the text.
    </para>
      
    <para>
      To achieve this view, click on the menu <guimenu>View</guimenu> and then click on <guimenuitem>normal</guimenuitem>. Click on the menu item <guimenu>Tools</guimenu>, click on the item <guimenuitem>Options</guimenuitem>, a dialog box will pop up, click on the <emphasis>View</emphasis> tab.
    </para>

    <para>
      Under the section entitled <emphasis>Window</emphasis> change the <emphasis>Style area width</emphasis> to something other than zero:
    </para>

    <mediaobject>
      <imageobject><imagedata fileref="files/images/viewoptionsbox.png" format="PNG"/></imageobject>
      <textobject><phrase>The options box, set the style area width to a non zero value</phrase></textobject>
    </mediaobject>

    <para>
      This will cause the style area to appear down the left hand side of the document:
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/emptydocviewnormal.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>The style area can be seen to the left of the image</phrase></textobject>
    </mediaobject>

    <para>
      At the moment there is only one paragraph in the document, containing the text &quot;What is truly random?&quot;. The style area to the left indicates that this paragraph is in the &quot;Normal&quot; style. This is the default style that Word uses for each paragraph. There are two types of styles; paragraph styles and character styles. Paragraph styles are applied to a full paragraph where as character styles are applied to a selection of characters within a paragraph.
    </para>
      
    <para>
      If the cursor is within a word that has a character style applied to it, the styles box in the upper left hand corner will display the character style the word uses. If the cursor is within a line but not within a word marked up by a character style, the styles box will display the paragraph style the paragraph is using. The style area only shows which paragraph style is in operation for each paragraph. The styles box is shown below:
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/stylesbox.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>The styles box showing some styles available to the user</phrase></textobject>
    </mediaobject>

    <para>
      Word has quite a few built in styles such as those shown above that can be used to markup certain sections of text. Notice that, to a certain extent, the styles box visually indicates, for each style, how the text of a paragraph formatted with it will look. One could select <emphasis>heading1</emphasis> for example and the paragraph which the cursor is currently residing in will be formatted according to the parameters of the selected style.
    </para>

    <para>
      One is not limited to the use of the built in styles, the creation of new styles is also possible. To do this, click on the menu <guimenu>Format</guimenu> and then click on <guimenuitem>Styles</guimenuitem>. The Style control dialog box will pop up:
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/styledialogbox.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>The style control dialog box</phrase></textobject>
    </mediaobject>

    <para>
      One can use this as an alternative means to applying a style to a paragraph instead of using the drop down styles box explained earlier. One can also modify an existing style by clicking on <emphasis>Modify</emphasis> or create a new style by clicking on <emphasis>New</emphasis>. All existing styles are available to the user from the dialog box by changing the value of the <emphasis>List</emphasis> drop-down menu:
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/allstyles.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>All existing styles are available to the user for modification</phrase></textobject>
    </mediaobject>
      
    <para>The creation of a new style for the single paragraph in the document is shown below:</para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/newquestionstyle.png" format="PNG" align="center"/>
      </imageobject>
      <textobject>
        <phrase>The new style dialog box showing the creation of a new style</phrase>
      </textobject>
    </mediaobject>

    <para>
      The style's name is set to &quot;Question&quot; since the paragraph contains a question, note that I am not suggesting that one should mark up each question in the document, one may however. I am merely illustrating the process of creating a new style. Notice that one can set the <emphasis>style type</emphasis> to <emphasis>Paragraph</emphasis> or <emphasis>Character</emphasis>. Character styles will be discussed later. One may also specify which style should be applied to the paragraph following the current:
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/stylefollowingpara.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>Changing the style of the paragraph following the current</phrase></textobject>
    </mediaobject>
      
    <para>
      One may also specify a style to base the new style on so that the new style inherits the properties of another. This can be useful for short-cutting the creation of styles that only differ slightly. To finish creating the new style, exit the dialog boxes by clicking on <emphasis>OK</emphasis> and then <emphasis>Apply</emphasis>. The new style will be applied to the current paragraph:
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/questionstylenewapplied.png" format="PNG" align="center"/>
      </imageobject>
      <textobject>
        <phrase>The newly created style has been applied to the current paragraph</phrase>
      </textobject>
    </mediaobject>

    <para>
      The new style is now available in the drop down list of styles, it can be applied to any number of paragraphs and they will all adopt the formatting parameters specified by the style. One may modify an existing style at any time. Changing the font of the <emphasis>Question</emphasis> style is shown below:
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/modifyqstylefont.png" format="PNG" align="center"/>
      </imageobject>
      <textobject>
        <phrase>Modifying the font of the <emphasis>Question</emphasis> style</phrase>
      </textobject>
    </mediaobject>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/questionfont.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>The new font of the <emphasis>Question</emphasis> style</phrase></textobject>
    </mediaobject>

    <para>Changing the paragraph settings of the <emphasis>Question</emphasis> style is shown below:</para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/changingquestionpara.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>Changing the paragraph settings of the <emphasis>Question</emphasis> style</phrase></textobject>
    </mediaobject>

    <para>
      The result of the previously indicated formatting on the appearance of the text marked up under the <emphasis>Question</emphasis> style is shown below:
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/questionchanged.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>The result of the previously indicated formatting on the appearance of the text marked up under the <emphasis>Question</emphasis> style</phrase></textobject>
    </mediaobject>

    <para>
      Some more text was added to the document. A new style called <emphasis>Body Text</emphasis> was also created. The modifications are shown below:
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/moreformatting.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>The result of the additional formatting discussed above</phrase></textobject>
    </mediaobject>

    <para>
      Notice how every paragraph has been marked up with a style and how much clearer the structure of the document is. It is content oriented with little styling, if the styling for <emphasis>Question</emphasis> had been left plain it would be almost entirely content oriented. No structure is enforced by using styles but the structure is made more explicit, if one applies a little self discipline ones documents can always afford this kind of structural quality. The result of changing the fonts of the <emphasis>Question</emphasis> style and the <emphasis>Body Text</emphasis> style is shown below: 
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/newformatting.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>The result of changing the fonts of the <emphasis>Question</emphasis> and <emphasis>Body Text</emphasis> styles</phrase></textobject>
    </mediaobject>

    <para>
      The ease with which overall changes to a document marked up with styles can be made has been illustrated. By applying styles to every paragraph in a document one can ensure that the document remains consistent with regards to how reoccurring document elements appear. One can ensure that a program listing is always marked up in a certain way, that a section title is always marked up in a certain way and so on such that the document has a standard appearance. This can be enforced to an even greater extent by using templates. The steps to do this are simplistic:
    </para>

    <orderedlist>
      <listitem>
        <para>Create a new template</para>
        <mediaobject>
          <imageobject>
            <imagedata fileref="files/images/newtemplate.png" format="PNG" align="center"/>
          </imageobject>
          <textobject><phrase>Creating a new template</phrase></textobject>
        </mediaobject>
        <para/>
      </listitem>

      <listitem>
        <para>
          Create all desired styles, make sure that the <emphasis>Add to template</emphasis> check box on the new style dialog box is checked upon creation.
        </para>

        <mediaobject>
          <imageobject>
            <imagedata fileref="files/images/stylelist.png" format="PNG" align="center"/>
          </imageobject>
          <textobject><phrase>Create the styles</phrase></textobject>
        </mediaobject>
        <para/>
      </listitem>

      <listitem>
        <para>
          Perhaps even create a template layout of some sort.
        </para>
        <mediaobject>
          <imageobject>
            <imagedata fileref="files/images/stylesfulldoc.png" format="PNG" align="center"/>
          </imageobject>
          <textobject><phrase>A template with styles</phrase></textobject>
        </mediaobject>
      </listitem>
    </orderedlist> 

    <para>
      After saving the template one may then use it as a basis for a new document, all the defined styles will be available to use. Character styles are styles that are applied to sequences of characters as apposed to paragraphs with paragraph styles.  The application of a character style to a sequence of characters is simplistic. 
    </para>

    <para>
      Imagine that one wants to include Java program listings within ones documents. A new style is created called &quot;Java Program&quot; that will display the program listing according to the formatting options specified. This is used to markup a Java program:
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/javaprog.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>A Java program marked up in the style <emphasis>Java Program</emphasis></phrase></textobject>
    </mediaobject>

    <para>
      Note that each line of the program is marked up as <emphasis>Java Program</emphasis>. It was not necessary to markup each line separately, one may highlight many lines and apply a style. Alternatively one may set the style of the first line and the subsequent lines will be automatically marked up as <emphasis>Java Program</emphasis> because in the creation of <emphasis>Java Program</emphasis> it was specified that the following paragraph should be marked up in <emphasis>Java Program</emphasis> too.
    </para>
      
    <para>
      It was decided that the word &quot;String&quot; should be marked up in it's own style as a &quot;Java Object&quot; since it is a Java Object and the desired effect is that <emphasis>Object</emphasis>s should appear differently. The word &quot;String&quot; was selected and it's colour changed to pink from the Word toolbar and the styles dialog box was bought up by selecting <emphasis>Format</emphasis>..<emphasis>Style</emphasis> from the menu:
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/javaobjectstyle.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>Creating a character style for Java Objects</phrase></textobject>
    </mediaobject>

    <para>
      An alternative way of setting the formatting parameters of a particular style has just been illustrated. One may select the text, or whole paragraph, apply the desired formatting and then create a new style from the menu as before, the formatting that was applied to the selection will be carried through to the new style dialog box. Changing the style so that the paragraph following the current is set to <emphasis>Java Program</emphasis> is shown below:
    </para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/javaprogstyle.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>Changing the style so that the paragraph following the current is set to <emphasis>Java Program</emphasis></phrase></textobject>
    </mediaobject>

    <para>The completed modification is shown below:</para>

    <mediaobject>
      <imageobject>
        <imagedata fileref="files/images/javaprogstringdone.png" format="PNG" align="center"/>
      </imageobject>
      <textobject><phrase>The result of the modifications explained above</phrase></textobject>
    </mediaobject>

    <para>
      Notice that the the styles box shows <emphasis>Java Object</emphasis> when the cursor is within the sequence of characters marked up as the character style <emphasis>Java Object</emphasis> and that the style area on the left still shows <emphasis>JavaProgram</emphasis>. Modifying a character style within a paragraph style will only effect the character style and vice-versa.
    </para>

    <para>
      One can transform Word documents to <acronym>CSS</acronym> Compliant <acronym>HTML</acronym> by using the macro available from: <ulink url="http://www.geocities.com/w2css/">http://www.geocities.com/w2css/</ulink>, the styles are converted to <acronym>CSS</acronym> and the document converted to <acronym>HTML</acronym> that implements the <acronym>CSS</acronym>.
    </para>
  </sect1>

  <sect1 id="MSWord-References"><title>References</title>
    <itemizedlist>
      <listitem>
        <para><ulink url="http://www.geocities.com/w2css/styles/">http://www.geocities.com/w2css/styles/</ulink></para>
        <para>Tutorials On Styles, COPYRIGHT 1998 by Lewis Gartenberg</para>
      </listitem>

      <listitem>
        <para><ulink url="http://www.addbalance.com/usersguide/styles.htm">http://www.addbalance.com/usersguide/styles.htm</ulink></para>
        <para>Understanding Styles in Microsoft Word</para>
      </listitem>

      <listitem>
        <para><ulink url="http://www.fgcu.edu/support/office2000/word/styles.html">http://www.fgcu.edu/support/office2000/word/styles.html</ulink></para>
        <para>Some Word Styles Tutorial</para>
      </listitem>

      <listitem>
        <para><ulink url="http://officeupdate.microsoft.com/legal/styles.asp">http://officeupdate.microsoft.com/legal/styles.asp</ulink>
        </para>
        <para>Understanding Styles</para>
      </listitem>

      <listitem>
        <para><ulink url="http://www.wordpool.co.uk/wfc/art/Scripts.htm">http://www.wordpool.co.uk/wfc/art/Scripts.htm</ulink>
        </para>
        <para>Using Word Styles for Script Templates</para>
      </listitem>
    </itemizedlist>
  </sect1>
</article>

