GeneralInstallation PSTricks and MacTeX

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Installation PSTricks and MacTeX

Post by coachbennett1981 »

I did not know where to post this. My computer, a mac had to have the OS re-installed this weekend. I have loaded MacTex on, but I tried a PSTRICKS example and got the following errow message:
./pstricks.tex:1: LaTeX Error: Two \documentclass or \documentstyle commands.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.

l.1 \documentclass[12pt]{article}
?
I have been reading all night, but I have no idea how I installed PSTRICKS to begin with. Can anyone explain how I can install PSTRICKS for Mactex. Step by step?

Nick
Last edited by coachbennett1981 on Tue Nov 09, 2010 12:20 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
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Re: Installation PSTricks and MacTeX

Post by Stefan Kottwitz »

Hi Nick,

don't give the name pstricks.tex to your own LaTeX document because it's already used by the pstricks package. This can stop the compilation.

Stefan
LaTeX.org admin
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Installation PSTricks and MacTeX

Post by CrazyHorse »

coachbennett1981 wrote:I have loaded MacTex on, but I tried a PSTRICKS example and got the following errow message:
./pstricks.tex:1: LaTeX Error: Two \documentclass or \documentstyle commands.
FDE (Frequently Done Errors) no 1 => http://PSTricks.tug.org

Herbert
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Re: Installation PSTricks and MacTeX

Post by coachbennett1981 »

Thank you both. I realized this after I first saved this to pstricks, then changed the name to graph, and still nothing. I then just opened a new file called it WORK and it did.

Thank you so much. I know it seems like a dumb question, or an easy fix, but you both saved me on this.


Very appreciated,

Nick
Post Reply