xdviの縦書時の\scalebox(Re: \scalebox を使うと dviout の印刷がずれる)

名前: uchiyama
日時: 2003-03-22 00:25:52
IPアドレス: 218.229.55.*

>>17718 special.cに次のパッチをあてておけば、解消されませんか。 xdvi-jpのMailing Listに報告してあります。 diff -ruN xdvik-22.40v/texk/xdvik/special.c xdvik-22.40v.patched/texk/xdvik/spec ial.c --- xdvik-22.40v/texk/xdvik/special.c Sat Mar 22 00:08:39 2003 +++ xdvik-22.40v.patched/texk/xdvik/special.c Sat Mar 22 00:07:11 2003 @@ -66,6 +66,9 @@ #define S_IWUSR 0200 #endif #include "dvi.h" /* SU 2000/03/09: added */ +#ifdef PTEX +#include "xdvi.h" /* T. Uchiyama 2003/3/21 */ +#endif # if HAVE_SYS_WAIT_H # include <sys/wait.h> @@ -817,8 +820,21 @@ ++p; n = sscanf(p, "1 %lf div 1 %lf div scale", &xscale, &yscale); if (n == 2) { +#ifdef PTEX + if(TATE) { + double temp; + temp = xscale; + xscale = 1.0/yscale; + yscale = 1.0/temp; + } + else { + xscale = 1.0/xscale; + yscale = 1.0/yscale; + } +#else xscale = 1.0/xscale; yscale = 1.0/yscale; +#endif } else { Fprintf(stderr, "%s: cannot get scaling factors.\n", prog); @@ -835,6 +851,14 @@ while (*p != '\0' && isdigit(*p)) --p; if (*p != '+' && *p != '-') ++p; n = sscanf(p, "%lf %lf scale", &xscale, &yscale); +#ifdef PTEX + if(TATE) { + double temp; + temp = xscale; + xscale = yscale; + yscale = temp; + } +#endif if (n != 2) { Fprintf(stderr, "%s: cannot get scaling factors.\n", prog);

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます)