Discussion:
A single image in the centre, middle of an otherwise blank page?
(too old to reply)
Salim Fadhley
2006-12-05 17:02:32 UTC
Permalink
Dear comp.text.tex

For a novel I am working on I need to have a number of pages which will
be blank except for a single image. These are photos which I have in
suitably high resolution, and I have been able to include them in the
normal way into the document. (I should mention that I am using
pdflatex.)

I want to make a page which contains an image but no other contnet.
Headers, page numbers and normal boilerplate stuff can remain. I dont
care as long as there is no other text and the images are vertically
and horizontally centered, each with it's own page.

Can you suggest how I might go about this?

Thanks
Kjell Magne Fauske
2006-12-05 20:13:37 UTC
Permalink
There are probably better ways of doing this, but here's one solution
using a recent version of PGF/TikZ [1]:

[1] http://www.ctan.org/tex-archive/help/Catalogue/entries/pgf.html

-----
\documentclass{article}

% Requires PGF >= 1.09
% Note:
% This example works only with pdftex
% You have to run pdftex on the example twice!
\usepackage{tikz}

\begin{document}
\thispagestyle{empty}

\begin{tikzpicture}[remember picture, overlay]
\node[inner sep=0pt] at (current page.center) {
\includegraphics[width=10cm]{image}
};
\end{tikzpicture}
% You can get borders around the image by using
% \node[draw, inner sep=10pt] ...

\end{document}
-----

See
http://www.fauskes.net/media/pgftikzexamples/misc/picturemidpage.pdf
for example output.

You have to run the example twice through pdftex before the picture
appears!

- Kjell Magne Fauske
Post by Salim Fadhley
Dear comp.text.tex
For a novel I am working on I need to have a number of pages which will
be blank except for a single image. These are photos which I have in
suitably high resolution, and I have been able to include them in the
normal way into the document. (I should mention that I am using
pdflatex.)
I want to make a page which contains an image but no other contnet.
Headers, page numbers and normal boilerplate stuff can remain. I dont
care as long as there is no other text and the images are vertically
and horizontally centered, each with it's own page.
Can you suggest how I might go about this?
Thanks
David R
2006-12-05 21:02:13 UTC
Permalink
Post by Salim Fadhley
Dear comp.text.tex
For a novel I am working on I need to have a number of pages which will
be blank except for a single image. These are photos which I have in
suitably high resolution, and I have been able to include them in the
normal way into the document. (I should mention that I am using
pdflatex.)
I want to make a page which contains an image but no other contnet.
Headers, page numbers and normal boilerplate stuff can remain. I dont
care as long as there is no other text and the images are vertically
and horizontally centered, each with it's own page.
Can you suggest how I might go about this?
Thanks
Hi, had exactly this problem which was solved on the 17/11/2206 on this
newsgroup
If you want a left page to right double image spread then this was the
code I used.
In preamble \usepackage{eso-pic,dpfloat}
Now in document

\cleardoublepage ~ \newpage ~
\begin{leftfullpage} \thispagestyle{empty}

\AddToShipoutPicture*{\put(0,1){\includegraphics[width=\paperheight-3mm,height=\paperwidth-3mm,angle=90,viewport=0
1125 1626 2330,clip=true]{coachlicence1}}}

\end{leftfullpage}

\newpage ~
\begin{fullpage} \thispagestyle{empty}

\AddToShipoutPicture*{\put(7,1){\includegraphics[width=\paperheight-3mm,height=\paperwidth-5mm,angle=90,viewport=0
0 1626 1125,clip=true]{coachlicence1}}}
\label{fig:coachlicence1}
\end{fullpage}

If you just want any page then I think it should be

\newpage ~
\thispagestyle{empty}

\AddToShipoutPicture*{\put(0,1){\includegraphics[width=\paperheight-3mm,height=\paperwidth-3mm,angle=0,]{coachlicence1}}}


David R
Dan
2006-12-06 17:29:25 UTC
Permalink
Post by David R
Post by Salim Fadhley
Can you suggest how I might go about this?
Thanks
Hi, had exactly this problem which was solved on the 17/11/2206 on this
I doubt that the OP can afford wait 200 years for a solution
and (presumably) the invention of the time machine.


Dan
Salim Fadhley
2006-12-07 17:22:03 UTC
Permalink
In the end, this seemed to produce a good result:

\usepackage{dpfloat}

\newpage
\thispagestyle{empty}
\begin{figure}[p]% will be the right-side figure
\begin{fullpage}
\includegraphics[width=60mm]{images/greysuet.jpg}
\end{fullpage}
\end{figure}

David R
2006-12-05 21:03:37 UTC
Permalink
Actually it was 15/11/2006 not 17/11/2006 that I posted this same problem

David R
Robin Fairbairns
2006-12-05 23:00:50 UTC
Permalink
Post by David R
Actually it was 15/11/2006 not 17/11/2006 that I posted this same problem
actually, i wrote a solution to this problem (using an idea from don
arseneau) in the faq. the changelog entry is 2002-05-13; it will have
been on the web since not long after that.

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=floatpages
--
Robin Fairbairns, Cambridge
Loading...