Investigating issue with paper size not being correct

main
Taha Ahmed 4 years ago
parent 29e5dc4ad0
commit 6b14df2ebc

@ -40,32 +40,21 @@
\setlength{\pdfpageheight}{\paperheight}
}
% extra-large margins for use during draft
% Note that this is effectively s5paper format
% with all extra space used for margins (out to a4paper dimensions)
\providecommand{\UU@setafourpaper}{
\setlength{\paperheight}{297mm} %242mm % 55mm
\setlength{\paperwidth}{210mm} %165mm % 45mm
\setlength{\paperheight}{297mm}
\setlength{\paperwidth}{210mm}
\setlength{\hoffset}{-1in}
\setlength{\voffset}{-1in}
% add half the excess height to topmargin (plus original value)
\setlength{\topmargin}{36,3mm} % 8.8 + 0.5 * 55
% add 50 percent of the excess width to oddsidemargin (plus original value)
\setlength{\oddsidemargin}{45mm} % 22.5 + 0.50 * 45
\setlength{\evensidemargin}{45mm}
\setlength{\topmargin}{13,8mm}
\setlength{\oddsidemargin}{30mm}
\setlength{\evensidemargin}{30mm}
\setlength{\headheight}{4,6mm}
\setlength{\headsep}{4,6mm}
% keep textheight and textwidth same as for s5paper
% remember, the idea here was to expand the margins, to make room
% for more marginnotes during draft work
\setlength{\textheight}{572pt}
\setlength{\textwidth}{120mm}
\setlength{\textheight}{242mm}
\setlength{\textwidth}{150mm}
\setlength{\marginparsep}{1mm}
% add 50 percent of the excess page width to marginparwidth (plus original value)
% remember, marginparwidth should be slightly smaller than odd/evensidemargin
\setlength{\marginparwidth}{42,5mm} % 20 + 0.50 * 45
\setlength{\marginparwidth}{20mm}
\setlength{\footskip}{26pt}
\setlength{\topskip}{13pt}
\setlength{\pdfpagewidth}{\paperwidth}
\setlength{\pdfpageheight}{\paperheight}
\special{papersize=297mm,210mm}
@ -176,17 +165,16 @@
\fi%
}%
%% disable this block since it seems to only be for dvips route anyway
% Define page size and tell dvips to use it by entering the \special command
%\UU@papersize
%\special{papersize=\the\pdfpagewidth,\the\pdfpageheight}
\UU@papersize
\special{papersize=\the\pdfpagewidth,\the\pdfpageheight}
% ============================================
% Font settings
% ============================================
% these sizes only work well with the UUThesis default font (Times new roman and its clones)
% these font sizes only work well with the UUThesis default font (Times new roman and its clones)
\AtBeginDocument{%
% \renewcommand\normalsize{\@setfontsize{\normalsize}{11}{13}} %11/13pt
% \renewcommand\small{\@setfontsize{\small}{10}{12}}%10/12pt

@ -40,32 +40,21 @@
\setlength{\pdfpageheight}{\paperheight}
}
% extra-large margins for use during draft
% Note that this is effectively s5paper format
% with all extra space used for margins (out to a4paper dimensions)
\providecommand{\UU@setafourpaper}{
\setlength{\paperheight}{297mm} %242mm % 55mm
\setlength{\paperwidth}{210mm} %165mm % 45mm
\setlength{\paperheight}{297mm}
\setlength{\paperwidth}{210mm}
\setlength{\hoffset}{-1in}
\setlength{\voffset}{-1in}
% add half the excess height to topmargin (plus original value)
\setlength{\topmargin}{36,3mm} % 8.8 + 0.5 * 55
% add 50 percent of the excess width to oddsidemargin (plus original value)
\setlength{\oddsidemargin}{45mm} % 22.5 + 0.50 * 45
\setlength{\evensidemargin}{45mm}
\setlength{\topmargin}{13,8mm}
\setlength{\oddsidemargin}{30mm}
\setlength{\evensidemargin}{30mm}
\setlength{\headheight}{4,6mm}
\setlength{\headsep}{4,6mm}
% keep textheight and textwidth same as for s5paper
% remember, the idea here was to expand the margins, to make room
% for more marginnotes during draft work
\setlength{\textheight}{572pt}
\setlength{\textwidth}{120mm}
\setlength{\textheight}{242mm}
\setlength{\textwidth}{150mm}
\setlength{\marginparsep}{1mm}
% add 50 percent of the excess page width to marginparwidth (plus original value)
% remember, marginparwidth should be slightly smaller than odd/evensidemargin
\setlength{\marginparwidth}{42,5mm} % 20 + 0.50 * 45
\setlength{\marginparwidth}{20mm}
\setlength{\footskip}{26pt}
\setlength{\topskip}{13pt}
\setlength{\pdfpagewidth}{\paperwidth}
\setlength{\pdfpageheight}{\paperheight}
\special{papersize=297mm,210mm}

Loading…
Cancel
Save