Document ClassesTeXnicCenter using PSTricks package

Information and discussion about specific document classes and how to create your own document classes.
GeorgeLeCompte
Posts: 7
Joined: Sun Jan 28, 2007 1:18 pm

TeXnicCenter using PSTricks package

Post by GeorgeLeCompte »

I can get output from PSTricks package using Output Profile LaTeX=>PDF but when I try to use the Output Profile LaTeX->DVI I get about a dozen errors and no graphics in th output.

Please direct me to an appropriate place to look.

Thanks

Recommended reading 2024:

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

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

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

TeXnicCenter using PSTricks package

Post by gmedina »

GeorgeLeCompte wrote: I can get output from PSTricks package using Output Profile LaTeX=>PDF but when I try to use the Output Profile LaTeX->DVI I get about a dozen errors and no graphics in th output.


I do not use TeXnicCenter, but I would expect exactly the opposite result since pstricks uses commands that are not supported by pdflatex. You can consult the documentation for pstricks here.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
yateleybob
Posts: 9
Joined: Mon Jul 09, 2007 1:46 pm

Re: TeXnicCenter using PSTricks package

Post by yateleybob »

The following minimal test file

%%%%%%%%%%%
\documentclass[12pt]{article}
\usepackage{pstricks}
\begin{document}
\psset{unit=1mm}
\pscircle(0,0){10}
\end{document}
%%%%%%%%%%%
compiled and viewed correctly using LaTeX=>PS but not LaTeX=>PDF. Using LaTeX=>DVI the file compiled correctly but the viewer (dviout) failed to open the dvi file, which does exist! This appears to be a problem with dviout (which I never use).
The safe route with pstricks is definitely DVI=>PS and then use ghostView's ability to convert to PDF.
Try checking your file by doing compile and view separately, and not using compile+view (Ctrl-F5). If LaTeX reports no errors (as with my test) then it is a viewer problem, not a dvi problem.
User avatar
Bama Gambler
Posts: 13
Joined: Wed Aug 29, 2007 10:58 pm

Re: TeXnicCenter using PSTricks package

Post by Bama Gambler »

For some reason I can't run this simple example. I've attached the log file. Any ideas?
Attachments
pstricks.log
(3.13 KiB) Downloaded 440 times
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

TeXnicCenter using PSTricks package

Post by gmedina »

Seeing this in your .log

Code: Select all

l.1 \documentclass[12pt]{
                         article}
The document may only declare one class.
makes me think you wrote in the class declaration something like

Code: Select all

\documentclass[12pt]{ article}
with an extra space (or extra spaces). Avoid those extra spaces.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
Bama Gambler
Posts: 13
Joined: Wed Aug 29, 2007 10:58 pm

Re: TeXnicCenter using PSTricks package

Post by Bama Gambler »

I double checked and there are no extra spaces. In fact I did a copy and paste from here. Attached is the exact tex file.
Attachments
pstricks.tex
(119 Bytes) Downloaded 441 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: TeXnicCenter using PSTricks package

Post by localghost »

You mustn't call your file "pstricks.tex". That conflicts with the file read by "pstricks.sty". Give your example file another name and everything will be working fine.
User avatar
Bama Gambler
Posts: 13
Joined: Wed Aug 29, 2007 10:58 pm

Re: TeXnicCenter using PSTricks package

Post by Bama Gambler »

Still not working. :x
Attachments
test.tex
(119 Bytes) Downloaded 432 times
test.log
(3.11 KiB) Downloaded 428 times
User avatar
Bama Gambler
Posts: 13
Joined: Wed Aug 29, 2007 10:58 pm

TeXnicCenter using PSTricks package

Post by Bama Gambler »

Is it b/c of "This is pdfTeX, Version 3.141592-1.40.4"
User avatar
Bama Gambler
Posts: 13
Joined: Wed Aug 29, 2007 10:58 pm

Re: TeXnicCenter using PSTricks package

Post by Bama Gambler »

I installed the pdftricks package which claims "Support for pstricks in pdftex". Then I tried to "LaTeX => PDF", but I still get errors.
Attachments
test.tex
(120 Bytes) Downloaded 417 times
test.log
(5.48 KiB) Downloaded 504 times
Post Reply