The Template Library is a hierarchic display of template sets and can be reached through Edit > Template Library or by pushing Ctrl+T.
It contains several template sets by default (such as Generic, Rings, Amino Acids, and so on), and a customizable set called My Templates.
The dialogue has buttons to customize template handling. You can add and remove template sets, reorganize them, or open the Options dialog.
The cleaning options of the templates can be set using the last three buttons on the toolbar. With these buttons, you can specify how the template will be placed onto the canvas (NoClean, 2D, or 3D). These options can be set separately for each template category.
{info} The buttons are synchronized with the Template Options dialog settings.
Maximum number of molecules: Template sets can contain a large number of molecules. This option maximizes the number of structures being loaded from a template set when it is selected in the Template Library. For example, if the option is set to 100, only 100 structures will be loaded to memory and displayed in the library, even if the underlying molecule file contained 25000 structures.
Coordinates: This option is to specify an operation affecting the coordinates when the templates are placed on the canvas.
For example, the result of placing L-Alanine to the canvas with different options:
As in the original structures | Always perform Clean2D | As in the original structures |
---|---|---|
Size of templates: The size with which each template is displayed in the library, measured in pixels.
Maximum number of buttons: This determines the maximum number of buttons allowed on the Advanced Templates Toolbar.
It is possible to add new template sets to the library by using the Add Template Set button on the toolbar.
Using the Browse button you can select a directory or a file of the file system. (Any chemical file format recognized by MarvinSketch can be used for creating a template). Specifying a directory will create a hierarchic template set containing all subdirectories and files.
It is also possible to specify a location with FTP protocol. The underlying subdirectories and files will be displayed as with the local file system.
{info} Protocols other than file and FTP are not supported. However remote file systems can help to overcome this restriction.
You can remove template sets from the library by using the Remove Template Set button on the toolbar.
The template set will only be removed from the library, without modifying files on the file system.