An Introduction to XML (TEI):

by Laura Mandell, Miami Univ. of Ohio

B. Inserting Figures / Images

(the above image is linked to a picture of the whole document in which it appears)

B. The basic code for inserting a figure is: <figure><head>[figure title that you want to appear under it]</head></figure>

To this basic code, I have added two things:

1) a small version of the picture that will be inserted in the text and appear in it

-- to the basic <figure> code, I added an entity name for that image.

2) a link around the thumbnail of the picture that will take you to a full-sized version

-- to the <figure></figure> code, I have added on one side <xref doc="sculpt">, and, on the other, close-codes for each: </xref> </p>

URLs for both the image and the link should be added to my "figures.ent" and "urls.ent" documents:

With the prolog properly encoded and this figure inserted, my document transformed into an HTML file looks like this on line:

A footnote number appears here as well; you may now go on to inserting footnotes and links


Note 3: The large picture, here called "sculpt," is not actually a figure imported into either the TEI or the HTML documents: really, the TEI and HTML only link to it. However, it seems to me wise to keep a list of all the figures available as part of your edition.


If you wish to go on, you can see how to

(A) encode frontmatter

(B) insert figures (images)

(C) insert footnotes

(D) links to other site

(E) stanzas and paragraphs

(F) The whole document

(G) Samples


Back to Top

Back to Table of Contents