#include <config.h>
#include <string.h>
#include "common.h"
#include "mdvi.h"
#include "private.h"
Go to the source code of this file.
int mdvi_get_paper_size |
( |
const char * |
name, |
|
|
DviPaper * |
paper |
|
) |
| |
Definition at line 91 of file paper.c.
99 if(sscanf(
name,
"%lfx%lf%c%c", &a, &b, &c, &d) == 4) {
100 sprintf(buf,
"%12.16f%c%c", a, c, d);
102 sprintf(buf,
"%12.16f%c%c", b, c, d);
104 paper->
name =
_(
"custom");
106 }
else if(sscanf(
name,
"%lf%c%c,%lf%c%c", &a, &c, &d, &b, &e, &f) == 6) {
107 sprintf(buf,
"%12.16f%c%c", a, c, d);
109 sprintf(buf,
"%12.16f%c%c", b, e, f);
111 paper->
name =
_(
"custom");
120 if(strcasecmp(sp->
name,
name) == 0) {
Definition at line 130 of file paper.c.
143 if(
papers[i].width == NULL) {
148 }
else if(first >= 0)
152 for(i = first;
papers[i].
name&& count > 0; i++) {