This task is about adding, within an item of an OQMath document, a picture and its declaration.
Prerequisite:
Task steps
TO BE COMPLETED
- download a picture of your choice into the directory
pics of the collection you created, name it appropriately. If unsure, download the picture the logo file and name it logo.jpg
- open the file
first.oqmath resulting of the collection creation
- move your cursor into a space between
<CMP> and </CMP> (and not between two dollar signs)
- make sure the templates tab (on the left) is opened
- click once Image Declaration to insert the
<private/> element
- insert id
logo in the first template zone
- correct the path before the next template zone from
MinePics to mycollectionPics (if mycollection was the collection name (this path is a web-path, relative to the URL/ActiveMath2/main/book.cmd)
- similarly change the
mine to mycollection (or so) and put logo.jpg as file name.
the result should like:
<private id="logo">
<data format="html" href="../mycollectionPics/logo.jpg"/>
<data format="pdf" href="./content/mycollection/pics/logo.jpg"/>
</private>
<omlet argstr="logo" type="image" action="display">
the activemath logo
</omlet>
then invoke the template Image Use and fill the ID as logo and the caption to the appropriate text
- now open the tab
Ant Farm select the document _mycollection All Documents` then click the running man
- make sure this process is terminated, saying “BUILD SUCCESSFUL”
- go to the first page of the book we created
- see the picture.
Comments and variations
- we have put the picture declaration (the
<private> element) at the same place as the <omlet/> element. It is possible to relax this and put the private anywhere else as long as it can be referenced
Trackback URL for this post:
http://eds.activemath.org/de/trackback/121