[tex-k] Patch for dvips to igonore src: specials
Tom Kacvinsky
tjk@ams.org
Fri, 24 May 2002 11:33:07 -0400 (EDT)
I find it irritating that dvips does not grok src: specials. So I
patched dvips.
Here is the code I added to dospecial.c (around line 641):
case 's':
#ifdef TPIC
if (strcmp(p, "sp") == 0) {flushSpline(p+2); return;} /* tpic 2.0 */
if (strncmp(p, "sp ", 3) == 0) {flushSpline(p+3); return;} /* tpic 2.0 */
if (strcmp(p, "sh") == 0) {shadeLast(p+2); return;} /* tpic 2.0 */
if (strncmp(p, "sh ", 3) == 0) {shadeLast(p+3); return;} /* tpic 2.0 */
#endif
/* Handle src: specials. These are of the form
*
* src:xxxyyy
*
* where xxx is a line number and yyy is a filename.
* [2002-05-24, tkacvins]
*/
if (strncmp(p, "src:", 4) == 0 ) {
#ifdef DEBUG
if (dd(D_SPECIAL))
(void)fprintf(stderr, "Skipping source special: %s\n", p) ;
#endif
return ;
}
Tom