Inserting an image inline with .char

Last-Updated: 2024-12-16

Sources

Mapping an image as a glyph

The .char request is used to define a new glyph and give it a name. With a diversion, this new glyph can be an image.

Example

In this example, provided by Peter Schaffter (2024-12/msg00085),

.nr img-w 25p
.nr img-h 15p
.di img-div
.nf
\X'pdf: pdfpic velo.pdf'
.di
.char \[img] \*[img-div]
.ds cycle \v'-\n[img-h]u'\[img]\h'\n[img-w]u'
That's a nice bike \*[cycle] you've got there!

Some things to be aware of:

The result is available at the top of the page (resources/char) with it's included image (resources/velo).

← Go back