<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="_c74_vig.xsl" type="text/xsl"?>
<vignette name="Templates" package="Max" rankfactor="3">

  <h1>Templates</h1>
  <p>
			You can create and use templates in Max. A template is a Max patcher
      document that includes a patch intended to get you started with
      preferences for the look of your Max patching environment and for
      creating certain types of applications you use often. Templates are
      generally larger and more complex than a
			<link type="vignette" module="core" name="snippets">snippet</link>,
			and they open in their own untitled Patcher Window of a preconfigured
      size rather than being pasted into an unlocked patcher window as a
      clipping is.
		</p>

  <br/>
  <bluebox>
    <h2>Using a template</h2>
    <ul>
      <li>
  			Choose <b>File &gt; New From Template&gt;</b>. A list of any
  			templates you may have appears on the menu. Choose a template from the
        list and it will open in a new untitled Patcher window
  		</li>
    </ul>
    <p>
      <img src="images/templates_1.png"/>
    </p>
  </bluebox>

  <br/>
  <space/>
  <bluebox>
    <h2>Creating a template</h2>
    <p>
			The easiest way to create a template that contains instructions about
      default fonts and colors for the patcher window and max objects and
      user interface objects is to use the
			<link module="core" type="vignette" name="format_palette">Format palette</link>
			to apply
			<link module="core" type="vignette" name="format_palette_patcher_level">patcher-level formatting</link>
			to a new patcher document.
		</p>

    <ul>
      <li>
  			To create a template from a Max patcher, choose <b>File &gt; Create Template....</b> from the file menu. A dialog box will appear that
        contains the name of a Max template file (the default filename will be
        based on the filename of the currently open Max patch).
  		</li>
    </ul>
    <p>
      <img src="images/templates_2.png"/>
    </p>

    <p>
			When you Click on <b>Save</b>, the new template will be created and will
      appear in the listing of templates in your File menu.
		</p>
    <p>
      <img src="images/templates_3.png"/>
    </p>
  </bluebox>

  <h2>The Default Template</h2>
  <p>
		You can choose a template and set it to be the <i>default template</i>
    for your Max patching environment. From then on, any new patcher window
    you have the look and settings associated with the original template.
	</p>
  <p>
    <b>Note:</b> Setting a new default template does not alter or exclude
    any styles you have added to your Max patching library.
	</p>
  <br/>

  <a name="default"/>
  <bluebox>
    <h2>Creating a Default Template</h2>
    <ul>
      <li>
  			Choose <b>File &gt; New From Template &gt;</b> from the edit menu.
        A list of any templates you may have appears on the menu. Choose one
        from the list and it will open in a new untitled Patcher window.
        (You can also create a patcher you would use as a template).
  		</li>
      <li>
  			Choose <b>File &gt; Create Template....</b> from the file menu.
  			A dialog box will appear that contains the name of a Max template file.
  		</li>
      <li>
  			Click in the <b>Default for New Patchers</b> checkbox.
  		</li>
    </ul>
    <p>
      <img src="images/templates_4.png"/>
    </p>

    <p>
			When you Click on <b>Save</b>, the template will become your default
      patcher. Its settings (including the font and window size/location) will
      be used each time you launch Max or create a new patcher window.
		</p>
  </bluebox>
  <br/>
  <space/>
</vignette>
