bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

images for Info


From: Jan Nieuwenhuizen
Subject: images for Info
Date: Wed, 19 Mar 2003 23:24:31 +0100
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (gnu/linux)

I've had a quick look at images for Info and made a proof of concept
code for using images with Emacs' Info viewer.  Find the latest
version at:

    http://lilypond.org/~jan/info-image/

To bring images to Info, we need three things:

  1. An image tag for the info format
  2. An image command in texinfo that writes the image tag
  3. A viewer that displays images for each image tag

The image tag I'm using is:

    [image: <image-filename>]

as this makes some sense in a non-image enabled Info viewer.

To avoid hacking makeinfo at this stage, I'm using texinfo's @image
command to write the image tags.  That's a bit kludgy but very easy to
do.  Makeinfo demands the existence of a .txt file for each image and
puts its contents straight into the info file.  The .txt file needs
only to contain the image tag.

For example, create image FOO.png and the texinfo text substitute
image FOO.txt.  FOO.txt should contain:

    [image: FOO.png]

In texinfo, use the command

    @image{FOO}

The file info-image.el makes Emacs' Info viewer display images from
image tags.

The most important thing to decide on is the image tag.  Also,
makeinfo should write the image tags.  We could simply change the
@image command's behaviour, having makeinfo write the image tag even
if it cannot find .TXT file, or should we create a new command?

Greetings,
Jan.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]