I unable to run the following code. How to resolve it. Now i am using Miktex 2.9. and Winedt. Kindly help me to resolve it.

\begin{document} \begin{center}
\scalebox{1} % Change this value to rescale the drawing.
\psline[linewidth=0.02cm,linestyle=dashed,dash=0.16cm 0.16cm](2.08,1.02)(2.84,1.02)
\psline[linewidth=0.02cm,linestyle=dashed,dash=0.16cm 0.16cm](2.08,1.0)(2.44,0.24)
\psline[linewidth=0.02cm,linestyle=dashed,dash=0.16cm 0.16cm](1.7,-1.0)(2.44,-1.0)

Figure 1.
  • 1
    What is the error? No problem here using TeXlive 2014 on Linux. – Sigur Feb 27 '15 at 17:09
  • I used many pictures like this so I unable identify the error. In my out put the text and equations are appeared but the images are not – user51868 Feb 27 '15 at 17:11
  • Are you running latex and getting the dvi file? You can not compile directly with pdflatex, you need to convert from DVI to PS and then to PDF. – Sigur Feb 27 '15 at 17:12
  • How to convert this I dont know how – user51868 Feb 27 '15 at 17:14
  • 1
    also unrelated but don't load the epsfig package. It was produced in 1993 to emulate a package that was old then. – David Carlisle Feb 27 '15 at 17:16

You can compile your code with pdflatex, provided you enable the --enable-write18 switch via Execution Modes in the Optionsmenu: enter image description here

You also have to add pdf option to the document class. I took the opportunity to simplify your code , using the multido package. I took the liberty to slightly change the values of some coordinates which looked weird, so as to be able to pragram the points, rather than having to typeset them, one after another. Here is the shorter code:

\documentclass[a4paper,pdf, 12pt]{article}


    %\scalebox{1}{ % Change this value to rescale the drawing.
        \multido{\n=0.06+0.80,\N = 0.48 + 0.80,\i =1 +1}{5}
        {\dotnodes(\n, 0.2){A\i}(\n, -1.0){B\i}
            \dotnodes(\N, 1.0){C\i}
        \psset{linestyle=dashed,dash=0.16cm 0.16cm}

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.