Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/root/sys/src/cmd/tex/tpic/libtex/tex.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#ifndef BUFSIZE
#include <stdio.h>
#endif
#define SCX(A) (int)((A)*e1->scalex+0.5)
#define SCY(A) (int)((A)*e1->scaley+0.5)
#define TRX(A) (int)(((A) - e1->xmin)*e1->scalex  + e1->left)
#define TRY(A) (int)(((A) - e1->ymin)*e1->scaley + e1->bottom)
#define DTRX(A) (((A) - e1->xmin)*e1->scalex  + e1->left)
#define DTRY(A) (((A) - e1->ymin)*e1->scaley + e1->bottom)
#define INCHES(A) ((A)/1000.)
extern struct penvir {
	double left, bottom;
	double xmin, ymin;
	double scalex, scaley;
	double sidex, sidey;
	double copyx, copyy;
	char *font;
	int psize;
	int pen;
	int pdiam;
	double dashlen;
	} *e0, *e1, *e2, *esave;
enum {
	SOLIDPEN, DASHPEN, DOTPEN
};
extern FILE *TEXFILE;
extern int round();

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.