TeXnicCenter und PSTricks/PDFTricks

Antwort erstellen


Diese Frage dient dazu, das automatisierte Versenden von Formularen durch Spam-Bots zu verhindern.
Smilies
:D :) :( :o :shock: :? 8) :lol: :-x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:

BBCode ist eingeschaltet
[img] ist eingeschaltet
[flash] ist ausgeschaltet
[url] ist eingeschaltet
Smilies sind eingeschaltet

Die letzten Beiträge des Themas

Ich habe die Datenschutzerklärung gelesen und bin damit einverstanden.

   

Wenn du eine Datei oder mehrere Dateien anhängen möchtest, gib die Details unten ein.

Ansicht erweitern Die letzten Beiträge des Themas: TeXnicCenter und PSTricks/PDFTricks

von cgnieder » So 12. Feb 2012, 23:26

RockOn_23 hat geschrieben:[…] Wäre alleine

1. nie auf die genial simple Lösung mit
\usepackage[pdf]{pstricks}
...würde gern wissen, warum selbst auf der Seite von PSTricks zu allen möglichen umständlicheren Lösungen geraten wird (hoffe nicht das ich die Tage den Grund noch schmerzvoll feststellen muss :-)
[…]
Falls doch, dann versuche als nächstes:
\usepackage[runs=2]{auto-pst-pdf}
\usepackage{pstricks}
das funktioniert eigentlich recht zuverlässig. :)

PS: ich habe das Thema (in Deinem Namen ;) ) mal auf beantwortet gesetzt.

von RockOn_23 » So 12. Feb 2012, 23:21

....unglaublich aber war....

....tatataaaaa....meine Augen erblicken ein Dokument mit einem roten Dreieck, einem blau gestrichelten Kreis und einer grünen Bézierkurve :-)

wirklich tausend Dank für deine Hilfe!!! Wäre alleine

1. nie auf die genial simple Lösung mit
\usepackage[pdf]{pstricks}
...würde gern wissen, warum selbst auf der Seite von PSTricks zu allen möglichen umständlicheren Lösungen geraten wird (hoffe nicht das ich die Tage den Grund noch schmerzvoll feststellen muss :-)

2. selbs wenn, wäre es dann an
C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe -enable-write18
gescheitert!

Danke
Benjamin

von cgnieder » So 12. Feb 2012, 18:25

Wie gesagt, ich kenne mich mit TeXnicCenter nicht aus, habe aber folgendes gefunden, das vielleicht angepasst werden kann:
For TeXnicCenter, it works as follows: go to "Output >> Define output profiles (Alt+F7)". There, you should see the different output profiles on the left and on the right, you see the involved programs like "Path to LaTeX Compiler", "BibTeX", "MakeIndex". Select the profile [LaTeX=>PDF], then add -enable-write18 to the "Path to LaTeX Compiler". The "Path To LaTeX Compiler" should be something like C:Program Files\MikTeX 2.9\miktex\bin\latex.exe -enable-write18 afterwards.

von RockOn_23 » So 12. Feb 2012, 18:07

...nee, hilft auch nicht :-(

help help help :-)

von cgnieder » So 12. Feb 2012, 15:01

Und nur mit
--enable-write18
?

PS: ich kenne mich mit dem TeXnicCenter nicht aus, da ich es kaum je verwendet habe. Vielleicht kann hier mal jemand einspringen, der sich damit besser auskennt?

von RockOn_23 » So 12. Feb 2012, 14:57

Erstmal tausend Dank für deine Hilfestellung Clemens

Habe alle Differentialgleichungen und Bodeplots auf Seite gelegt und noch einmal GANZ RUHIG versucht die Sache anzugehen :-)

