独立前的空白页

独立前的空白页

问题是,当我将图形编译为独立版本时,Latex 会插入空白页。通过将文档类定义为文章,就不会发生这种情况。(我该如何解决这个问题[以及为什么会发生这种情况?]我必须使用独立版本。)提前谢谢您。

这是我的代码:

在此处输入图片描述

\documentclass[tikz] {standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\begin{document}
    \begin{figure}
        \begin{tikzpicture} [scale=1]
%       
        \tikzset{->-/.style={decoration={
            markings,
            mark=at position .5 with {\arrow{>}}},postaction={decorate}}}
%       
        \coordinate (0) at (0,0);
%       
        \fill (0) circle (0.5mm) node [below=1.5mm, right=0.5mm] {$x^*$};
        %       
        \draw (0) -- (-11mm,11.5mm);    
        \draw (0) circle (16mm) node [left=4.5 mm, above=4.8mm] {$\eta$};
        %
        \coordinate (1) at (-0.5,-0.5);
        \coordinate (2) at (-2.5,-3);
        \coordinate (3) at (0,-4);
        \coordinate (4) at (3,-3.5);
        \coordinate (5) at (4.5, 0);
        \coordinate (6) at (2.5,3.5);
        \coordinate (7) at (-0.5,3.5);
        \coordinate (8) at (-2,3.5);
        \coordinate (9) at (-4,1.5);
        \coordinate (10) at (-3.2,0);
        \coordinate (11) at (-1,0);
        \coordinate (12) at (-0.2,0);
        %
        \draw [line width=0.8] (1) to [out=180,in=130] (2); 
        \draw [line width=0.8] (2) to [out=310,in=210] (3);
        \draw [line width=0.8] (3) to [out=30,in=170] (4);
        \draw [line width=0.8] (4) to [out=350,in=220] (5);
        \draw [line width=0.8] (5) to [out=40,in=290] (6);
        \draw [line width=0.8] (6) to [out=110,in=80] (7);
        \draw [line width=0.8] (7) to [out=260,in=340] (8);
        \draw [line width=0.8] (8) to [out=160,in=140] (9);
        \draw [line width=0.8] (9) to [out=320,in=170] (10);
        \draw [->-, line width=0.8] (10) to [out=350,in=140] (11);
        \draw [->-, line width=0.8] (11) to [out=320,in=180] (12);
        %       
        \fill (1) circle (0.5mm) node [right=0.5, below=0.5mm]{$x$};
%       
        \end{tikzpicture}
    \end{figure}
\end{document}

答案1

不要将图形环境与独立类一起使用。这没有意义,并且会产生创建空白页的副作用。

相关内容