Graphics, Figures & TablesDrawing a Triangle

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

Drawing a Triangle

Post by sachinrajsharma »

Hi,

I am trying to make triangle with the following source code but unable to get the result. Following is the source for the same.

Code: Select all

\documentclass[10pt,a4paper]{article}
\usepackage[usenames,dvipsnames]{pstricks}

\begin{document}
  \begin{pspicture}(0,-1.34)(6.8,1.34)
    \psline[linewidth=0.04](6.78,0.88)(0.0,1.32)(0.58,-1.32)(6.74,0.86)(6.74,0.86)(6.76,0.84)
  \end{pspicture} 
\end{document}
The error I get is about "undefined control sequence". Please help and correct me. Thanks.
Last edited by localghost on Fri Apr 26, 2013 5:05 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Drawing a Triangle

Post by localghost »

The code compiles flawlessly. Presumably you try to compile with PDFLaTeX. As you have been told so many times in answers to your previous questions, this is not possible without taking certain measures. But since you didn't even bother to give feedback on proposed solutions, nobody knows if you got that. And it seems that you didn't. m(


Thorsten
Post Reply