Compare Commands That Control The Table Format¶
- \ <fw> <dp> <pl> <tm> <bm> <tw>
This is the general formatting command, where <fw> <dp> <pl> <tm> <bm> and <tw> all are numbers. This is an line to set the field width of each printed number to <fw>, the number of decimal places to be printed to <dp>, the page length to <pl> lines, the top margin to <tm> lines, the bottom margin to <bm> lines, and the width of the titles to <tw>. The last three may be omitted. The default values are 7, 1, 60, 3, 9, and 32; these will be in effect if this command is omitted. Note that the title width will establish the column width for the first row of a spreadsheet when the \xls command is employed.
- \decs <number>
This command changes only the number of decimal places printed, and so is simpler to use than the general formatting command described above. Note that this command overrides the second argument of the general formatting command. Note also that this setting controls the precision when the \xls option is employed.
- \growthwidth (gw) <number>
This command allows a different width for the growth rate columns than for the other columns. Note that the width must be at least as big as the date expression (“2000-2009”) plus 1, so that 10 would be the smallest width allowed. This feature is handy when printing a lot of growth rates and you need to conserve space.
- \field <number>
This command can be used to specify the column width of the data in the table. Give the column width as the argument. Note that this overrides the first argument in the general formatting command.
- \under <character>
This command specifies the underlining character for dates. For example, for single-line underlining, give the command “\under -”. For double-line underlining, give the command “\under =”. Any character is legal for underlining except ‘n’, which turns off the feature.
- \pages <on|off>
This command is used to turn page numbering on or off.
- \commas <on | off>
Giving this command with the “on” argument, or with no argument, tells Compare to print numbers with commas separating thousands, millions, etc. It takes effect at the point in the table where the \comma command is given. “\comma off” turns commas back off again. This command helps with the formatting of very large numbers. However, remember that Compare and G7 work in single-precision floating point arithmetic. Therefore, only about seven digits are significant.
- \missing <text>
This command supplies text to be printed in the table for missing values of variables, or for expressions that default to missing values, because they are based on variables which have missing data. For example: “\miss N/A”.