version 1.699, 2024/11/08 20:37:25
|
version 1.701, 2024/11/09 16:08:15
|
Line 1223 sub format_page_header {
|
Line 1223 sub format_page_header {
|
if ($section) { |
if ($section) { |
$format .= ' - Sec: '."%$sec_length".'s'; |
$format .= ' - Sec: '."%$sec_length".'s'; |
} |
} |
|
$format .= '\\hfill\\thepage'; |
|
|
$format .= '\\\\%c \\\\ %a'; |
$format .= '\\\\%c \\\\ %a'; |
|
|
Line 1860 sub old_character_chart {
|
Line 1861 sub old_character_chart {
|
my %page_formats= |
my %page_formats= |
('letter' => { |
('letter' => { |
'book' => { |
'book' => { |
'1' => [ '7.1 in','9.8 in', '-0.57 in','-0.57 in','0.275 in'], |
'1' => [ '7.1 in','9.7 in', '-0.57 in','-0.57 in','0.1 in'], |
'2' => ['3.66 in','9.8 in', '-0.57 in','-0.57 in','0.275 in'] |
'2' => ['3.66 in','9.7 in', '-0.57 in','-0.57 in','0.1 in'] |
}, |
}, |
'album' => { |
'album' => { |
'1' => [ '8.8 in', '6.8 in','-0.55 in', '-0.55 in','0.394 in'], |
'1' => [ '8.8 in', '6.8 in','-0.55 in', '-0.55 in','-0.5 in'], |
'2' => [ '4.8 in', '6.8 in','-0.5 in', '-1.0 in','3.0 in'] |
'2' => [ '4.8 in', '6.7 in','-0.5 in', '-1.0 in','3.0 in'] |
}, |
}, |
}, |
}, |
'legal' => { |
'legal' => { |
Line 1875 my %page_formats=
|
Line 1876 my %page_formats=
|
}, |
}, |
'album' => { |
'album' => { |
'1' => ['12 in','7.1 in',,'-0.57 in','-0.57 in','-0.5 in'], |
'1' => ['12 in','7.1 in',,'-0.57 in','-0.57 in','-0.5 in'], |
'2' => ['6.0 in','7.1 in','-1 in','-1 in','5 in'] |
'2' => ['5.7 in','7.1 in','-1 in','-1 in','5 in'] |
}, |
}, |
}, |
}, |
'tabloid' => { |
'tabloid' => { |
Line 1924 my %page_formats=
|
Line 1925 my %page_formats=
|
'2' => [ '9.1 cm','27.2 cm','-1.397 cm','-2.11 cm','-1.27 cm'] |
'2' => [ '9.1 cm','27.2 cm','-1.397 cm','-2.11 cm','-1.27 cm'] |
}, |
}, |
'album' => { |
'album' => { |
'1' => ['21.59 cm','19.558 cm','-1.397cm','-2.11 cm','0 cm'], |
'1' => ['24.0 cm','18.0 cm','-1.0cm','-1.5 cm','-1.25 cm'], |
'2' => ['9.91 cm','19.558 cm','-1.397 cm','-2.11 cm','-1 cm'] |
'2' => ['9.91 cm','18.0 cm','-0.7 cm','-1.7 cm','-1.25 cm'] |
}, |
}, |
}, |
}, |
'a5' => { |
'a5' => { |
Line 2009 sub page_format_transformation {
|
Line 2010 sub page_format_transformation {
|
my $fancypagestatement=''; |
my $fancypagestatement=''; |
if ($numberofcolumns eq '2') { |
if ($numberofcolumns eq '2') { |
$fancypagestatement="\\fancyhead{}\\fancyhead[LO]{$header_text}"; |
$fancypagestatement="\\fancyhead{}\\fancyhead[LO]{$header_text}"; |
|
if ($parmhash{'print_header_format'} eq '') { |
|
$fancypagestatement .= "\\fancyhead[RE]{\\thepage \\\\[\\baselineskip]}"; |
|
} |
} else { |
} else { |
$fancypagestatement="\\rhead{}\\chead{}\\lhead{$header_text}"; |
$fancypagestatement="\\rhead{}\\chead{}\\lhead{$header_text}"; |
} |
} |
|
$fancypagestatement .= "\\fancyfoot{}"; |
my ($paperwidth,$paperheight); |
my ($paperwidth,$paperheight); |
if ($layout eq 'album') { |
if ($layout eq 'album') { |
$text =~ s/\\begin\{document}/\\setlength{\\oddsidemargin}{$oddoffset}\\setlength{\\evensidemargin}{$evenoffset}$topmargintoinsert\n\\setlength{\\textwidth}{$textwidth}\\setlength{\\textheight}{$textheight}\\setlength{\\textfloatsep}{8pt plus 2\.0pt minus 4\.0pt}\n\\newlength{\\minipagewidth}\\setlength{\\minipagewidth}{\\textwidth\/\$number_of_columns-0\.2cm}\\usepackage{fancyhdr}\\addtolength{\\headheight}{\\baselineskip}\n\\pagestyle{fancy}$fancypagestatement\\usepackage{booktabs}\\begin{document}\\voffset=-0\.8 cm\\setcounter{page}{1}\n /; |
$text =~ s/\\begin\{document}/\\setlength{\\oddsidemargin}{$oddoffset}\\setlength{\\evensidemargin}{$evenoffset}$topmargintoinsert\n\\setlength{\\textwidth}{$textwidth}\\setlength{\\textheight}{$textheight}\\setlength{\\textfloatsep}{8pt plus 2\.0pt minus 4\.0pt}\n\\newlength{\\minipagewidth}\\setlength{\\minipagewidth}{\\textwidth\/\$number_of_columns-0\.2cm}\\usepackage{fancyhdr}\\addtolength{\\headheight}{\\baselineskip}\n\\pagestyle{fancy}$fancypagestatement\\usepackage{booktabs}\\begin{document}\\voffset=-0\.8 cm\\setcounter{page}{1}\n /; |