Kein PDF mit auto-pst-pdf-Package

Weitere Software zur Bearbeitung wie epstopdf, pdffonts, pdfcrop uvm.


Hoffmann91
Forum-Newbie
Forum-Newbie
Beiträge: 7
Registriert: So 17. Aug 2014, 11:26

Kein PDF mit auto-pst-pdf-Package

Beitrag von Hoffmann91 »

Hallo,
für meine Bachelorarbeit möchte ich Reaktionsgleichungen von ChemDraw als .eps-Datei in LaTeX einfügen und diese nummerieren lassen. Dafür habe ich (siehe Minimalbeispiel) die beiden Usepackages auto-pst-pdf und chemstyle geladen, die auch als "vorhanden" angezeigt werden. Als Fehler wird mir jedoch beim direkten "Erstellen & Anzeigen" zum PDF
sh: latex: command not found
als Meldung und
Package pdftex.def Error: File `test-pics.pdf' not found. \includegraphics{test.eps}
Creation of test-autopp.dvi failed.
Creation of test-autopp.dvi failed.
Could not create test-pics.pdf. Auxiliary files not deleted.
File `test-pics.pdf' not found
File `test-pics.pdf' not found.
im Log ausgegeben.

Das Minimalbeispiel lautet:
\documentclass[12pt,a4paper]{scrartcl}
\usepackage[applemac]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[crop=off, runs=2]{auto-pst-pdf}
\usepackage{chemstyle}
\begin{document}
Dies ist ein Test. Nichts ungewöhnliches.
\begin{scheme}[htb]
	\begin{center}
		\schemeref[TMP1]{edukt1}
		\schemeref[TMP2]{produkt1}
		\schemeref[TMP3]{produkt2}
		\includegraphics{test.eps}
	\end{center}
\end{scheme}
\end{document}
Ich habe MacTeX installiert und verwendet texstudio als Editor. Da ich eine PDF-Datei erstellen möchte, habe ich in den Einstellungen bei PdfLaTeX --shell-escape hinzugefügt:
/usr/texbin/pdflatex -synctex=1 -interaction=nonstopmode --shell-escape %.tex
Da auch korrekte .tex-Dateien von Bekannten an meinem Mac nicht kompiliert werden, vermute ich, dass es eine System-Einstellung ist. Dafür reicht mein Wissen jedoch hinten und vorne nicht.
Jedoch kann ich die PDF-Datei über Umwege erstellen. Denn wenn ich in der Reihenfolge
1. LaTeX,
2. DVI -> PS und
3. PS -> PDF
manuell kompliliere, bekomme ich keine Fehlermeldung.

Ich hoffe ich konnte mein Problem anschaulich beschreiben und mir kann jemand helfen.

Vielen Dank.

Gruß
Timo

rais
Forum-Guru
Forum-Guru
Beiträge: 407
Registriert: Di 21. Sep 2010, 00:37

Re: Kein PDF mit auto-pst-pdf-Package

Beitrag von rais »

Hoffmann91 hat geschrieben:Als Fehler wird mir jedoch beim direkten "Erstellen & Anzeigen" zum PDF
sh: latex: command not found
[...]
hast Du denn /usr/texbin im Suchpfad?
echo $PATH
und latex ist dort auch mit drin?
ls /usr/texbin/latex
MfG
Rainer
One of the joys of travel is visiting new towns and meeting new people---G.Khan (Robert Asprin, Another Fine Myth)

Hoffmann91
Forum-Newbie
Forum-Newbie
Beiträge: 7
Registriert: So 17. Aug 2014, 11:26

Beitrag von Hoffmann91 »

Danke für die schnelle Antwort.

1. Der LaTeX Suchpfad ist immer noch standardmäßig eingestellt, also
/usr/texbin/latex -src -interaction=nonstopmode %.tex
2. Was meinst du mit "echo $PATH"?

3. im Ordner /usr/texbin liegt auch latex, ja.

Sobald ich das Usepackage "auto-pst-pdf" rausnehme, funktioniert das direkte kompilieren via Pdflatex reibungslos.

rais
Forum-Guru
Forum-Guru
Beiträge: 407
Registriert: Di 21. Sep 2010, 00:37

Beitrag von rais »

Hoffmann91 hat geschrieben: 1. Der LaTeX Suchpfad ist immer noch standardmäßig eingestellt, also
/usr/texbin/latex -src -interaction=nonstopmode %.tex
Sorry, ich meinte nicht den LaTeX-Suchpfad (wobei der eher über kpathsea erreichbar ist), sondern den Pfad, unter dem Dein Betriebssystem Programme zu finden versucht.
Hoffmann91 hat geschrieben: 2. Was meinst du mit "echo $PATH"?
`$PATH' ist die Umgebungsvariable Deines Systems, in der drinsteht, unter welchen Pfaden ``Programme'' gesucht werden sollen.
`echo $PATH', auf der Kommandozeile eingegeben, zeigt Dir genau, welche Pfade damit in Frage kommen.
Die Frage hier ist, ob `/usr/texbin' darin auftaucht (umschlossen von `:' bzw. ganz am Anfang (dann eben nur ein `:' danach) bzw. ganz am Ende (dann eben nur ein `:' davor)).
Wenn nicht, ist klar, warum `latex' indirekt von auto-pst-pdf nicht aufgerufen werdn kann: Es wird schlicht nicht gefunden.
Aufm MAC mag es andere Wege geben, aber schau mal nach einer Datei `~/.bashrc'. So sie denn vorhanden ist, kannst Du
PATH=$PATH:/usr/texbin
darin ergänzen, Dich neu einloggen, und schauen, ob `latex' nun ohne Angabe eines Pfades aufrufbar ist.
(und nein, ich hab keinen MAC).

MfG
Rainer
One of the joys of travel is visiting new towns and meeting new people---G.Khan (Robert Asprin, Another Fine Myth)

Hoffmann91
Forum-Newbie
Forum-Newbie
Beiträge: 7
Registriert: So 17. Aug 2014, 11:26

Beitrag von Hoffmann91 »

echo $PATH liefert, dass /usr/texbin am Ende vorhanden ist.

Die ~/bashrc Datei, die ich zuerst erstellen musste, weil ich ansonsten nur ~/bash_history und ~/bash_profile gefunden habe, war dementsprechend leer. Habe sie aber mit
PATH=$PATH:/usr/texbin 
gefüllt, was insgesamt aber zu keiner Verbesserung des Problems geführt hat, leider.

rais
Forum-Guru
Forum-Guru
Beiträge: 407
Registriert: Di 21. Sep 2010, 00:37

Beitrag von rais »

hmm.
Lass das mal laufen:
\listfiles
\documentclass[12pt,a4paper]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[crop=off, runs=2]{auto-pst-pdf}
\usepackage{chemstyle}
\begin{document}
x
\end{document}
und poste bzw. vergleiche selbst die ersten vier Zeilen sowie den *File List* Block aus Deiner .log.
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex 2014.8.3)  17 AUG 2014 22:30
entering extended mode
 \write18 enabled.
 %&-line parsing enabled.
 *File List*
scrartcl.cls    2013/12/19 v3.12 KOMA-Script document class (article)
scrkbase.sty    2013/12/19 v3.12 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
 scrbase.sty    2013/12/19 v3.12 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
  keyval.sty    2014/05/08 v1.15 key=value parser (DPC)
scrlfile.sty    2013/12/19 v3.12 KOMA-Script package (loading files)
tocbasic.sty    2013/12/19 v3.12 KOMA-Script package (handling toc-files)
scrsize12pt.clo    2013/12/19 v3.12 KOMA-Script font size class option (12pt)
typearea.sty    2013/12/19 v3.12 KOMA-Script package (type area)
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
auto-pst-pdf.sty    2009/04/26 v0.6 Wrapper for pst-pdf
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
 xkeyval.sty    2014/05/25 v2.7 package option processing (HA)
 xkeyval.tex    2014/05/25 v2.7 key=value parser (HA)
ifplatform.sty    2010/10/22 v0.4 Testing for the operating system
pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
catchfile.sty    2011/03/01 v1.6 Catch the contents of a file (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
     mb4.w18
 pst-pdf.sty    2008/10/09 v1.1v PS graphics for pdfLaTeX (RN,HjG)
graphicx.sty    2014/04/25 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
pstricks.sty    2013/12/12 v0.60 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2014/07/28 v2.55 `PSTricks' (tvz,hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
  pst-fp.tex    2014/07/28 v2.55 `PST-fp' (hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
 preview.sty    2010/02/14 11.86 (AUCTeX/preview-latex)
   dvips.def    2014/04/23 v3.0j Driver-dependant file (DPC,SPQR)
 environ.sty    2014/05/04 v0.3 A new way to define environments
trimspaces.sty    2009/09/17 v1.1 Trim spaces around a token list
chemstyle.sty    2013/07/03 v2.0m Schemes and style for chemistry
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
 caption.sty    2013/05/02 v3.3-89 Customizing captions (AR)
caption3.sty    2013/05/02 v1.6-88 caption3 kernel (AR)
chemscheme.sty    2013/07/03 v2.0m Schemes for chemistry
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
  psfrag.sty    1998/04/11 v3.04 PSfrag (MCG)
  xspace.sty    2009/10/20 v1.13 Space after command names (DPC,MH)
 siunitx.sty    2013/07/31 v2.5s A comprehensive (SI) units package
   expl3.sty    2014/07/20 v5241 L3 programming layer (loader) 
expl3-code.tex    2014/07/20 v5241 L3 programming layer 
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
l3unicode-data.def    2014/06/30 v5166 L3 Unicode data
l3pdfmode.def    2014/07/18 v5232 L3 Experimental driver: PDF mode
  xparse.sty    2014/07/20 v5241 L3 Experimental document command parser
   array.sty    2008/09/09 v2.4c Tabular extension package (FMi)
l3keys2e.sty    2014/07/20 v5241 LaTeX2e option processing using LaTeX3 keys
translator.sty    2010/06/12 ver 1.10
translator-language-mappings.tex
varioref.sty    2011/10/02 v1.4z package for extended references (FMi)
floatrow.sty    2008/08/02 v0.3b floatrow: float package extension
chemcompounds.sty    2006/12/01 v1.1.3 Dictionary for compound numbering
supp-pdf.mkii
translator-basic-dictionary-English.dict    
siunitx-abbreviations.cfg    2013/07/31 v2.5s siunitx: Abbreviated units
 ***********
MfG
Rainer
One of the joys of travel is visiting new towns and meeting new people---G.Khan (Robert Asprin, Another Fine Myth)

Hoffmann91
Forum-Newbie
Forum-Newbie
Beiträge: 7
Registriert: So 17. Aug 2014, 11:26

Beitrag von Hoffmann91 »

Wurde ausgeführt:
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex 2014.7.21)  18 AUG 2014 08:04
entering extended mode
 \write18 enabled.
Sowie die File-List:
*File List*
scrartcl.cls    2013/12/19 v3.12 KOMA-Script document class (article)
scrkbase.sty    2013/12/19 v3.12 KOMA-Script package (KOMA-Script-dependent bas
ics and keyval usage)
 scrbase.sty    2013/12/19 v3.12 KOMA-Script package (KOMA-Script-independent b
asics and keyval usage)
  keyval.sty    2014/05/08 v1.15 key=value parser (DPC)
scrlfile.sty    2013/12/19 v3.12 KOMA-Script package (loading files)
tocbasic.sty    2013/12/19 v3.12 KOMA-Script package (handling toc-files)
scrsize12pt.clo    2013/12/19 v3.12 KOMA-Script font size class option (12pt)
typearea.sty    2013/12/19 v3.12 KOMA-Script package (type area)
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
auto-pst-pdf.sty    2009/04/26 v0.6 Wrapper for pst-pdf
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
 xkeyval.sty    2014/05/09 v2.6d package option processing (HA)
 xkeyval.tex    2014/05/09 v2.6d key=value parser (HA)
ifplatform.sty    2010/10/22 v0.4 Testing for the operating system
pdftexcmds.sty    2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
catchfile.sty    2011/03/01 v1.6 Catch the contents of a file (HO)
etexcmds.sty    2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO)
 golatex.w18
 pst-pdf.sty    2008/10/09 v1.1v PS graphics for pdfLaTeX (RN,HjG)
graphicx.sty    2014/04/25 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2010/04/23 v1.9 graphics configuration of TeX Live
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
pstricks.sty    2013/12/12 v0.60 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2014/05/19 v2.54a `PSTricks' (tvz,hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
  pst-fp.tex    2014/05/19 v2.54a `PST-fp' (hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
 preview.sty    2010/02/14 11.86 (AUCTeX/preview-latex)
   dvips.def    2014/04/23 v3.0j Driver-dependant file (DPC,SPQR)
 environ.sty    2014/05/04 v0.3 A new way to define environments
trimspaces.sty    2009/09/17 v1.1 Trim spaces around a token list
chemstyle.sty    2013/07/03 v2.0m Schemes and style for chemistry
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
 caption.sty    2013/05/02 v3.3-89 Customizing captions (AR)
caption3.sty    2013/05/02 v1.6-88 caption3 kernel (AR)
chemscheme.sty    2013/07/03 v2.0m Schemes for chemistry
kvoptions.sty    2011/06/30 v3.11 Key value format for package options (HO)
kvsetkeys.sty    2012/04/25 v1.16 Key value parser (HO)
  psfrag.sty    1998/04/11 v3.04 PSfrag (MCG)
  xspace.sty    2009/10/20 v1.13 Space after command names (DPC,MH)
 siunitx.sty    2013/07/31 v2.5s A comprehensive (SI) units package
   expl3.sty    2014/05/20 v4814 L3 programming layer (loader) 
expl3-code.tex    2014/05/20 v4814 L3 programming layer 
    etex.sty    1998/03/26 v2.0 eTeX basic definition package (PEB)
  xparse.sty    2014/05/05 v4740 L3 Experimental document command parser
   array.sty    2008/09/09 v2.4c Tabular extension package (FMi)
l3keys2e.sty    2014/05/05 v4740 LaTeX2e option processing using LaTeX3 keys
translator.sty    2010/06/12 ver 1.10
translator-language-mappings.tex
varioref.sty    2011/10/02 v1.4z package for extended references (FMi)
floatrow.sty    2008/08/02 v0.3b floatrow: float package extension
chemcompounds.sty    2006/12/01 v1.1.3 Dictionary for compound numbering
supp-pdf.mkii
translator-basic-dictionary-English.dict    
siunitx-abbreviations.cfg    2013/07/31 v2.5s siunitx: Abbreviated units
 ***********

Benutzeravatar
Johannes_B
Moderator
Moderator
Beiträge: 5079
Registriert: Do 1. Nov 2012, 14:55
Kontaktdaten:

Beitrag von Johannes_B »

Kleines aber wichtiges Detail: Deine bash-config Dateien haben alle einen Punkt am Anfang und werden somit für den Finder unsichtbar (es sei denn du machst sie sichtbar). Ohne Punkt könnte die Datei auch Mausezahn heißen und wäre für die bash von gleicher Bedeutung.
TeXwelt - Fragen und Antworten Schaut vorbei und stellt Fragen.
LaTeX-Vorlagen?

Der Weg zum Ziel: Ruhe bewahren und durchatmen, Beiträge und unterstützende Links aufmerksam lesen, Lösungsansätze verstehen und ggf. nachfragen.

rais
Forum-Guru
Forum-Guru
Beiträge: 407
Registriert: Di 21. Sep 2010, 00:37

Beitrag von rais »

In der Tat.
Und doch schrieb der OP
Hoffmann91 hat geschrieben: echo $PATH liefert, dass /usr/texbin am Ende vorhanden ist.
@Hoffmann91: öffne eine Textkonsole, dort dann
cd /wo/auch/immer/Deine/TeXDatei/ist
type -p latex
und wenn da denn noch /usr/texbin/latex bei rauskommt
pdflatex -shell-escape wie-auch-immer-Deine-TeXDatei-heißt
MfG
Rainer
One of the joys of travel is visiting new towns and meeting new people---G.Khan (Robert Asprin, Another Fine Myth)

Hoffmann91
Forum-Newbie
Forum-Newbie
Beiträge: 7
Registriert: So 17. Aug 2014, 11:26

Beitrag von Hoffmann91 »

Johannes_B hat geschrieben:Kleines aber wichtiges Detail: Deine bash-config Dateien haben alle einen Punkt am Anfang und werden somit für den Finder unsichtbar (es sei denn du machst sie sichtbar). Ohne Punkt könnte die Datei auch Mausezahn heißen und wäre für die bash von gleicher Bedeutung.
Das stimmt, ich finde die Dateien nur, wenn ich sie manuell über das Terminal sichtbar mache. Soll das heißen, dass ich den Punkt entfernen sollte?

@rais:
type -p latex liefert mir
/usr/texbin/latex 
Durch das anschließende "pdflatex -shell-escape BA" kompiliert er mir u.a. die PDF Datei, in der jedoch anstelle der .eps-Datei nur ein Platzhalter ohne Struktur oder Nummer zu sehen ist.

Gruß
Timo

EDIT:

Das Komplilieren via Terminal "pdflatex -shell-escape BA" funktioniert. Er konnte die .eps-Datei nicht anzeigen, da ich im Namen einen Buchstabendreher hatte. Das Erstellen des PDF funktioniert aber weiterhin nicht via texstudio.
Zuletzt geändert von Hoffmann91 am Mo 18. Aug 2014, 20:31, insgesamt 1-mal geändert.

Antworten