Re: dvipdfm B4サイズは無理ですか?

名前: GY
日時: 2001-06-12 22:33:41
IPアドレス: 210.132.241.*

スペシャルを使うと任意のサイズが指定できるようです。 スペシャルを使っていない DVI でもできないかと思い, dvipdfm.pdf を調べてみましたが量に圧倒されてしまいました。 ソースを grep したらそれらしいところが見つかったので, そちらで対処してしまいました。 <注意> デフォルトの解像度を 1200dpi に,用紙サイズを a4 にする変更を含んでいます。 紙の大きさは config.ps に書いてあった値から計算したので 誤差があるかも知れません。 diff -cr dvipdfm.org/config dvipdfm/config *** dvipdfm.org/config Tue Jun 12 17:27:25 2001 --- dvipdfm/config Tue Jun 12 17:24:53 2001 *************** *** 23,29 **** % D "/usr/local/bin/distill -quiet -pairs %i %o" % Set default paper size here ! p letter % The "g" option specifies the amount to "grow" annotations by % Many TeX macro pages set the annotation bounding box equal --- 23,29 ---- % D "/usr/local/bin/distill -quiet -pairs %i %o" % Set default paper size here ! p a4 % The "g" option specifies the amount to "grow" annotations by % Many TeX macro pages set the annotation bounding box equal diff -cr dvipdfm.org/dvipdfm.c dvipdfm/dvipdfm.c *** dvipdfm.org/dvipdfm.c Tue Jun 12 17:27:25 2001 --- dvipdfm/dvipdfm.c Tue Jun 12 17:24:53 2001 *************** *** 59,71 **** char *s; struct rect data; } paper_sizes[] = { {"letter" , { 612.0, 792.0}}, {"legal" , { 612.0, 1008.0}}, {"ledger" , { 1224.0, 792.0}}, {"tabloid" , { 792.0, 1224.0}}, {"a5" , { 420.91, 595.27}}, ! {"a4" , { 595.27, 841.82}}, ! {"a3" , { 841.82, 1190.16}}}; static rect get_paper_size (char *string) { --- 59,77 ---- char *s; struct rect data; } paper_sizes[] = { + {"a4" , { 595.27, 841.82}}, {"letter" , { 612.0, 792.0}}, {"legal" , { 612.0, 1008.0}}, {"ledger" , { 1224.0, 792.0}}, {"tabloid" , { 792.0, 1224.0}}, + {"a6" , { 297.64, 420.91}}, {"a5" , { 420.91, 595.27}}, ! {"a3" , { 841.82, 1190.16}}, ! {"b6" , { 364.25, 515.91}}, ! {"b5" , { 515.91, 728.50}}, ! {"b4" , { 728.50, 1031.81}}, ! {"b3" , { 1031.81, 1457.00}}, ! {"b5var" , { 515.91, 651.97}}}; static rect get_paper_size (char *string) { *************** *** 114,121 **** fprintf (stdout, "-l \t\tLandscape mode\n"); fprintf (stdout, "-m number\tSet additional magnification\n"); fprintf (stdout, "-p papersize\tSet papersize (letter, legal,\n"); ! fprintf (stdout, " \tledger, tabloid, a4, or a3) [letter]\n"); ! fprintf (stdout, "-r resolution\tSet resolution (in DPI) for raster fonts [600]\n"); fprintf (stdout, "-s pages\tSelect page ranges (-)\n"); fprintf (stdout, "-t \tEmbed thumbnail images\n"); fprintf (stdout, "-d \tRemove thumbnail images when finished\n"); --- 120,128 ---- fprintf (stdout, "-l \t\tLandscape mode\n"); fprintf (stdout, "-m number\tSet additional magnification\n"); fprintf (stdout, "-p papersize\tSet papersize (letter, legal,\n"); ! fprintf (stdout, " \tledger, tabloid, a6, a5, a4, a3,\n"); ! fprintf (stdout, " \tb6, b5, b4, b3 or b5var) [a4]\n"); ! fprintf (stdout, "-r resolution\tSet resolution (in DPI) for raster fonts [1200]\n"); fprintf (stdout, "-s pages\tSelect page ranges (-)\n"); fprintf (stdout, "-t \tEmbed thumbnail images\n"); fprintf (stdout, "-d \tRemove thumbnail images when finished\n"); *************** *** 134,140 **** static char landscape_mode = 0; static char ignore_colors = 0; static double mag = 1.0, x_offset=72.0, y_offset=72.0; ! static int font_dpi = 600; static int really_quiet = 0; struct page_range --- 141,147 ---- static char landscape_mode = 0; static char ignore_colors = 0; static double mag = 1.0, x_offset=72.0, y_offset=72.0; ! static int font_dpi = 1200; static int really_quiet = 0; struct page_range

この書き込みへの返事:

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