NAME

TeX::DVI -- write out DVI (Device INdependent) file

SYNOPSIS

use TeX::DVI;
use Font::TFM;

my $dvi = new TeX::DVI "texput.dvi";
my $font = new_at Font::TFM "cmr10", 12;
$dvi->preamble();
$dvi->begin_page();
$dvi->push();
my $fn = $dvi->font_def($font);
$dvi->font($fn);
$dvi->word("difficulty");
$dvi->hskip($font->space());
$dvi->word("AVA");
$dvi->black_box($font->em_width(), $font->x_height());
$dvi->pop();
$dvi->end_page();
$dvi->postamble();

DESCRIPTION

Method TeX::DVI::new creates a new DVI object in memory and opens the output DVI file. After that, elements can be written into the file using appropriate methods.

These are the methods available on the `Font::TFM' object:

preamble, postamble, begin_page, end_page, push, pop

Writes out appropriate command of the .dvi file.

font_def

The parameter is a reference to a Font::TFM object. Info out of this object will be printed out. The method returns the internal number of the font in this .dvi file.

font

Writes out the font_sel command, the parametr is the number returned by font_def.

hskip, vskip

Skips.

black_box

Creates a black box, can be used for hrules and vrules.

special

Writes out the special command, one parameter is written as the command.

word

Writes out a word given as the first parameter. The currently selected font is used to gather information about ligatures and kernings.

CHANGES

0.03 Sun Feb 16 13:55:26 MET 1997

TeX::DVI::word no longer does the lig/kern expansion but calls Font::TFM::expand.

Little/big endian incompatibility fixed.

Name set to TeX::DVI instead of just DVI.

0.02 Thu Feb 13 20:43:38 MET 1997

First version released/announced on public.

BUGS

The error handling is rather weak -- the modul currently assumes you know why you call the method you call.

VERSION

0.03

SEE ALSO

Font::TFM, perl(1).

AUTHOR

(c) 1996, 1997 Jan Pazdziora, adelton@fi.muni.cz

at Faculty of Informatics, Masaryk University, Brno