|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T g
Length: 800 (0x320)
Types: TextFile
Names: »genbox.c«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
└─⟦c319c2751⟧ »unix3.0/TeX3.0.tar.Z«
└─⟦036c765ac⟧
└─⟦this⟧ »TeX3.0/TeXgraphics/transfig/fig2dev/dev/genbox.c«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
└─⟦63303ae94⟧ »unix3.14/TeX3.14.tar.Z«
└─⟦c58930e5c⟧
└─⟦this⟧ »TeX3.14/TeXgraphics/transfig/fig2dev/dev/genbox.c«
/*
* genbox : Empty box driver for fig2dev translator
*
*/
#include <stdio.h>
#include "object.h"
#include "fig2dev.h"
void genbox_option(opt, optarg)
char opt, *optarg;
{
switch (opt) {
case 's':
case 'f':
case 'm':
case 'L':
break;
default:
put_msg(Err_badarg, opt, "box");
exit(1);
}
}
void genbox_start(objects)
F_compound *objects;
{
double ppi;
if (0 == (ppi = (double)objects->nwcorner.x)) {
fprintf(stderr, "Resolution is zero!! default to 80 ppi\n");
ppi = 80.0;
}
/* draw box */
fprintf(tfp, "\\makebox[%.3fin]{\\rule{0in}{%.3fin}}\n",
(urx-llx)*mag/ppi, (ury-lly)*mag/ppi);
}
struct driver dev_box = {
genbox_option,
genbox_start,
gendev_null,
gendev_null,
gendev_null,
gendev_null,
gendev_null,
gendev_null,
INCLUDE_TEXT
};