LaTeX forum ⇒ Graphics, Figures & TablesNo Output of LaTeXDraw in Document

Information and discussion about graphics, figures & tables in LaTeX documents.
Posts: 35
Joined: Sun Apr 08, 2012 5:48 am

No Output of LaTeXDraw in Document

Postby sachinrajsharma » Mon Apr 22, 2013 11:13 am


I used a package LaTeXDraw, and got some code for the drawing I made in that, when I used the source code generated in LaTeXDraw and use this in my editor which is TeXmaker, I am not getting the result (output).

Both files are attached for your reference. I am attaching the output which I got in LaTeX as well for reference.

Please guide.

Sachin Sharma
test diagram.tex
(1.64 KiB) Downloaded 278 times


User avatar
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Mon Apr 22, 2013 5:52 pm

Since the program relies on PSTricks, you either have to compile with LaTeX→DVI→PS→PDF, XeLaTeX→PDF or us the auto-pst-pdf package for direct compilation with PDFLaTeX.

Perhaps its is better to use PSTricks directly instead of relying on bad export by third part software.
  1. % !TeX program = pdflatex
  2. \documentclass[11pt]{article}
  3. \usepackage[T1]{fontenc}
  4. \usepackage{pstricks-add}
  5. \usepackage{auto-pst-pdf}
  7. \begin{document}
  8. \begin{pspicture}[showgrid=false](0,-2)(6,4)
  9. \begin{psclip}{\psframe(0,0)(4,4)}
  10. \psframe[fillstyle=hlines](2,2)(6,-2)
  11. \end{psclip}
  12. \psframe(2,2)(6,-2)
  13. \end{pspicture}
  14. \begin{pspicture}[showgrid=false](-2,-4)(4,2)
  15. \begin{psclip}{\pscircle(0;0){2}}
  16. \pscircle[fillstyle=vlines](2;315){2}
  17. \end{psclip}
  18. \pscircle(2;315){2}
  19. \end{pspicture}
  20. \end{document}

Needs of course shell escape enabled for the PDFLaTeX compiler. The output is attached.


  • The \scalebox command is forbidden in the preamble.
  • The epsfig package is obsolete for a long time.

ytmp.png (4.37 KiB) Viewed 3534 times
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 1 guest