I have seen the options such as a4paper, a5paper, letterpaper, etc... to go in the square brackets after \documentclass, but what I want is 8.25 inches width by 10.75 inches height for one document and 6 inches width by 9 inches height for another one. How is this done?
Hope the code is self explanatory.
For first,
\documentclass{article}
\usepackage{blindtext}
\usepackage[paperheight=10.75in,paperwidth=8.25in,margin=1in,heightrounded,showframe]{geometry}
\begin{document}
\Blinddocument
\end{document}
and the second:
\documentclass{article}
\usepackage{blindtext}
\usepackage[paperheight=9in,paperwidth=6in,top=1in,bottom=1in,right=1in,left=1in,heightrounded,showframe]{geometry}
\begin{document}
\Blinddocument
\end{document}
Here is method without using a package:
\pdfpagewidth 8.25in
\pdfpageheight 10.75in
-
NB this won't work if the desired dimensions are less than the default margins of the document type. e.g. I tried making a 8.5" x 1" with \documentclass{article}, and nothing shows up. Once you load the geometry package to address this issue, this solution has no advantage. Perhaps there is another way of changing the default margins? – Rax Adaam Sep 28 '18 at 17:59
geometry
package. – Ulrike Fischer Nov 5 '12 at 11:41