-enable-write18 -interaction=nonstopmode -max-print-line=120 "%wm" 
sowie
--enable-write18 -interaction=nonstopmode -max-print-line=120 "%wm" 
führen zu den selben Problemen :-(

von cgnieder » So 12. Feb 2012, 14:10

RockOn_23 hat geschrieben:und in TeXnicCenter
--enable-write 18  shell-escape -interaction=nonstopmode -max-print-line=120 "%wm"
Ersetze mal
--enable-write 18
durch
-enable-write18
(ohne Leerzeichen vor 18!)
und lösche
shell-escape
.

Gruß

von RockOn_23 » So 12. Feb 2012, 13:52

danke für deine schnelle Antwort,
Ich nehme an, dass »LaTeX --> PDF« bedeutet, dass mit pdflatex kompiliert wird?
ja, sorry

habe dein Minimalbeispiel 1:1 durchgespielt
\documentclass{article}
\usepackage[pdf]{pstricks}
\begin{document}

\begin{pspicture}(6,6)
  % Triangle in red:
  \psline[linecolor=red](1,1)(5,1)(1,4)(1,1)
  % Bezier curve in green:
  \pscurve[linecolor=green,linewidth=2pt,%
    showpoints=true](5,5)(3,2)(4,4)(2,3)
  % Circle in blue with radius 1:
  \pscircle[linecolor=blue,linestyle=dashed](3,2.5){1}
\end{pspicture}

\end{document}
und in TeXnicCenter
--enable-write 18  shell-escape -interaction=nonstopmode -max-print-line=120 "%wm"
unter 'Agrgumente die an den Compiler übergeben werden' eingetragen.

Ich erhalte fogenden .log file
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2012.2.6)  12 FEB 2012 13:38
entering extended mode
**LaTeX1.tex
(C:\Users\Media\Desktop\LaTeX1.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, arabic, armenian, assamese, basque, bengali
, bokmal, bulgarian, catalan, coptic, croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, galic
ian, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, icelandic, indonesian, interlingua, irish, italian,
 kannada, kurmanji, lao, latin, latvian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, ng
erman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, romanian, russian, sanskrit, serbian, slovak, s
lovenian, spanish, swedish, swissgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usenglishm
ax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) ("C:\Program Files\MiKTeX 2.9\tex\latex\pstricks\pstricks.sty"
Package: pstricks 2011/10/31 v0.52 LaTeX wrapper for `PSTricks' (RN,HV)

>>> Loading package auto-pst-pdf <<<
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\base\pstricks.tex"
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\pst-xkey.tex"
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)

("C:\Program Files\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)

("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"
\XKV@toks=\toks14
\XKV@tempa@toks=\toks15
\XKV@depth=\count87
File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)

("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\keyval.tex"))))
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\base\pst-fp.tex" `pst-fp' v0.05, 2010/01/17 (hv)
\pstFP@xs=\count88
\pstFP@xia=\count89
\pstFP@xib=\count90
\pstFP@xfa=\count91
\pstFP@xfb=\count92
\pstFP@rega=\count93
\pstFP@regb=\count94
\pstFP@regs=\count95
\pstFP@times=\count96
)
\psLoopIndex=\count97

`PSTricks' v2.23  <2011/09/04> (tvz)
\pst@dima=\dimen103
\pst@dimb=\dimen104
\pst@dimc=\dimen105
\pst@dimd=\dimen106
\pst@dimg=\dimen107
\pst@dimh=\dimen108
\pst@dimm=\dimen109
\pst@dimn=\dimen110
\pst@dimo=\dimen111
\pst@dimp=\dimen112
\pst@hbox=\box26
\pst@ibox=\box27
\pst@boxg=\box28
\pst@cnta=\count98
\pst@cntb=\count99
\pst@cntc=\count100
\pst@cntd=\count101
\pst@cntg=\count102
\pst@cnth=\count103
\pst@cntm=\count104
\pst@cntn=\count105
\pst@cnto=\count106
\pst@cntp=\count107
\@zero=\count108
\pst@toks=\toks16
("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\base\pstricks.con")
\psunit=\dimen113
\psxunit=\dimen114
\psyunit=\dimen115
\pst@C@@rType=\count109
\pslinewidth=\dimen116
\psk@startLW=\dimen117
\psk@endLW=\dimen118
\pst@customdefs=\toks17
\pslinearc=\dimen119
\pst@symbolStep=\dimen120
\pst@symbolWidth=\dimen121
\everypsbox=\toks18
\psframesep=\dimen122
\pslabelsep=\dimen123
\pst@shift=\dimen124
\theoverlaybox=\box29
)
File: pstricks.tex 2011/09/04 v2.23 `PSTricks' (tvz,hv)

("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\base\pst-fp.tex")
File: pst-fp.tex 2011/09/04 v2.23 `PST-fp' (hv)

("C:\Program Files\MiKTeX 2.9\tex\latex\xcolor\xcolor.sty"
Package: xcolor 2007/01/21 v2.11 LaTeX color extensions (UK)
 ("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\color.cfg"
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package xcolor Info: Package option `pdf' ignored on input line 216.
Package xcolor Info: Driver file: pdftex.def on input line 225.

