Inserting a page with a different paper size - latex

I am writing a report in LaTeX and want to insert a page at the end containing a summary of the content. Of course the summary will contain a lot of data so I want to add a page with another paper size (A3,...). But I don't find any solution on the internet for that problem. Is there a solution to this problem or do I have to write an additional LaTeX file with that summary?

\par\vfill\break % Break Last Page
\advance\vsize by 8cm % Advance page height
\advance\voffset by -4cm % Shift top margin
% Start big page
Some text
% End big page
\par\vfill\break % Break the page with different margins
\advance\vsize by -8cm % Return old margings and page height
\advance\voffset by 4cm % Return old margings and page height

I think setting all page parameters after a page flush (aka eject) should work, but I haven't tried it. Start with \paperwidth and \paperheight. You can try using the geometry package and issuing another \geometry{...} command.

You can write the page as a separate PDF and then include it with either \includegraphics or the pdfpages package.

Related

How to fix footers dropping below page

For the first 2 pages the page number is at the right place, then for pages 3 and 4 it drops to a place that won't show up when converted to pdf.
% Footers
\lfoot{} % Define left footer
\rfoot{Page \thepage \hspace{1pt} of \pageref{LastPage}}
\cfoot{}% Define center footer
Either your \footheight or \headheight is too small. fancyhdr will inform you about this in the .log file and also give you the minimum value that you need. Then you can increase it to a suitable value, e.g. with
\setlength{\headheight}{10pt}

dealing with large figures in Latex

I have a large figure that appears at the end of my document rather than in the section that I want to be in. Even \begin{figure}[h] doesn't help. Without scaling it down, how can I put it at the end of the section I want it in?
Using the afterpage package can be a good solution. However, using the option here you are trying to tell LaTeX where you want to put the image. Instead, you need to tell LaTeX where the image is good to be put:
use \begin{figure}[tb] for figures that fit well in a page with text (say, half of the text height for the figure and the other half for the text)
use \begin{figure}[p] for floats large enough to require a dedicated page.
Setting a proper option increase your chances to have the image almost where you want, having at the same time a good page layout.
If the figure is still too far from the page where it should be placed, you can set some "barriers" for floats positioning with the packages placeins or afterpage (already mentioned).
Here is a small tutorial for float placement. The thing you want to do is put an \afterpage{\clearpage} command at the end of the section. This will create an additional page after the current one and place the floats that are left in the queque there. If the float still doesn't get placed, you have to resize it. If you really don't want to resize it and it should fit on the page, then you could try changing the margins and text area temporarily (i.e. just for that one page) and see if that lets the float get placed.
i forget if it's the float or array package that provides this, but,
\begin{figure}[H]
...
\end{figure}
The upper case H will put the figure exactly where it is in your code.

Setting 0 margin in header using LaTeX's fancyhdr

