I saw this question, and wonder how to make it using PSTricks...
I tried, but failed. The compilation ends, but fails to produce a pdf.
I have the Cisco Icons in a subfolder, and putting them in a \rput doesn't work...
This could have a lot of applications, as I'm actually writing my Master Thesis in Network Engineering...
Here's my MWE :
\documentclass[pstricks, float]{standalone}
\usepackage{graphicx}
\usepackage[table, usenames, dvipsnames]{xcolor}
\usepackage{pstricks, pst-node, pst-circ, pst-plot, pst-3dplot, pst-solides3d, pst-sigsys, pstricks-add, pst-eucl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[frenchb]{babel}
\begin{document}
\begin{pspicture}[labelangle=:U, showgrid=false](0, 1)(10, 5)
\rput[bl](0,0){\rnode{A}{\includegraphics[width=30pt]{Cisco_Icons/pc}}}
\rput[tr](4,3){\rnode{B}{\includegraphics[width=30pt]{Cisco_Icons/pc}}}
\ncline[nodesep=3pt]{<->}{A}{B}
\end{pspicture}
\end{document}
Here is the console output :
Error: /typecheck in --length--
Operand stack:
1 1
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1951 1 3 %oparray_pop 1950 1 3 %oparray_pop 1934 1 3 %oparray_pop 1820 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1185/1684(ro)(G)-- --dict:0/20(G)-- --dict:176/200(L)-- --dict:745/1012(L)-- --dict:173/300(L)-- --dict:43/200(L)-- --dict:38/60(L)-- --dict:181/205(L)-- --dict:41/60(L)-- --dict:43/65(L)-- --dict:7/7(L)-- --dict:7/7(L)--
Current allocation mode is local
Last OS error: Invalid argument
Current file position is 531884
GPL Ghostscript 9.16: Unrecoverable error, exit code 1
### FAILED to generate /tmp/altpdflatex.59686-1458308792/Archi_centra.pdf ()
It seems to ba a Ghostscript problem, but I can't figure it.
EDIT 1 : I compile with TeX+DVI
EDIT 2 : This standalone file is to be included in my main.tex like this :
\begin{figure}[H]
\centering
\input{Schemas/this_standalone}
\caption{2 PCs linked together}
\label{fig:pcLinked}
\end{figure}
And the main.tex HAS to be compiled using TeX+DVI, otherwise I'll get other problems with other packagesif compiled with XeLaTex (breakurl for instance)
FINAL EDIT : All this problem comes from the Cisco Icon package I downloaded. On their page, you have 2 choices, for eps files : B/W or PSM 3015. The files of the latter (PMS 3015) are misunderstood by Ghostscript, leading to the problem I presented...
What works : B/W icons, compiled with LaTeXand TeX+DVI


Cisco_Icons/pceps images? – Mar 18 '16 at 20:52