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} \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}{ \providecommand{\UU@setafourpaper}{
\setlength{\paperheight}{297mm} %242mm % 55mm \setlength{\paperheight}{297mm}
\setlength{\paperwidth}{210mm} %165mm % 45mm \setlength{\paperwidth}{210mm}
\setlength{\hoffset}{-1in} \setlength{\hoffset}{-1in}
\setlength{\voffset}{-1in} \setlength{\voffset}{-1in}
% add half the excess height to topmargin (plus original value) \setlength{\topmargin}{13,8mm}
\setlength{\topmargin}{36,3mm} % 8.8 + 0.5 * 55 \setlength{\oddsidemargin}{30mm}
% add 50 percent of the excess width to oddsidemargin (plus original value) \setlength{\evensidemargin}{30mm}
\setlength{\oddsidemargin}{45mm} % 22.5 + 0.50 * 45
\setlength{\evensidemargin}{45mm}
\setlength{\headheight}{4,6mm} \setlength{\headheight}{4,6mm}
\setlength{\headsep}{4,6mm} \setlength{\headsep}{4,6mm}
% keep textheight and textwidth same as for s5paper \setlength{\textheight}{242mm}
% remember, the idea here was to expand the margins, to make room \setlength{\textwidth}{150mm}
% for more marginnotes during draft work
\setlength{\textheight}{572pt}
\setlength{\textwidth}{120mm}
\setlength{\marginparsep}{1mm} \setlength{\marginparsep}{1mm}
% add 50 percent of the excess page width to marginparwidth (plus original value) \setlength{\marginparwidth}{20mm}
% remember, marginparwidth should be slightly smaller than odd/evensidemargin
\setlength{\marginparwidth}{42,5mm} % 20 + 0.50 * 45
\setlength{\footskip}{26pt} \setlength{\footskip}{26pt}
\setlength{\topskip}{13pt}
\setlength{\pdfpagewidth}{\paperwidth} \setlength{\pdfpagewidth}{\paperwidth}
\setlength{\pdfpageheight}{\paperheight} \setlength{\pdfpageheight}{\paperheight}
\special{papersize=297mm,210mm} \special{papersize=297mm,210mm}
@ -176,17 +165,16 @@
\fi% \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 % Define page size and tell dvips to use it by entering the \special command
%\UU@papersize \UU@papersize
%\special{papersize=\the\pdfpagewidth,\the\pdfpageheight} \special{papersize=\the\pdfpagewidth,\the\pdfpageheight}
% ============================================ % ============================================
% Font settings % 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{% \AtBeginDocument{%
% \renewcommand\normalsize{\@setfontsize{\normalsize}{11}{13}} %11/13pt % \renewcommand\normalsize{\@setfontsize{\normalsize}{11}{13}} %11/13pt
% \renewcommand\small{\@setfontsize{\small}{10}{12}}%10/12pt % \renewcommand\small{\@setfontsize{\small}{10}{12}}%10/12pt

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

Loading…
Cancel
Save