# Why this errors with PSSets in psmatrix?

I´m starting with diagrams, and I have any errors with this code: (edited after Herbert´s comment)

\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}
%\input{pssettings.tex}
\begin{document}
\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[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]{¿Está en la \\Lista Tabú?}& \\

& & \makebox{Aceptar como nueva solución}\\

}

\end{psmatrix}

\end{document}


How Can I do to obtain no errors?

How can I do to not overput the contente os makboxes? , obatining a separation between each 2. I_ thought that It was automatic with rowsep

How Can I put the text on the right of the image without being over the frameboxes??

lenght of makebox... Can be set with pt/cm/or without messure?

• what is the contents of pssettings.tex? However, provide minimal examples and do not use external files. – user2478 Apr 18 '14 at 7:44

\makebox expects a length with a unit. It is a LaTeX command, not a PSTricks one. However, I do not know what you really want to draw. MAybe this helps:

\documentclass[12pt,a4paper]{article}
\usepackage{amsmath,amsfonts,amssymb,latexsym}

\usepackage{pst-node}
\usepackage{pst-blur}

%\input{pssettings.tex}
\begin{document}
\begin{psmatrix}[rowsep=1.75,colsep=1.5]% defines the distance between two frames
\cnode[fillstyle=solid,fillcolor=blue](0,0){0.15}{Current}
& [name=SA] Solución Actual\\
\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}

• your \makebox makes no sense in your example. It can have only horizontal material, no linebreak and no & characters. Delete the \makebox{...} in your example and try again. Edit your question with the new code, then I'll see what happens. – user2478 Apr 18 '14 at 8:35
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9572466015815735, "perplexity": 3660.042849605166}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-22/segments/1558232258621.77/warc/CC-MAIN-20190526025014-20190526051014-00539.warc.gz"}