("C:\Program Files\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/message (HO)
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"
Package: ltxcmds 2011/04/18 v1.20 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count110
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1337.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1341.
Package xcolor Info: Model `RGB' extended on input line 1353.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1355.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1356.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1357.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1358.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1359.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1360.
)) (C:\Users\Media\Desktop\LaTeX1.aux)
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.

("C:\Program Files\MiKTeX 2.9\tex\latex\auto-pst-pdf\auto-pst-pdf.sty"
Package: auto-pst-pdf 2009/04/26 v0.6 Wrapper for pst-pdf

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty"
Package: ifpdf 2011/01/30 v2.3 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in PDF mode is detected.
)
("C:\Program Files\MiKTeX 2.9\tex\latex\ifplatform\ifplatform.sty"
Package: ifplatform 2010/10/22 v0.4 Testing for the operating system

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\pdftexcmds.sty"
Package: pdftexcmds 2011/04/22 v0.16 Utilities of pdfTeX for LuaTeX (HO)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\catchfile.sty"
Package: catchfile 2011/03/01 v1.6 Catches the contents of a file (HO)

("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"
Package: etexcmds 2011/02/16 v1.5 Prefix for e-TeX command names (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds)             That can mean that you are not using pdfTeX 1.50 or
(etexcmds)             that some package has redefined \expanded.
(etexcmds)             In the latter case, load this package earlier.
)))
\c@app@runs=\count111
runsystem(echo " ")...executed.

runsystem(echo "-------------------------------------------------")...executed.

runsystem(echo "auto-pst-pdf: Auxiliary LaTeX compilation")...executed.

runsystem(echo "-------------------------------------------------")...executed.

runsystem(del "LaTeX1-autopp.log")...executed.

runsystem(del "LaTeX1-autopp.aux")...executed.

runsystem(del "LaTeX1-autopp.dvi")...executed.

runsystem(del "LaTeX1-autopp.ps")...executed.

runsystem(del "LaTeX1-autopp.pdf")...executed.

runsystem(latex -disable-write18 -jobname="LaTeX1-autopp" -interaction=batchmode  "\let \APPmakepictures \empty \input  
LaTeX1.tex")...executed.

runsystem(dvips -Ppdf -o "LaTeX1-autopp.ps" "LaTeX1-autopp.dvi")...executed.

runsystem(ps2pdf  "LaTeX1-autopp.ps" "LaTeX1-autopp.pdf")...executed.

runsystem(pdfcrop  "LaTeX1-autopp.pdf" "LaTeX1-pics.pdf")...executed.



Package auto-pst-pdf Warning: 
    Creation of LaTeX1-pics.pdf failed.
This warning occured on input line 124.


Package auto-pst-pdf Warning: 
    Could not create LaTeX1-pics.pdf. Auxiliary files not deleted.
This warning occured on input line 124.

runsystem(echo "-------------------------------------------------")...executed.

runsystem(echo "auto-pst-pdf: End auxiliary LaTeX compilation")...executed.

runsystem(echo "-------------------------------------------------")...executed.

("C:\Program Files\MiKTeX 2.9\tex\latex\pst-pdf\pst-pdf.sty"
Package: pst-pdf 2008/10/09 v1.1v PS graphics for pdfLaTeX (RN,HjG)
\c@pspicture=\count112

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
 ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
) ("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.
)
\Gin@req@height=\dimen125
\Gin@req@width=\dimen126
)
Package pst-pdf Info: MODE: 1 (pdfTeX mode) on input line 214.
\ppf@output=\toks19

("C:\Program Files\MiKTeX 2.9\tex\latex\preview\preview.sty"
Package: preview 2010/02/14 11.86 (AUCTeX/preview-latex)
\pr@snippet=\count113
\pr@box=\box30
\pr@output=\toks20

Preview: Fontsize 10pt
Preview: PDFoutput 1
) ("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\dvips.def"
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
)
("C:\Program Files\MiKTeX 2.9\tex\latex\environ\environ.sty"
Package: environ 2008/06/18 v0.2 A new way to define environments
\@emptytoks=\toks21
\@envbody=\toks22
)))
("C:\Program Files\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count114
\scratchdimen=\dimen127
\scratchbox=\box31
\nofMPsegments=\count115
\nofMParguments=\count116
\everyMPshowfont=\toks23
\MPscratchCnt=\count117
\MPscratchDim=\dimen128
\MPnumerator=\count118
\makeMPintoPDFobject=\count119
\everyMPtoPDFconversion=\toks24
)

Package pst-pdf Warning: pspicture No. 1 undefined.


Package pst-pdf Warning: File `LaTeX1-pics.pdf' not found.
(pst-pdf)                Use the following commands to create it:
(pst-pdf)                ---------------------------------------------------- 
(pst-pdf)                latex LaTeX1.tex
(pst-pdf)                dvips -o LaTeX1-pics.ps LaTeX1.dvi
(pst-pdf)                ps2pdf LaTeX1-pics.ps
(pst-pdf)                ---------------------------------------------------- .

(C:\Users\Media\Desktop\LaTeX1.aux) ) 
Here is how much of TeX's memory you used:
 3542 strings out of 494045
 48322 string characters out of 3148388
 122064 words of memory out of 3000000
 6810 multiletter control sequences out of 15000+200000
 3640 words of font info for 14 fonts, out of 3000000 for 9000
 715 hyphenation exceptions out of 8191
 41i,1n,38p,272b,96s stack positions out of 5000i,500n,10000p,200000b,50000s

