[Top][All Lists]

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

[help-3dldf] Making flipbooks with TeX (fwd)

From: Laurence Finston
Subject: [help-3dldf] Making flipbooks with TeX (fwd)
Date: Wed, 10 Aug 2005 21:46:43 +0200 (MEST)

---------- Forwarded message ----------
Date: Wed, 10 Aug 2005 21:38:40 +0200 (MEST)
From: Laurence Finston <address@hidden>
To: liste metafont <address@hidden>
Subject: Making flipbooks with TeX


This is a copy of a posting of mine to the "Advice and Tutorials"
forum of the Animation Corner website:

I've been uploading animations and artwork to this website and posting to
its forums.  Users of GNU 3DLDF may find some of this of interest.

I now also have a gallery at the deviantART website, in case anyone wants
to take a look:

I've also uploaded an animation to my personal website:
I will probably be adding more.

I've attached the TeX code rather than including it below.



I've finally gotten around to figuring out to make real
flipbooks using TeX.  The following file of TeX code does the trick.
I've uploaded two examples of the result to "Home > Project
Development > Storyboards".  I couldn't think of anywhere better to
put them.

Each image displays the front and back of a single sheet of paper,
properly called the "recto" and the "verso".  I've left a bit of a
margin around the box, because printers are generally not precise
enough.  In the actual PostScript output, there should be a centimeter
of space at the top and left margins of the recto, and the same amount
of space at the top and _right_ margins of the verso.  With a bit of
luck, the boxes will match up when printed. This may require some
adjustments; I haven't tested it yet.

I repeat here what I wrote in my previous posting: By folding a sheet
of paper four times, one gets two gatherings with 8 right-hand pages
each. If the images have been placed properly on the sheet, the edges
can be cut (like old-fashioned books), the left-hand side can be
stapled, and you've got a little book. Half of the images are on each
side of the original sheet, and half of the images on each side are

To use my examples, always fold between the mid-points of the two (current)
long sides.  The paper is folded in the same way for portrait and
landscape, but the upside-down images differ.

To use 'flipbook.tex', you must have 16 images in EPS (Encapsulated
PostScript) format.  They should be of the same size, 4cm x 6.5cm
(width by height) for portrait or 6.5cm x 4cm for landscape.  THE
the way I did it when I made the examples. It's possible to make the
frames part of the TeX file, but it requires a somewhat different

This example assumes you're using DIN A4 paper.  Since the margins
will have to be cut off anyway, it doesn't matter that much if you're
using a slightly different size, such as 8.5 x 11in paper.  However,
you may have to adjust the '\vsize' (vertical size) and '\hsize'
(horizontal size or line width) values, and the "papersize \special"
for landscape mode.

You'll also need to replace "my_image_<number>.eps" with the names of
your EPS files.  "my_image_0.eps" is a placeholder: it should contain
an empty frame.

If you look at the code below, you will see two lines that look like

%\landscapetrue \landscapefalse

The percent sign is the comment character in TeX, so here,
'\landscapetrue' is commented out and you will get portrait output. If
you want landscape, just comment-out '\landscapefalse' instead.

With a bit of luck, running 'tex flipbook' should produce the file
'flipbook.dvi'.  You'll need to convert it to structured PostScript
(PS) using 'dvips':

dvips -o flipbook.dvi

You can now view '' in Ghostview:


Or you can print it with 'lpr':

lpr -P<your print queue>

Or you can convert it to PDF (Portable Document Format):

ps2pdf flipbook.pdf

If all has gone well, you can now print it out, staple the left side,
cut the pages, and start flipping.

If you have more than sixteen images, you'll just have to copy the
code below to make more pages in the same way, and staple the
gatherings together.

As always, if you have any questions, please feel free to ask.

Laurence Finston

Attachment: flpbk.tex.gz
Description: Binary data

Description: Binary data

Description: Binary data

reply via email to

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