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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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