PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem mit graphicx und Literatur



DiePsychologin
29-12-2008, 22:22
Mein Problem ist folgendes:

ich habe nun nach einiger Textarbeit endlich das "graphicx"-Paket mit eingebunden und auch schon die erste Grafik (im jpg-Format) in mein Dokument eingebaut.

Sobald ich das tue, findet LaTex jedoch meine Zitat-Zuordnung zu der BibTex-Datei nicht mehr.
Zudem wird weder ein PDF- noch ein DVI-Dokument erstellt.
Weiterhin erhalte ich die Windows-Fehlermeldung: latex.exe funktioniert nicht mehr.
Sprich: totales Chaos!

Sobald ich das \includegraphics innerhalb des figure-Befehls auskommentiere, ist alles wie immer - da scheint also das Problem zu liegen. Aber wo genau??? :confused:

Ich habe folgende Pakete eingebaut:

\usepackage[english]{babel}
\usepackage[english]{fancyref}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[ansinew]{inputenc} %für Umlaute
\usepackage{textcomp} %Sonderzeichen
\usepackage{babelbib}
\usepackage{apacite}
\usepackage[acronym,toc]{glossaries}

Zudem nutze ich als Dokumentenklasse "scrreprt".
Und ich arbeite mit dem TeXnicCenter.

Ich hoffe, die wichtigsten Informationen sind vorhanden. Ich bin sehr dankbar für jede Hilfe!!!
:)

cookie170
29-12-2008, 23:53
Hallo,

kannst Du ein kleines Beispiel erstellen, lauffähig, bei dem das Problem auftritt? Natürlich haben wir alle hier Dein jpg nicht, aber irgendwo auf meiner Festplatte gibt's ein paar und das geht allen anderen genau so. Da muss man zum Testen nur den Namen ändern.

Gruß,
Alexander

DiePsychologin
30-12-2008, 08:49
So... ich hoffe, das funktioniert so:


\documentclass[a4paper,12pt,english,openbib,openright,abstracton, tablecaptionabove]{scrreprt}
\usepackage{setspace}
\onehalfspacing
\pagestyle{headings}
\pagenumbering{arabic}
\usepackage[english]{babel}
\usepackage[english]{fancyref}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[ansinew]{inputenc}
\usepackage{textcomp}
\usepackage{babelbib}
\usepackage{apacite}
\usepackage[acronym,toc]{glossaries}

\begin {document}

