![如何调整包含多个图形的独立文档中一个图形的边框?](https://linux22.com/image/429464/%E5%A6%82%E4%BD%95%E8%B0%83%E6%95%B4%E5%8C%85%E5%90%AB%E5%A4%9A%E4%B8%AA%E5%9B%BE%E5%BD%A2%E7%9A%84%E7%8B%AC%E7%AB%8B%E6%96%87%E6%A1%A3%E4%B8%AD%E4%B8%80%E4%B8%AA%E5%9B%BE%E5%BD%A2%E7%9A%84%E8%BE%B9%E6%A1%86%EF%BC%9F.png)
我目前有一个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}