GeneralPSTricks + auto-pst-pdf and TeXnicCenter

General information and discussion about TeXnicCenter
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

PSTricks + auto-pst-pdf and TeXnicCenter

Post by localghost »

latexhelp1 wrote:[…] I am not sure if I am reading it correctly. This is what I'm seeing if I try to use the pdf mod with: "%tm.idx" -o "%tm.ind" […]
Who told you to do so? These are settings for MakeIndex and not for PDFLaTeX (as the error message indicates). You will never manage to get it work if you don't stop messing around with the settings.

Recommended reading 2024:

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

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

latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Re: PSTricks + auto-pst-pdf and TeXnicCenter

Post by latexhelp1 »

How do I set either of those up? I have looked at other posts pertaining to these 2 links and I could not at all figure them out.

I really appreciate your bearing with me through all of my questions!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

PSTricks + auto-pst-pdf and TeXnicCenter

Post by localghost »

The picture attached to my earlier post shows clearly the necessary additional command line options for the compiler (note the mouse cursor). The most important one in this context is '--enable-write18' to allow the compiler to execute external programs. You have to add at least this.
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Re: PSTricks + auto-pst-pdf and TeXnicCenter

Post by latexhelp1 »

I am so sorry that I am having a hard time following directions. I do see your settings. I thought that maybe I typed them incorrectly . I tried to do a copy and paste, but could not figure out how to do so.

This is what I have under pdf(mod) for LaTeX Compiler:
C:\Program Files\MiKTeX 2.8\miktex\bin\pdflatex.exe
-synctex=-1 --enable-write18 -interaction=nonstopmode -max-print-

Did I interpret your box correctly? My sincere apologies if I did not. I really appreciate your patience with me.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

PSTricks + auto-pst-pdf and TeXnicCenter

Post by localghost »

latexhelp1 wrote:[…] Did I interpret your box correctly? My sincere apologies if I did not. I really appreciate your patience with me.
Just a remark beforehand. My patience is about to run out. I told to just to _add_ some options to the command line for the compiler (correct me if I'm wrong). I did not tell you to modify this line in any other way. You have deleted a part of the options just because you didn't see them in the picture. So it's no surprise that it doesn't work. The correct command line options for the compiler are these.

Code: Select all

-synctex=-1 --enable-write18 -interaction=nonstopmode -max-print-line=120 "%Wm"
If this still isn't clear to you, I'm out of advice in this regard.
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Re: PSTricks + auto-pst-pdf and TeXnicCenter

Post by latexhelp1 »

Yay! It compiles. :) Though, it doesn't work :( I have 2 errors. Here is the code I have been given, log files attached:
\documentclass{minimal}
\usepackage{pstricks-add}
\usepackage{auto-pst-pdf}

\begin{document}
\psset{unit=1.5}
\begin{pspicture}(-3,-3)(3,3)
\psChart[%
userColor={red!30,green!30,blue!40,gray,cyan!50,magenta!60,cyan},
chartSep=30pt,
shadow=true,
shadowsize=5pt
]{34.5,17.2,20.7,15.5,5.2,6.9}{6}{2}
\psset{nodesepA=5pt,nodesepB=-10pt}
\ncline{psChartO1}{psChart1}\nput{0}{psChartO1}{1000 (34.5\%)}
\ncline{psChartO2}{psChart2}\nput{150}{psChartO2}{500 (17.2\%)}
\ncline{psChartO3}{psChart3}\nput{-90}{psChartO3}{600 (20.7\%)}
\ncline{psChartO4}{psChart4}\nput{0}{psChartO4}{450 (15.5\%)}
\ncline{psChartO5}{psChart5}\nput{0}{psChartO5}{150 (5.2\%)}
\ncline{psChartO6}{psChart6}\nput{0}{psChartO6}{200 (6.9\%)}
\bfseries%
\rput(psChartI1){Taxes}\rput(psChartI2){Rent}\rput(psChartI3){Bills}
\rput(psChartI4){Car}\rput(psChartI5){Gas}\rput(psChartI6){Food}
\end{pspicture}
\end{document}
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Re: PSTricks + auto-pst-pdf and TeXnicCenter

Post by latexhelp1 »

I am incredibly grateful for your selfless help. I truly cannot thank you enough. I very much apologize that I had misread your directions about adding v.s. modify. I thought you mean to mimic your box because I did not know where to add that term; I had thought if I copied you (because imitation is the sincerest form of flattery), that I could be well on my way! :) I truly appreciate your patience.
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

PSTricks + auto-pst-pdf and TeXnicCenter

Post by CrazyHorse »

latexhelp1 wrote:Yay! It compiles. :) Though, it doesn't work :( I have 2 errors. Here is the code I have been given, log files attached:
your system is not up to date. Install MiKTeX 2.9 or alternatively update
the PSTricks system. All files saved in a tarzip with a compatible TeX Directory Structure are available at http://texnik.dante.de

Herbert
latexhelp1
Posts: 141
Joined: Sun Jun 12, 2011 6:30 am

Re: PSTricks + auto-pst-pdf and TeXnicCenter

Post by latexhelp1 »

This is great. However, I'm having a hard time compiling my former-beamer presentations. I'm attaching the log file for a presentation that had previously compiled successfully.

The first .log file is if I use my old settings, just the Latex => .pdf.

The second .log file is if I use the new settings: Latex => .pdf (mod).


On another note, I did download the pstricks zip. However, I am not sure what to do with it.

Thank you so much for all of your help and considerable patience.
Attachments
Reading Group Text.log
(52.56 KiB) Downloaded 393 times
Reading Group Text.log
(39.03 KiB) Downloaded 379 times
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

PSTricks + auto-pst-pdf and TeXnicCenter

Post by CrazyHorse »

latexhelp1 wrote:This is great. However, I'm having a hard time compiling my former-beamer presentations. I'm attaching the log file for a presentation that had previously compiled successfully.

The first .log file is if I use my old settings, just the Latex => .pdf.

The second .log file is if I use the new settings: Latex => .pdf (mod).


On another note, I did download the pstricks zip. However, I am not sure what to do with it.

Thank you so much for all of your help and considerable patience.
I suppose that your files are saved under c:\miktex. Then you'll see that you have
under this directory the same structure as in the tarzip. copy the files always into the same directories. Some files are new. And in the end update your MiKTeX file data base by running MiKTeX->Settings->Refresh FNDB

Herbert
Post Reply