Document Classes ⇒ TeXnicCenter using PSTricks package
-
- Posts: 7
- Joined: Sun Jan 28, 2007 1:18 pm
TeXnicCenter using PSTricks package
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
Please direct me to an appropriate place to look.
Thanks
TeXnicCenter using PSTricks package
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,...
-
- Posts: 9
- Joined: Mon Jul 09, 2007 1:46 pm
Re: TeXnicCenter using PSTricks package
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.
%%%%%%%%%%%
\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.
- Bama Gambler
- Posts: 13
- Joined: Wed Aug 29, 2007 10:58 pm
Re: TeXnicCenter using PSTricks package
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 411 times
TeXnicCenter using PSTricks package
Seeing this in your .log
makes me think you wrote in the class declaration something like
with an extra space (or extra spaces). Avoid those extra spaces.
Code: Select all
l.1 \documentclass[12pt]{
article}
The document may only declare one class.
Code: Select all
\documentclass[12pt]{ article}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
- Bama Gambler
- Posts: 13
- Joined: Wed Aug 29, 2007 10:58 pm
Re: TeXnicCenter using PSTricks package
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 424 times
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
Re: TeXnicCenter using PSTricks package
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.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
- Bama Gambler
- Posts: 13
- Joined: Wed Aug 29, 2007 10:58 pm
Re: TeXnicCenter using PSTricks package
Still not working. 

- Bama Gambler
- Posts: 13
- Joined: Wed Aug 29, 2007 10:58 pm
TeXnicCenter using PSTricks package
Is it b/c of "This is pdfTeX, Version 3.141592-1.40.4"
- Bama Gambler
- Posts: 13
- Joined: Wed Aug 29, 2007 10:58 pm
Re: TeXnicCenter using PSTricks package
I installed the pdftricks package which claims "Support for pstricks in pdftex". Then I tried to "LaTeX => PDF", but I still get errors.