Skip to main content
edited tags
Link
deleted 58 characters in body
Source Link
Sebastiano
  • 67.9k
  • 18
  • 123
  • 274

I've created a little diagram in TikZ. Only problem is, it's quite big, so I figured I should use landscape mode for it.

Only problem is, when I put it between

\begin{landscape}
\input{erd.tikz.tex} % my diagram
\end{landscape}

I get an extra white page before the diagram itself.

I can't seem to understand why, any idea?

Thanks.

Here is the tikz picture: http://pastebin.com/L7p48vrW

Here is the document:

\documentclass[border=0.4in]{article}

\usepackage{tikz}
\usetikzlibrary{shapes.multipart}
\usetikzlibrary{matrix}
\usetikzlibrary{positioning}
\usetikzlibrary{calc}
\usepackage{scalefnt}
\usepackage{geometry}
\usepackage{pdflscape}

\makeatletter


\begin{document}

\section{Foo}
Foo bar bar bar foo, foo bar.
\newgeometry{left=2cm,bottom=3cm}
\begin{landscape}
\input{erd.tikz.tex}
\end{landscape}
\restoregeometry
\section{Zip}
Boom boom, zip.

\end{document}

I've created a little diagram in TikZ. Only problem is, it's quite big, so I figured I should use landscape mode for it.

Only problem is, when I put it between

\begin{landscape}
\input{erd.tikz.tex} % my diagram
\end{landscape}

I get an extra white page before the diagram itself.

I can't seem to understand why, any idea?

Thanks.

Here is the tikz picture: http://pastebin.com/L7p48vrW

Here is the document:

\documentclass[border=0.4in]{article}

\usepackage{tikz}
\usetikzlibrary{shapes.multipart}
\usetikzlibrary{matrix}
\usetikzlibrary{positioning}
\usetikzlibrary{calc}
\usepackage{scalefnt}
\usepackage{geometry}
\usepackage{pdflscape}

\makeatletter


\begin{document}

\section{Foo}
Foo bar bar bar foo, foo bar.
\newgeometry{left=2cm,bottom=3cm}
\begin{landscape}
\input{erd.tikz.tex}
\end{landscape}
\restoregeometry
\section{Zip}
Boom boom, zip.

\end{document}

I've created a little diagram in TikZ. Only problem is, it's quite big, so I figured I should use landscape mode for it.

Only problem is, when I put it between

\begin{landscape}
\input{erd.tikz.tex} % my diagram
\end{landscape}

I get an extra white page before the diagram itself.

I can't seem to understand why, any idea?

Thanks.

Here is the document:

\documentclass[border=0.4in]{article}

\usepackage{tikz}
\usetikzlibrary{shapes.multipart}
\usetikzlibrary{matrix}
\usetikzlibrary{positioning}
\usetikzlibrary{calc}
\usepackage{scalefnt}
\usepackage{geometry}
\usepackage{pdflscape}

\makeatletter


\begin{document}

\section{Foo}
Foo bar bar bar foo, foo bar.
\newgeometry{left=2cm,bottom=3cm}
\begin{landscape}
\input{erd.tikz.tex}
\end{landscape}
\restoregeometry
\section{Zip}
Boom boom, zip.

\end{document}
Source Link
Tobia Tesan
  • 453
  • 2
  • 13

Why do I get an extra white page before my TikZ picture?

I've created a little diagram in TikZ. Only problem is, it's quite big, so I figured I should use landscape mode for it.

Only problem is, when I put it between

\begin{landscape}
\input{erd.tikz.tex} % my diagram
\end{landscape}

I get an extra white page before the diagram itself.

I can't seem to understand why, any idea?

Thanks.

Here is the tikz picture: http://pastebin.com/L7p48vrW

Here is the document:

\documentclass[border=0.4in]{article}

\usepackage{tikz}
\usetikzlibrary{shapes.multipart}
\usetikzlibrary{matrix}
\usetikzlibrary{positioning}
\usetikzlibrary{calc}
\usepackage{scalefnt}
\usepackage{geometry}
\usepackage{pdflscape}

\makeatletter


\begin{document}

\section{Foo}
Foo bar bar bar foo, foo bar.
\newgeometry{left=2cm,bottom=3cm}
\begin{landscape}
\input{erd.tikz.tex}
\end{landscape}
\restoregeometry
\section{Zip}
Boom boom, zip.

\end{document}