Reads a table style from @var{file} and applies it to all of the
output tables. The file should be a TableLook @file{.stt} or
@file{.tlo} file.
+
+@item --use-page-setup
+By default, the @code{convert} command uses the default page setup
+(for example, page size and margins) for @var{destination}, or the one
+specified with @option{-O} options, if any. Specify this option to
+ignore these sources of page setup in favor of the one embedded in the
+SPV, if any.
@end table
@node The pspp-output get-table-look Command
Reads a table style from \fIfile\fR and applies it to all of the
output tables. The file should a TableLook \fB.stt\fR or \fB.tlo\fR
file.
+.IP \fB\-\-use\-page\-setup\fR
+By default, the \fBconvert\fR command uses the default page setup
+(for example, page size and margins) for \fIdestination\fR, or the
+one specified with \fB\-O\fR options, if any. Specify this option
+to ignore these sources of page setup in favor of the one embedded
+in the SPV, if any.
.SS The \fBget\-table\-look\fR command
When invoked as \fBpspp\-output get\-table\-look \fIsource
destination\fR, \fBpspp\-output\fR reads SPV file \fIsource\fR,
/* --table-look: TableLook to replace table style for conversion. */
static struct pivot_table_look *table_look;
+/* --use-page-setup: Use page setup from .spv file rather than command line. */
+static bool use_page_setup;
+
/* Number of warnings issued. */
static size_t n_warnings;
if (ps)
{
- output_set_page_setup (ps);
+ if (use_page_setup)
+ output_set_page_setup (ps);
page_setup_destroy (ps);
}
output_item_submit_children (root);
OPT_NO_ASCII_ONLY,
OPT_UTF8_ONLY,
OPT_TABLE_LOOK,
+ OPT_USE_PAGE_SETUP,
OPT_HELP_DEVELOPER,
};
static const struct option long_options[] =
/* "convert" command options. */
{ "force", no_argument, NULL, 'f' },
{ "table-look", required_argument, NULL, OPT_TABLE_LOOK },
+ { "use-page-setup", no_argument, NULL, OPT_USE_PAGE_SETUP },
/* "dump-light-table" command options. */
{ "sort", no_argument, NULL, OPT_SORT },
parse_table_look (optarg);
break;
+ case OPT_USE_PAGE_SETUP:
+ use_page_setup = true;
+ break;
+
case OPT_NO_ASCII_ONLY:
exclude_ascii_only = true;
break;
-O OPTION=VALUE set output option\n\
-f, --force keep output file even given errors\n\
--table-look=FILE override tables' style with TableLook from FILE\n\
+ --use-page-setup use page setup from SOURCE\n\
Other options:\n\
--help display this help and exit\n\
--help-developer display help for developer commands and exit\n\