I'm trying to define a custom layout for my report for which I'm using fancyhdr. On the pages which contains a chapter start I want my header to contain a colorbox spanning across the whole page (0 cm margins) although keeping my defaults margin in the text area. I can get the box to span across the "margin notes" area, but not the other side. Here's some of my code:
\fancypagestyle{plain}{ % pages containing chapter start
\fancyhead{}
\fancyhead[RO]{\colorbox{NavyBlue}{\textcolor{White}{\raisebox{0cm}[1cm][0.5cm]{\makebox[3cm][c]{\textbf{\CNoV\thechapter}}}}}
}
Any ideas on how to do it?
UPDATE
alt text http://docs.google.com/File?id=dg4jt6qx_10nnpxfqdj_b
As you can see I want my header to span across the whole page (on pages containing chapter start). The text should have the normal margins..
Take a look at Fancy chapter headings example at the texample.net site.
It appears to be what your are looking for.
alt text http://media.texample.net/tikz/examples/PNG/fancy-chapter-headings.png
I'm not entirely sure what you want, but perhaps this is it:
\fancypagestyle{plain}{ % pages containing chapter start
\fancyhead{}
\fancyhead[RO]{\hspace*{-5cm}
\colorbox{NavyBlue}{\textcolor{White}{\raisebox{0cm}[1cm][0.5cm]{\makebox[25cm][c]{%
\textbf{\CNoV\thechapter}}}}}}
}

Latex - Change margins of only a few pages

I have a Latex document where I need to change the margins of only a few pages (the pages where I'm adding a lot of graphics).
In particular, I'd like to change the top margins (\voffset). I've tried doing:
\addtolength{\voffset}{-4cm}
% Insert images here
\addtolength{\voffset}{4cm}
but it didn't work. I've seen references to the geometry package, but I haven't found how to use it for a bunch of pages, and not for the whole document.
Any hints?
Use the "geometry" package and write \newgeometry{left=3cm,bottom=0.1cm} where you want to change your margins. When you want to reset your margins, you write \restoregeometry.
I've used this in beamer, but not for general documents, but it looks like that's what the original hint suggests
\newenvironment{changemargin}[2]{%
\begin{list}{}{%
\setlength{\topsep}{0pt}%
\setlength{\leftmargin}{#1}%
\setlength{\rightmargin}{#2}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemindent}{\parindent}%
\setlength{\parsep}{\parskip}%
}%
\item[]}{\end{list}}
Then to use it
\begin{changemargin}{-1cm}{-1cm}
don't forget to
\end{changemargin}
at the end of the page
I got this from Changing margins “on the fly” in the TeX FAQ.
I was struggling a lot with different solutions including \vspace{-Xmm} on the top and bottom of the page and dealing with warnings and errors. Finally I found this answer:
You can change the margins of just one or more pages and then restore it to its default:
\usepackage{geometry}
...
...
...
\newgeometry{top=5mm, bottom=10mm} % use whatever margins you want for left, right, top and bottom.
...
... %<The contents of enlarged page(s)>
...
\restoregeometry %so it does not affect the rest of the pages.
...
...
...
PS:
1- This can also fix the following warning:
LaTeX Warning: Float too large for page by ...pt on input line ...
2- For more detailed answer look at this.
3- I just found that this is more elaboration on Kevin Chen's answer.
\par\vfill\break % Break Last Page
\advance\vsize by 8cm % Advance page height
\advance\voffset by -4cm % Shift top margin
% Start big page
Some pictures
% End big page
\par\vfill\break % Break the page with different margins
\advance\vsize by -8cm % Return old margings and page height
\advance\voffset by 4cm % Return old margings and page height
For figures you can use the method described here :
http://texblog.net/latex-archive/layout/centering-figure-table/
namely, do something like this:
\begin{figure}[h]
\makebox[\textwidth]{%
\includegraphics[width=1.5\linewidth]{bla.png}
}
\end{figure}
Notice that if you have subfigures in the figure, you'll probably want to enter into paragraph mode inside the box, like so:
\begin{figure}[h]
\makebox[\textwidth]{\parbox{1.5\textwidth}{ %
\centering
\subfigure[]{\includegraphics[width=0.7\textwidth]{a.png}}
\subfigure[]{\includegraphics[width=0.7\textwidth]{b.png}}
\end{figure}
For allowing the figure to be centered in the page, protruding into both margins rather than only the right margin.
This usually does the trick for images. Notice that with this method, the caption of the image will still be in the delimited by the normal margins of the page (which is a good thing).
A slight modification of this to change the \voffset works for me:
\newenvironment{changemargin}[1]{
\begin{list}{}{
\setlength{\voffset}{#1}
}
\item[]}{\end{list}}
And then put your figures in a \begin{changemargin}{-1cm}...\end{changemargin} environment.
Look up \enlargethispage in some LaTeX reference.
I could not find a easy way to set the margin for a single page.
My solution was to use vspace with the number of centimeters of empty space I wanted:
\vspace*{5cm}
I put this command at the beginning of the pages that I wanted to have +5cm of margin.
This worked for me:
\newpage % larger page1
\enlargethispage{1.5cm} % more room for text or floats
\advance\voffset by -0.5cm % reduce top margin
\advance\footskip by 1cm % lower page number
Some content
\newpage % larger page2
\enlargethispage{1.5cm}
Some content
...
\newpage % return to normal page
\advance\voffset by 0.5cm
\advance\footskip by -1cm
I had the same problem in a beamer presentation. For me worked using the columns environment:
\begin{frame}
\begin{columns}
\column{1.2\textwidth}
\begin{figure}
\subfigure{\includegraphics[width=.49\textwidth]{1.png}}
\subfigure{\includegraphics[width=.49\textwidth]{2.png}}
\end{figure}
\end{columns}
\end{frame}

How to Remove Footers of LaTeX Beamer Templates?

I am using the "beamerthemesplit" template of the Beamer LaTeX package. This templates includes the author's name and the title of the presentation in the footer of all pages. Is anyone aware of any way to suppress this footer?
I got rid of the default footer, and inserted page numbers instead using the following commands.
%gets rid of bottom navigation bars
\setbeamertemplate{footline}[page number]
%gets rid of navigation symbols
\setbeamertemplate{navigation symbols}{}
I do not have the most direct answer for you as I do not use the beamerthemesplit template.
But for a recent presentation, I was tempted to decompose the themese a little. So if you use this
\mode<presentation>
{
\useoutertheme{default} % empty
% \useoutertheme{infolines}% simple but bland
% \useoutertheme{split} % ok if compress option used
% \useoutertheme{shadow} % way too much space used -- ok with option 'compress'
%\useoutertheme{shadow}
%\setbeamercovered{transparent} % or whatever (possibly just delete it)
%\useoutertheme[subsection=false]{miniframes}
}
you get via default a really empty setup. Adding infolines gives you a footer with three parts, you can study the code of that outer theme to just add parts. Likewiese with color themses -- I just experimented a little and eventually went back to a default theme.

Resources