如何调整包含多个图形的独立文档中一个图形的边框?

如何调整包含多个图形的独立文档中一个图形的边框?

我目前有一个standalone类文档,其中有几张tikz图片ps,一张接一张。正如预期的那样,这个.tex文件stanalone会为我的每个 tikz 图形生成一个带有图形的 pdf。从输出中可以看出,我standalone只需要更改第二个图形(而不是第一个图形)的边框。我可以做这样的事情吗?

\documentclass[tikz,pstricks]{standalone}

% PACKAGES LOADING

\usepackage{pst-3d, tikz-3dplot} % To draw in 3D.
\usepackage{pgfplots} % To draw plots.
\usepackage{pst-all} % To get egameps to work
\usepackage{egameps} % To draw simple plots

% TIKZ & PGFPLOTS LIBRARIES & SETTINGS

\pgfplotsset{compat=1.6}
\usepgfplotslibrary{fillbetween}
\usetikzlibrary{fit, calc, matrix, positioning, arrows.meta, intersections, through, backgrounds, patterns}
        
% FIGURES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

% Figure 1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\tdplotsetmaincoords{70}{130}
\begin{tikzpicture}[tdplot_main_coords, scale=1]
\def\laxis{5}
\def\ltriangle{3}
\begin{scope}[-latex]
\draw (0,0,0) -- (\laxis,0,0) node [left] {$x$};
\draw (0,0,0) -- (0,\laxis,0) node [right] {$y$};
\draw (0,0,0) -- (0,0,\laxis) node [above] {$z$};
\end{scope}
\filldraw [opacity=.3] (\ltriangle,0,0) -- (0,\ltriangle,0) --
(0,0,\ltriangle) -- cycle;
\end{tikzpicture}

% Figure 2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\psset{unit=0.1mm}
\begin{pspicture}(85,-25)(765,250)
\putbranch(300,240)(2,1){200}
\egalhshift=0
\iib{}{$p_1$}{$p_2$}[c][$1$][]
\putbranch(500,140)(2,1){250}
\egalhshift=0
\iiib{}{$0.1$}{$0.89$}{$0.01$}[c][$5$][$1$][$0$]
\end{pspicture}

\end{document}

在此处输入图片描述

答案1

放在第二张图片前面的这段代码应该适合你:

\standaloneconfig{border=2mm 3mm 4mm 5mm}

相关内容