我从图表开始,并且此代码存在任何错误:(根据 Herbert 的评论进行编辑)
\documentclass[12pt,a4paper]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[spanish]{babel}
\usepackage{amsmath,amsfonts,amssymb,latexsym}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{mathpazo} % Fuente MathPazo
% ---------------------- PSTRICKS ---------------
\usepackage{pstricks}
\usepackage{pst-plot,pst-3dplot,pst-node,pst-tree,pst-grad,pst-coil,pst-text,pst-3d,pst-eps,pst-fill,pstricks-add,multido}
%\input{pssettings.tex}
\begin{document}
\psset{framearc=0.2,shadowcolor=black!70,shadowangle=-90,blur=true,fillstyle=solid}
\begin{psmatrix}[rowsep=0.5,colsep=0.5]% defines the distance between two frames
\psset{xunit=1cm,yunit=1cm}
&\makebox[2.00]{%
\psframe[fillcolor=lightgray,fillstyle=solid,linestyle=none](-1.00,-1.00)(1.00,1.00)
\cnode[fillstyle=solid,fillcolor=blue](0,0){0.15}{Current}
}
& \makebox[6cm]{Solución Actual}\\
&\makebox[2.00]{%
\psframe[fillcolor=lightgray,fillstyle=solid,linestyle=none](-1.00,-1.00)(1.00,1.00)
\cnode[fillstyle=solid,fillcolor=blue](0,0){0.15}{Current}
\cnode[fillstyle=solid,fillcolor=pink](-0.75,0.75){0.15}{Current}
}& \makebox{Generar Vecindad}\\
&\makebox[2.00]{%
\psframe[fillcolor=lightgray,fillstyle=solid,linestyle=none](-1.00,-1.00)(1.00,1.00)
\cnode[fillstyle=solid,fillcolor=pink](1,1){0.20}{Current}
\cnode[fillstyle=solid,fillcolor=blue](0,0){0.20}{Current}
}& \makebox{Elegir Mejor Vecino}\\
\psdiabox[shadoÇ=true]{¿Cumple el\\Criterio de Aspiración?}
&\psdiabox[shadoÇ=true]{¿Está en la \\Lista Tabú?}& \\
& & \makebox{Aceptar como nueva solución}\\
}
\end{psmatrix}
\end{document}
我怎样才能避免出现错误?
我该怎么做才能不让内容系统 makboxes 过载?,在每 2 个之间取得分离。我以为它是用 rowsep 自动完成的
我怎样才能将文本放在图像的右侧而不超出框架框?
制作框的长度...可以用 pt/cm 或不用尺寸来设置吗?
答案1
\makebox
需要长度和单位。这是一个 LaTeX 命令,而不是 PSTricks 命令。但是,我不知道你真正想要绘制什么。也许这有帮助:
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath,amsfonts,amssymb,latexsym}
\usepackage{pst-node}
\usepackage{pst-blur}
%\input{pssettings.tex}
\begin{document}
\psset{framearc=0.2,shadowcolor=black!70,shadowangle=-90}
\begin{psmatrix}[rowsep=1.75,colsep=1.5]% defines the distance between two frames
\psframe[fillcolor=lightgray,linestyle=none,blur,shadow](-1.00,-1.00)(1.00,1.00)
\cnode[fillstyle=solid,fillcolor=blue](0,0){0.15}{Current}
& [name=SA] Solución Actual\\
\psframe[fillcolor=lightgray,linestyle=none,shadow,blur](-1.00,-1.00)(1.00,1.00)
\cnode[fillstyle=solid,fillcolor=blue](0,0){0.15}{Current}
\cnode[fillstyle=solid,fillcolor=pink](-0.75,0.75){0.15}{Current}
\cnode[fillstyle=solid,fillcolor=pink](0,0.65){0.15}{Current}
\cnode[fillstyle=solid,fillcolor=pink](0.75,0.75){0.15}{Current}
\cnode[fillstyle=solid,fillcolor=pink](-0.75,0.15){0.15}{Current}
\cnode[fillstyle=solid,fillcolor=pink](0.65,0.15){0.15}{Current}
\cnode[fillstyle=solid,fillcolor=pink](-0.75,0.75){0.15}{Current}
& [name=SS] Generar Vecindad\\
\psframe[fillcolor=lightgray,linestyle=none,shadow,blur](-1.00,-1.00)(1.00,1.00)
\cnode[fillstyle=solid,fillcolor=pink](1,1){0.20}{Current}
\cnode[fillstyle=solid,fillcolor=blue](0,0){0.20}{Current}
& Elegir Mejor Vecino
\end{psmatrix}
\end{document}