i'm using tikz to draw a diagram. But i meet the problem: latex place the tikzpicture with a distant to left edge of paper and its too large that goes over right edge. Like the picture below shows, theres still plenty of space at left corner, and right part of picture already gose out of page. I have done nothing than simply write:
\begin{figure}[!h]
\centering
\begin{tikzpicture}[square/.style={regular polygon,regular polygon sides=4}]
%draw something large here
\end{tikzpicture}
\end{figure}
how can i place it correctly?
the compilable code can be found here: https://pastebin.com/H2NGYtKV
Or by Overleaf: https://www.overleaf.com/read/hhxjmxdkvscg
tikzpicture
is too large to fit within\textwidth
. The white margin on the left is the usual document margin. There is noa3paper
option for thearticle
class. See the*.log
file.