diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua/luainit.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/luainit.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/luainit.c b/Build/source/texk/web2c/luatexdir/lua/luainit.c index bac5444c2a4..0f9e17ee141 100644 --- a/Build/source/texk/web2c/luatexdir/lua/luainit.c +++ b/Build/source/texk/web2c/luatexdir/lua/luainit.c @@ -73,6 +73,7 @@ const_string LUATEX_IHELP[] = { " --credits display credits and exit", " --debug-format enable format debugging", " --draftmode switch on draft mode (generates no output PDF)", + " --[no-]check-dvi-total-pages exit when DVI exceeds 65535 pages (default: check)", " --[no-]file-line-error disable/enable file:line:error style messages", " --[no-]file-line-error-style aliases of --[no-]file-line-error", " --fmt=FORMAT load the format file FORMAT", @@ -290,6 +291,8 @@ static struct option long_options[] = { {"disable-write18", 0, &shellenabledp, -1}, {"shell-restricted", 0, 0, 0}, {"debug-format", 0, &debug_format_file, 1}, + {"check-dvi-total-pages", 0, &check_dvi_total_pages, 1}, + {"no-check-dvi-total-pages", 0, &check_dvi_total_pages, 0}, {"file-line-error-style", 0, &filelineerrorstylep, 1}, {"no-file-line-error-style", 0, &filelineerrorstylep, -1}, /*tex Shorter option names for the above. */ @@ -443,6 +446,10 @@ static void parse_options(int ac, char **av) WARNING1("Ignoring unknown value `%s' for --output-format",optarg); output_mode_option = 0; } + } else if (ARGUMENT_IS("check-dvi-total-pages")) { + check_dvi_total_pages = 1; + } else if (ARGUMENT_IS("no-check-dvi-total-pages")) { + check_dvi_total_pages = 0; } else if (ARGUMENT_IS("draftmode")) { draft_mode_option = 1; draft_mode_value = 1; @@ -982,6 +989,7 @@ void lua_initialize(int ac, char **av) mk_suffixlist(); #endif /*tex Must be initialized before options are parsed and might get adapted by config table. */ + check_dvi_total_pages = true; interactionoption = 4; filelineerrorstylep = false; haltonerrorp = false; @@ -1150,6 +1158,8 @@ void lua_initialize(int ac, char **av) init_kpse(); kpse_init = 1; } + /*tex |check_dvi_total_pages| (boolean) */ + get_lua_boolean("texconfig", "check_dvi_total_pages", &check_dvi_total_pages); /*tex |prohibit_file_trace| (boolean) */ get_lua_boolean("texconfig", "trace_file_names", &tracefilenames); /*tex |file_line_error| */ |