sidewaysfigure in two column document span whole page
1,060
A solution for your problem is to just remove the unnecessary tikzpicture
.
\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{natbib}
\usepackage{rotating}
\usepackage{tikz}
%Awesome twocolumn text....
\begin{document}
\onecolumn
\begin{sidewaysfigure*}[h]
\centering
\includegraphics[width=\textwidth] {example-image-a}
\caption{All light curves from all available datasets}
\label{allLightCurves}
\end{sidewaysfigure*}
\end{document}
Related videos on Youtube
Author by
Sebastiano1991
Student of astrophysics, working mainly with python
Updated on February 09, 2020Comments
-
Sebastiano1991 over 3 years
Hello I would like a sideways figure to span a whole page in a two column artikel. The problem is that the solutions I have found either fit a none rotated figure to a two column page or only rotates the image in a onecloumn document.
\documentclass[11pt]{article} \usepackage{graphicx} \usepackage{natbib} \usepackage{rotating} \usepackage{tikz} %Awesome twocolumn text.... \onecolumn \begin{sidewaysfigure*}[h] \centering \begin{tikzpicture}[scale=4] \includegraphics[width=\textwidth] {/home/sebastiano/Documents/Data/plots/3binNoCorrected.png} \end{tikzpicture} \caption{All light curves from all available datasets} \label{allLightCurves} \end{sidewaysfigure*}
But this still remembers the twocolumn even if they are turned off.
-
TeXnician over 6 yearsWelcome to TeX.SX! Why do you use
tikzpicture
for\includegraphics
? -
Sebastiano1991 over 6 yearsThanks for having me ;) I just found this as working way to produce a side ways image?
-
TeXnician over 6 yearsWhy don't you just use
\includegraphics
? -
Sebastiano1991 over 6 yearsHow stupid ! Yes commenting out the \tikzpicture did the trick! I thought it was needed for the sidewaysfigure... must have missunderstood that other stack... thanks!
-
TeXnician over 6 yearsI've posted that as answer. You can just accept it and that question is solved.
-
Ulrike Fischer over 6 yearsThe tikzpicture is unnecessary in your example, but is not the main problem. There are cases where a tikzpicture is quite usefull, e.g to add some decoration to the picture. But then you should put the graphic in a node:
\node{\includegraphics[width=\textwidth] {example-image-a}};
so that the tikzpicture has the correct size.
-