I am trying to do a document in which I have a text box in the first page and the rest of document I have fancy style.

I tried to do it and I can do it if I do two different documents (and so two different tex files). In the first one I used


and in the second one I used:


Is there any way to do just one document?


1 Answer 1


Short explanation of the changes needed

  • Pagestyle: You can easily change the pagestyle for a single page using \thispagestyle{style}, or for all pages following, using the macro \pagestyle{style}, both from the fancyhdr-package.

  • Layout The geometry-package makes it quite easy to change margins, textwidth, height and so on for a page with it's commands \newgeometry{arguments} and \restoregeometry to the original settings.

  • Papersize Changing the size of the paper in the middle of a document is more difficult, and to make those changes I have been using the information found in the answer by Charles Stewart in the post Change paper size in mid-document. There are other alternative answers there, well worth the read.

What I've done is first setting a standard-pagesize, and then storing the the dimensions of that page into the lengths called \originalPaperWidth and \originalPaperHeight to be able to restore the page to that dimension.


I've created two macros, \changePaper{width}{height}[optional arguments for \newgeometry] and \restorePaper, which should make it easy to create custom pages. Use this in combination with \thispagestyle{style} or \pagestyle{style}


enter image description here


\usepackage{xparse} % Needed for newdocumentcommand



\pdfpagewidth=\originalPaperWidth \pdfpageheight=\originalPaperHeight

    % Input:
    % #1: width
    % #2: height
    % #3: optional arguments for \newgeometry
    \pdfpagewidth=#1 \pdfpageheight=#2
\section{Special page}
\section{Back to normal fancy pages}
  • I am trying with this code: ### Code \documentclass{article} \usepackage[paperwidth=16cm,paperheight=24cm]{geometry} \usepackage[a4,frame,center]{crop} \usepackage{lipsum} \begin{document} \thispagestyle{empty} \lipsum %now i want to use \documentclass[a4paper,twoside] \newpage \newgeometry{a4paper,twoside} \restoregeometry \lipsum \end{document} The first part is ok but the second is not...what is supposed to write in newgeometry?
    – pipita
    Commented Aug 11, 2016 at 17:17
  • '\newgeometry' cannot change the papersize.
    – Runar
    Commented Aug 12, 2016 at 4:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .