From 677885e502cfe4827134f642b29897563944ddfa Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 13 Jul 2008 17:40:16 -0400 Subject: texpdf papersize adjustments primarily for portrait sizes a5 & b5 --- lib/sisu/v0/defaults.rb | 10 +++++----- lib/sisu/v0/texpdf_format.rb | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/sisu/v0/defaults.rb b/lib/sisu/v0/defaults.rb index ef33be04..5ea3de65 100644 --- a/lib/sisu/v0/defaults.rb +++ b/lib/sisu/v0/defaults.rb @@ -1934,7 +1934,7 @@ WOK end def landscape def w - 234 + 242 end def h 166 @@ -1976,10 +1976,10 @@ WOK def b5 def portrait def w - 126 + 140 end def h - 180 + 210 end def img_px 356 @@ -2003,10 +2003,10 @@ WOK def a5 def portrait def w - 100 + 112 end def h - 144 + 170 end def img_px 280 diff --git a/lib/sisu/v0/texpdf_format.rb b/lib/sisu/v0/texpdf_format.rb index ee457ca3..ab4c7fe2 100644 --- a/lib/sisu/v0/texpdf_format.rb +++ b/lib/sisu/v0/texpdf_format.rb @@ -1212,9 +1212,14 @@ WOK d[:textheight],d[:textwidth]=@tx.legal.portrait.h,@tx.legal.portrait.w when /book|b5/i #book default - larger d[:papertype],d[:fontsize]='b5paper','11pt' + d[:oddsidemargin],d[:evensidemargin],d[:topmargin]='-4mm','-4mm','-36pt' + d[:headheight],d[:headsep],d[:columnsep]='12pt','20pt','' d[:textheight],d[:textwidth]=@tx.b5.portrait.h,@tx.b5.portrait.w when /a5/i d[:papertype],d[:fontsize]='a5paper','11pt' + d[:oddsidemargin],d[:evensidemargin],d[:topmargin]='-4mm','-4mm','-36pt' + d[:headheight],d[:headsep],d[:columnsep]='8pt','12pt','' + d[:marginparsep],d[:marginparwidth]='4mm','6mm' d[:textheight],d[:textwidth]=@tx.a5.portrait.h,@tx.a5.portrait.w else #default currently A4 d[:papertype],d[:fontsize]='a4paper','12pt' -- cgit v1.2.3