\section{Introduction}
The aim of the present study was to examine the role of cross-modal attention while switching bivalent stimulus modalities. One important aspect of this study is the new approach to validate theories of cross-modal attention as the visual dominance (e.g., \citeNP{Posneretal1976,Sinnettetal2007} or the modality appropriatenes hypothesis (e.g., \citeNP{Ward1994,Wardetal2000}. So far, cross-modal attention studies has been mainly conducted with univalent, that is singly presented stimulus modalities. In the study at hand, the design of a task-switching paradigm was used to examine bivalently presented stimulus modalities. Thus, incongruence effects as well as effects of attention capturing and their possible interactions could be investigated.
\subsubsection{Stimuli and Tasks}
The visual stimulus was a white diamond (1.5 cm x 1.5 cm) on a black background, either on the left or the right side of the monitor, with 14.5~cm distance from the center of the monitor. The auditory stimulus was a monaurally presented tone of 400~Hz.
\footnote{For 13 participants the tone was presented on the left or right earphone, for 11 participants it was presented on the left or right loudspeaker. As there were no performance differences between these participants, they were analysed together without this extra factor.}
\par Explicit cues, presented before stimulus presentation, indicated the task-relevant stimulus modality. The cue that indicated the auditory stimulus as task-relevant was a binaural tone at 600~Hz. The cue for the visual stimulus was an asterisk (height: 90~mm) presented at screen center. The task was to decide if the relevant stimulus appeared on the left or on the right side, ignoring the irrelevant stimulus (see Figure \ref{fig:TrialCombinations}). For a relevant stimulus on the left side, participants had to press the left Alt-key, for the right side, the right Alt-key, respectively. Participants were instructed to react as fast and as correctly as possible.

\begin{figure}[htbp]
\centering
\includegraphics{TrialStructure.jpg}
\caption{Combinations of Cue-Stimulus-Response mapping}
\label{fig:TrialCombinations}
\end{figure}

\tableofcontents


\bibliographystyle{apacite} %APA
\bibliography{MinBib} %Hier wird das bib-File eingebunden

\begin{appendix}

\listoftables
\listoffigures
\end{appendix}

\end {document}


Und hier die Literaturdatei:


@ARTICLE{Posneretal1976,
AUTHOR="Posner, Michael I. and Nissen, Mary J. and Klein, Raymond M.",
TITLE="Visual dominance: An information-processing account of its origins and significance",
JOURNAL="Psychological Review",
YEAR="1976",
NUMBER="83",
PAGES="157-171",
}
%[93]

@ARTICLE{Sinnettetal2007,
AUTHOR="Sinnett, Scott and Spence, Charles and Soto-Faraco, Salvador",
TITLE="Visual dominance and attention: The Colavita effect revisited",
JOURNAL="Perception \& Psychophysics",
YEAR="2007",
NUMBER="69",
PAGES="673-686",
}
%[335]

@ARTICLE{Ward1994,
AUTHOR="Ward, Lawrence M.",
TITLE="Supramodal and modality-specific mechanisms for stimulus-driven shifts of auditory and visual attention",
JOURNAL="Canadian Journal of Experimental Psychology",
YEAR="1994",
NUMBER="48",
PAGES="242-259",
}
%[348]

@ARTICLE{Wardetal2000,
AUTHOR="Ward, Lawrence M. and McDonald, John J. and Lin, Daniel",
TITLE="On asymmetries in cross-modal spatial attention orienting",
JOURNAL="Perception \& Psychophysics",
YEAR="2000",
NUMBER="62",
PAGES="1258-1264",
}
%[273]

Vielen lieben Dank schonmal!

mechanicus
30-12-2008, 10:28
Hallo,

folgender Code funktioniert bei mir. Ich habe noch ein Paar Kommentare angefügt. Ich vermute, es liegt also wenn dann an deiner jpg.

\begin{filecontents}{buch.bib}
@ARTICLE{Posneretal1976,
AUTHOR="Posner, Michael I. and Nissen, Mary J. and Klein, Raymond M.",
TITLE="Visual dominance: An information-processing account of its origins and significance",
JOURNAL="Psychological Review",
YEAR="1976",
NUMBER="83",
PAGES="157-171",
}
%[93]

@ARTICLE{Sinnettetal2007,
AUTHOR="Sinnett, Scott and Spence, Charles and Soto-Faraco, Salvador",
TITLE="Visual dominance and attention: The Colavita effect revisited",
JOURNAL="Perception \& Psychophysics",
YEAR="2007",
NUMBER="69",
PAGES="673-686",
}
%[335]

@ARTICLE{Ward1994,
AUTHOR="Ward, Lawrence M.",
TITLE="Supramodal and modality-specific mechanisms for stimulus-driven shifts of auditory and visual attention",
JOURNAL="Canadian Journal of Experimental Psychology",
YEAR="1994",
NUMBER="48",
PAGES="242-259",
}
%[348]

@ARTICLE{Wardetal2000,
AUTHOR="Ward, Lawrence M. and McDonald, John J. and Lin, Daniel",
TITLE="On asymmetries in cross-modal spatial attention orienting",
JOURNAL="Perception \& Psychophysics",
YEAR="2000",
NUMBER="62",
PAGES="1258-1264",
}
%[273]
\end{filecontents}
%%%%
%KOMA version 2.9
%\documentclass[a4paper,12pt,english,openbib,openright,abstracton, tablecaptionabove]{scrreprt}
%version 3.0
\documentclass[a4paper,12pt,english,openbib,openright,abstracton, captions=tableheading]{scrreprt}
\usepackage{setspace}
\onehalfspacing
\pagestyle{headings}
%\pagenumbering{arabic} % ist Standard
\usepackage{babel} %english ist global definiert
\usepackage{fancyref} %english ist global definiert
\usepackage[T1]{fontenc}
\usepackage[demo]{graphicx}
\usepackage[ansinew]{inputenc}
\usepackage{textcomp}
\usepackage{babelbib}
\usepackage{apacite}
\usepackage[acronym,toc]{glossaries}

\begin {document}
\chapter{foo}
\section{Introduction}
The aim of the present study was to examine the role of cross-modal attention while switching bivalent stimulus modalities. One important aspect of this study is the new approach to validate theories of cross-modal attention as the visual dominance (e.g., \citeNP{Posneretal1976,Sinnettetal2007} or the modality appropriatenes hypothesis (e.g., \citeNP{Ward1994,Wardetal2000}. So far, cross-modal attention studies has been mainly conducted with univalent, that is singly presented stimulus modalities. In the study at hand, the design of a task-switching paradigm was used to examine bivalently presented stimulus modalities. Thus, incongruence effects as well as effects of attention capturing and their possible interactions could be investigated.
\subsubsection{Stimuli and Tasks}
The visual stimulus was a white diamond (1.5 cm x 1.5 cm) on a black background, either on the left or the right side of the monitor, with 14.5~cm distance from the center of the monitor. The auditory stimulus was a monaurally presented tone of 400~Hz.
\footnote{For 13 participants the tone was presented on the left or right earphone, for 11 participants it was presented on the left or right loudspeaker. As there were no performance differences between these participants, they were analysed together without this extra factor.}

Explicit cues, presented before stimulus presentation, indicated the task-relevant stimulus modality. The cue that indicated the auditory stimulus as task-relevant was a binaural tone at 600~Hz. The cue for the visual stimulus was an asterisk (height: 90~mm) presented at screen center. The task was to decide if the relevant stimulus appeared on the left or on the right side, ignoring the irrelevant stimulus (see Figure \ref{fig:TrialCombinations}). For a relevant stimulus on the left side, participants had to press the left Alt-key, for the right side, the right Alt-key, respectively. Participants were instructed to react as fast and as correctly as possible.

\begin{figure}[htbp]
\centering
\includegraphics{TrialStructure.jpg}
\caption{Combinations of Cue-Stimulus-Response mapping}
\label{fig:TrialCombinations}
\end{figure}

\tableofcontents


\bibliographystyle{apacite} %APA
\bibliography{buch} %Hier wird das bib-File eingebunden

\begin{appendix}

\listoftables
\listoffigures
\end{appendix}

\end {document}
Eine Frage habe ich noch an dich: Nutzt du auch die Gliederungsebene Chapter?

Gruß
Marco

EDIT: Du nutzt ja noch nicht KOMA 3 und ich weiß nicht, auf welchem Stand deine Pakete sind. Mache doch sicherheitshalber erstmal ein Update.

rais
30-12-2008, 10:41
Moin moin,


ich habe nun nach einiger Textarbeit endlich das "graphicx"-Paket mit eingebunden und auch schon die erste Grafik (im jpg-Format) in mein Dokument eingebaut.

Sobald ich das tue, findet LaTex jedoch meine Zitat-Zuordnung zu der BibTex-Datei nicht mehr.
Zudem wird weder ein PDF- noch ein DVI-Dokument erstellt.

wenn Du Bilder im jpg-Format einbinden willst, kompiliere direkt mit pdflatex.
Wenn Du auf den Weg über DVI (also latex) angewiesen bist, dann konvertiere Deine Bilder nach (e)ps und lass die Endung beim \includegraphics weg.
Vgl. l2picfaq (siehe Bilder-HowTo ziemlich weit oben im Board)

Guten Rutsch

DiePsychologin
02-01-2009, 14:04
Vielen lieben Dank erstmal für Eure Hilfe!

Und entschuldigt bitte, dass meine Antwort so lange auf sich warten ließ. Ich habe es erst heute wieder geschafft, ordentlich zu arbeiten. :o

Also:
@Marco: ja, Dein Minimalbeispiel hat bei mir auch funktioniert - bis auf dass das jpg komplett schwarz angezeigt wird.
Der Knackpunkt scheint die Option [demo] für das Paket "graphicx" gewesen zu sein. Was genau bedeutet das?

Was kann nun der Grund dafür sein, dass das jpg nicht korrekt dargestellt wird?

Ansonsten nutze ich auch die Gliederungsebene "Chapter" und auch "Part".

@rais: Ich kompliere direkt nach pdf, nicht über dvi - das kann also nicht das Problem gewesen sein.

mechanicus
02-01-2009, 14:09
@Marco: ja, Dein Minimalbeispiel hat bei mir auch funktioniert - bis auf dass das jpg komplett schwarz angezeigt wird.
Der Knackpunkt scheint die Option [demo] für das Paket "graphicx" gewesen zu sein. Was genau bedeutet das?
Hallo,

demo habe ich noch nachträglich reingeschrieben, dass es erstmal ohne Fehler durchläuft. Mit dieser Option werden keine Bilder eingefügt, sondern an den jeweiligen Stellen, schwarze Rechtecke. Wenn du die Option rausnimmst, und ein jpg hast, dann läuft alles.

Zu deinem jpeg. Vielleicht gabe es ein Abspeicherungsproblem. Öffne es mal mit z.B. mit paint und speichere es erneut als jpeg ab.

Gruß
Marco

DiePsychologin
02-01-2009, 14:33
Ja, scheint ein Problem mit dem jpg zu sein.
Ich hab's jetzt unter dem png-Format abgespeichert - und es funktioniert!!! :)

(MikTex ist jetzt auch wieder auf dem aktuellsten Stand - updates waren tatsächlich nötig - ich hatte übersehen, dass das nicht automatisch passiert.)

Nochmals: vielen, vielen lieben Dank!! Du warst mir eine große Hilfe!!!