I get the error

Undefined control sequence. [\psline{->}]

when i try to run the code

\psplot{12.879}{17.121}{9-2*(15-x)^2} %Curve 2 
\psplot{0.757359}{9.24264}{9-0.5*(5-x)^2}%curve 1
\psline[linestyle=dotted]{}(5,0)(5,9)% Optimum curve 1 
\psline[linestyle=dotted]{}(15,0)(15,9) % Optimum curve 2
\psline[linestyle=dotted]{}(13.5,0)(13.5,4.5) % change in curve 2
\psline[linestyle=dotted]{}(0,4.5)(13.5,4.5) % lower horizontal line
\psline[linestyle=dotted]{}(3.5,0)(3.5,7.875) % change in curve 2
\psline[linestyle=dotted]{}(0,7.875)(3.5,7.875) %upper horizontal line


\uput[45](0.5,5.8){$u_1\ge u_2$}
  • This question appears to be off-topic because it is about failing to use xelatex for compilation, so it is not likely to be helpful to future visitors of the site. – Adam Liter Jul 11 '14 at 5:40

The algebraic option is missing:

\psplot[algebraic]{12.879}{17.121}{9-2*(15-x)^2} %Curve 2 
\psplot[algebraic]{0.757359}{9.24264}{9-0.5*(5-x)^2}%curve 1
  • I still get the same error – Rud Faden Jul 8 '14 at 15:24
  • Did you run xelatex or latex? And what system are you running? – user2478 Jul 8 '14 at 16:47
  • Ahh.. Using xelatex worked – Rud Faden Jul 8 '14 at 17:01

The solution was to compile with xelatex.

  • and_ using the algebraic option ... – user2478 Jul 11 '14 at 7:03

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.