diff options
author | Joachim Schrod <jschrod@acm.org> | 2007-07-03 17:33:14 +0000 |
---|---|---|
committer | Joachim Schrod <jschrod@acm.org> | 2007-07-03 17:33:14 +0000 |
commit | 95373b09c88da7661e3af62adaf5c6884eaf7dbb (patch) | |
tree | c3860eb1a30a7438472e2596056e207ef460c272 /Build/source/texk/dviljk/dvi2xx.c | |
parent | 289e9ab75592f0d42a0a40aa94edcd78cf236751 (diff) |
Add special dvips-syntax, to specify what shall be done with
psfile specials, since they are incompatible to dvips.
git-svn-id: svn://tug.org/texlive/trunk@4540 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dviljk/dvi2xx.c')
-rw-r--r-- | Build/source/texk/dviljk/dvi2xx.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Build/source/texk/dviljk/dvi2xx.c b/Build/source/texk/dviljk/dvi2xx.c index c790c25b7ae..d44400909fe 100644 --- a/Build/source/texk/dviljk/dvi2xx.c +++ b/Build/source/texk/dviljk/dvi2xx.c @@ -3734,6 +3734,7 @@ typedef enum { COMMENT, HPFILE, HPFILE_VERBATIM, + PSFILE_SYNTAX, PSFILE, LLX, LLY, @@ -3754,6 +3755,7 @@ KeyDesc KeyTab[] = { { COMMENT, "comment", String}, { HPFILE, "hpfile", String}, { HPFILE_VERBATIM, "hpfile-verbatim", String}, + { PSFILE_SYNTAX, "psfile-syntax", String }, { PSFILE, "psfile", String }, { LLX, "llx", Integer}, { LLY, "lly", Integer}, @@ -4096,13 +4098,26 @@ int n; file_type = VerbFile; break; + case PSFILE_SYNTAX: + if ( EQ(k.Val, "ignore") ) + PSFileSyntaxTyp = Ignore; + else if ( EQ(k.Val, "dvilj") ) + PSFileSyntaxTyp = PSFile_dvilj; + else + Warning("Ignored invalid value '%s' for psfile-syntax", k.Val); + break; + case PSFILE: if ( include_file ) { Warning("More than one \\special file name given. %s ignored", include_file); free(include_file); } - include_file = xstrdup(k.Val); - file_type = PSFile; + if ( PSFileSyntaxTyp != Ignore ) { + include_file = xstrdup(k.Val); + file_type = PSFile; + } else { + include_file = NULL; + } break; case LLX: llx = k.v.i; break; |