I've got a document that I wish to format in landscape in conjunction with some material added as an overlay via TikZ. I can get everything correct if I create a portrait page, but not if I create a landscape page.
Here's my MWE for portrait which shows what I want (except for page orientation)
\documentclass{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{tikz}
\usepackage{lipsum}
\begin{document}
\lipsum[1-4]
\begin{tikzpicture}[remember picture,overlay]
\node at (current page.south west) [text width=5cm,fill=red!20,above right] { This material is in the south west corner of the page };
\end{tikzpicture}
\end{document}
But when I try to get the same effect in landscape, the .south west anchor is apparently off the page. This seems to happen regardless of whether I pass landscape through the optional argument to the class declaration or through geometry.
Here's my malfunctioning MWE:
\documentclass{article}
\usepackage[margin=0.5in,landscape]{geometry}
\usepackage{tikz}
\usepackage{lipsum}
\begin{document}
\lipsum[1-4]
\begin{tikzpicture}[remember picture,overlay]
\node at (current page.south west) [text width=5cm,fill=red!20,above right] { This material is in the south west corner of the page };
\end{tikzpicture}
\end{document}
Any ideas?
Following @HarishKumar's suggestion, I can see that my compilation route is part of the problem: I'm compiling by: latex → dvips → ps2pdf instead of just pdflatex. However, I was under the impression that I need to go the more round about way if I'm incorporating PostScript commands in my LaTeX document. Does anyone know anything about this and care to explain why I should always use pdflatex?


documentclassand throughgeometry) for me. But if you use\begin{landscape}and\end{landscape}(lscapeorpdflscapepackages), then it won't work. – Jan 09 '13 at 23:23latex->dvips->ps2pdfroute. – A.Ellett Jan 09 '13 at 23:25pdflatex. – Jan 09 '13 at 23:26pdflatexworks fine. I originally started going the route I use because I often do things withpstricksand was under the impression that I had to go that route. – A.Ellett Jan 09 '13 at 23:28latex=>dvips=>ps2pdfroute – cmhughes Jan 10 '13 at 00:23xelatexroute fails (but I don't really know anything aboutxelatexand am not worried about that yet). But thepdflatex -shell-escape <file>route definitely works. Thank you! – A.Ellett Jan 10 '13 at 01:29