No pages of output.
PDF statistics:
 0 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)
...Hiiilfe :-) ....sollte schon 10 Seiten weitergekommen sein :-(

von cgnieder » So 12. Feb 2012, 12:24

Ich nehme an, dass »LaTeX --> PDF« bedeutet, dass mit pdflatex kompiliert wird?
Folgendes funktioniert für mich:
\documentclass{article}
\usepackage[pdf]{pstricks}
\begin{document}

\begin{pspicture}(6,6)
  % Triangle in red:
  \psline[linecolor=red](1,1)(5,1)(1,4)(1,1)
  % Bezier curve in green:
  \pscurve[linecolor=green,linewidth=2pt,%
    showpoints=true](5,5)(3,2)(4,4)(2,3)
  % Circle in blue with radius 1:
  \pscircle[linecolor=blue,linestyle=dashed](3,2.5){1}
\end{pspicture}

\end{document}
wenn es mit
pdflatex --shell-escape
kompiliert wird.

Ich weiß nicht ob das TeXnicCenter-spezifisch die korrekte Syntax ist:
--enable-write 18  shell-escape -interaction=nonstopmode -max-print-line=120 "%wm"
Ich hätte eher etwas in der Art erwartet:
--shell-escape --interaction=nonstopmode -max-print-line=120 "%wm" 
Es sollte auch entweder
--enable-write18
oder
--shell-escape
verwendet werden, soweit ich weiß. Wobei ersteres eher auf Windows zu erwarten ist und letzteres auf anderen OS. (Bitte korrigiere mich jemand, wenn ich hier falsch liege.)

Gruß

TeXnicCenter und PSTricks/PDFTricks

von RockOn_23 » So 12. Feb 2012, 12:07

Hallo und einen schönen Sonntag zusammen,

ich nutze seit längerem - und mit großer Freude - LaTeX zur Erstellung mittlerer bis großer Dokumente.

Mit Hilfe von TeXnicCenter gehe ich immer den Weg 'LaTeX --> PDF'

Für meine aktuelle Arbeit muss ich - im Gegensatz zu sonst nur Bilder im PDF Format - nun auch PSTricks verwenden. Da dies im auf dem Weg 'LaTeX --> PDF' nicht funktioniert, ist mir zu PDFTricks geraten worden.

Hier meine naive Vorgehensweise:

1. im Dokument
\documentclass[a4paper]{article}
\usepackage{ifpdf}
\ifpdf%
  \usepackage{pdftricks}
  \begin{psinputs}
    \usepackage{pstricks}
  \end{psinputs}
\else
  \usepackage{pstricks}
  \newenvironment{pdfpic}{}{}
\fi
2. in TeXnicCenter:
--->Ausgabeprofile
---> 'LaTeX --> PDF'
--->'Agrgumente die an den Compiler übergeben werden'
--enable-write 18  shell-escape -interaction=nonstopmode -max-print-line=120 "%wm"
....und gar nichts funktioniert :-(

Fände toll, wenn mir jemand unompliziert helfen könnte. Geben zu, dass ich gar keine Ahnung habe und einfach froh bin, wenn mein LaTeX System einfach funktioniert.

Danke und schönen Sonntag
Benjamin

Nach oben