Prev | 6.6 How to Make Molecular Documents - Link HTML Text to Slides | Next |
[ Edit | Hyperlink | Insert Images | Insert Script | Dialog Box | Navigation | Protect ]
An ICM Molecular Document contains text and images which can be hyperlinked to the graphical display. Click on the hyperlinked text and then a fully-interactive 3D slide will be displayed. The hyperlinks are usually linked to a set of slides but can also be linked to a series of commands in a script, a web page, a table or alignment. Once a molecular document has been made you can view it in the ICM-Browser (File/Save Project .icb file) or download ActiveICM and view it in a web page or Powerpoint.
To begin creating an ICM document
NOTE: You can add multiple documents into a single file. The documents will be accessible via tabs at the top of the HTML panel. |
6.6.1 How to Add Text or Edit a Molecular Document |
To edit the HTML text in the graphical display
The key formatting tools in the HTML editor are shown below.
6.6.2 How to Make a Hyperlink Between Text and a Slide |
Make a slide or set of slides of the graphical display you wish to link to. See Making Molecular Slides for help on this.Once slides have been created:
6.6.3 Insert Image |
NOTE: The easiest way to add images (PNG or JPEG) into an ICM Document is to use drag and drop. You can drag and drop the image into the ICM Workspace or go to File/Open. Once the image is in the album in the ICM Workspace you can then drag it from the ICM workspace into tthe HTML editor. |
Another way to insert a picture into the HTML text panel
The image name and preview will then be displayed in the ICM Workspace.
6.6.4 Insert Script |
How to insert a script to the text panel
There are 3 ways to add a script - described in more detail below
1. Drag and drop script from ICM Workspace
2. In the HTML Source Editor - right click and select Insert Slide or Action
3. Create an "inline" script
These methods are described below:
Drag and Drop Method
A line as shown below will be added.
<a href="#icm/script/script1">text placed here will be displayed as a link in the document</a>
Another way to add a script to the document is to Insert Action:
Inline Script
A script can be added to the HTML text in the following way
<!--icmscript name="script2" print $1 + $2 --><a name="script2" href="#_">script2</a>
6.6.5 Insert a Dialog Box |
Dialog boxes are provided to enable a viewer to interact with a presentation or document file. The dialog box will be a gui data entry box. For an example here is a script to prompt the user of the file to enter a pdb code:
read pdb $1 ds a_1.
The code above can be saved as a script or inside the html text. To do this:
OR.
<a href="#icm/script/script1">Example Script 2</a>
6.6.6 Document Navigation |
The following buttons shown below aid document navigation. Also remember that more than one document can be stored and the header of each document file will be displayed in multiple tabs in the text panel window.
6.6.7 Protect Shell Objects From Deletion |
When making a molecular document you can protect objects from deletion by the person who reads your document by:
Prev Effects | Home Up | Next Animations |