- fprintf(file, "\\paperfontsize %s\n", fontsize.c_str());
-
- spacing.writeFile(file);
-
- fprintf(file, "\\papersize %s\n", string_papersize[papersize2]);
- fprintf(file, "\\paperpackage %s\n",
- string_paperpackages[paperpackage]);
- fprintf(file, "\\use_geometry %d\n",use_geometry);
- fprintf(file, "\\use_amsmath %d\n",use_amsmath);
- fprintf(file, "\\paperorientation %s\n",
- string_orientation[orientation]);
- if (!paperwidth.empty())
- fprintf(file, "\\paperwidth %s\n",
- VSpace(paperwidth).asLyXCommand().c_str());
- if (!paperheight.empty())
- fprintf(file, "\\paperheight %s\n",
- VSpace(paperheight).asLyXCommand().c_str());
- if (!leftmargin.empty())
- fprintf(file, "\\leftmargin %s\n",
- VSpace(leftmargin).asLyXCommand().c_str());
- if (!topmargin.empty())
- fprintf(file, "\\topmargin %s\n",
- VSpace(topmargin).asLyXCommand().c_str());
- if (!rightmargin.empty())
- fprintf(file, "\\rightmargin %s\n",
- VSpace(rightmargin).asLyXCommand().c_str());
- if (!bottommargin.empty())
- fprintf(file, "\\bottommargin %s\n",
- VSpace(bottommargin).asLyXCommand().c_str());
- if (!headheight.empty())
- fprintf(file, "\\headheight %s\n",
- VSpace(headheight).asLyXCommand().c_str());
- if (!headsep.empty())
- fprintf(file, "\\headsep %s\n",
- VSpace(headsep).asLyXCommand().c_str());
- if (!footskip.empty())
- fprintf(file, "\\footskip %s\n",
- VSpace(footskip).asLyXCommand().c_str());
- fprintf(file, "\\secnumdepth %d\n", secnumdepth);
- fprintf(file, "\\tocdepth %d\n", tocdepth);
- fprintf(file, "\\paragraph_separation %s\n",
- string_paragraph_separation[paragraph_separation]);
- fprintf(file, "\\defskip %s\n", defskip.asLyXCommand().c_str());
- fprintf(file, "\\quotes_language %s\n",
- string_quotes_language[quotes_language]);
- switch(quotes_times) {
- case InsetQuotes::SingleQ:
- fprintf(file, "\\quotes_times 1\n"); break;
- case InsetQuotes::DoubleQ:
- fprintf(file, "\\quotes_times 2\n"); break;
- }
- fprintf(file, "\\papercolumns %d\n", columns);
- fprintf(file, "\\papersides %d\n", sides);
- fprintf(file, "\\paperpagestyle %s\n", pagestyle.c_str());