mein Latex

Neue Frage »

zozo Auf diesen Beitrag antworten »
mein Latex
Hi,
ich hab seit eine Woche ein Bild und ein Programcode im Matlab in Latex einzubinden, aber leide schafe ich nicht ?
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
documentclass[a4paper,
12pt,
twoside,
openright,
parskip,
draft,
chapterprefix,
bibtotoc,
toc=listofnumbered,
 bibliography=totoc
]{scrreprt}
\usepackage[latin1]{inputenc}   
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{float}
\usepackage{setspace}
\usepackage{mathcomp}
\usepackage{ae}  
\usepackage{verbatim}
\usepackage{marvosym}
\usepackage{ifthen}
\usepackage[clearempty]{titlesec}
\usepackage{url}
\renewcommand{\baselinestretch}{1.15}
\parindent1em
\parskip0.3ex  
\usepackage{endnotes}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{amsthm}
\usepackage{layout}
\usepackage[mathscr]{eucal}
\usepackage{enumerate}
\usepackage{showkeys}
\usepackage{epsfig}
\newtheorem{theorem}{Theorem}
\newcommand{\RR}{\mathbb{R}}
\newcommand{\CC}{\mathbb{C}}
\newcommand{\BB}{\mathbb{B}}
\newcommand{\NN}{\mathbb{N}}
\newcommand{\HH}{\mathbb{H}}
\newcommand{\TT}{\mathbb{T}}
\newcommand{\ZZ}{\mathbb{Z}}
\newcommand{\re}{\operatorname{Re}}
\newcommand{\im}{\operatorname{Im}}
\newcommand{\EndProof}{{\begin{flushright}\vspace{-2mm}$\Box$\end{flushright}}}
\newtheorem{theo}{Theorem}[subsection]
\newtheorem{satz}[theo]{Satz}
\newtheorem{lemma} [theo]{Lemma}
\newtheorem{cor}[theo]{Korollar}
\newtheorem{defn}[theo]{Definition}
\newtheorem{bem}[theo]{Bemerkung}
\newtheorem{bsp}[theo]{Beispiel}
\newtheorem{aufgabe}[theo]{Aufgabe}
\newtheorem{kor}[theo]{Korollar}
\newenvironment{bew}{\begin{proof}[Beweis]}{\end{proof}}
\newcommand{\be}{\begin{equation}}
\newcommand{\ee}{\end{equation}}
\newcommand{\Ts}{\mathcal{T}}
\newcommand{\Ss}{\mathcal{S}}
\renewcommand\thechapter{{chapter}}
\renewcommand{\thesection}{\arabic{section}}
%\setcounter{secnumdepth}{3}
\renewcommand{\theequation}{\arabic{section}.\arabic{equation}}
%\renewcommand{\refname}{}
\newcounter{name}[section]
\numberwithin{equation}{section}
\let\chapter\section
\let\section\subsection
\let\subsection\subsubsection
\let\subsubsection\paragraph
\let\paragraph\subparagraph
\numberwithin{figure}{section}
\usepackage{scrpage2}
\renewcommand{\figurename}{Schema}
%\let\subparagraph\undefine d< br>
\pagestyle{scrheadings}
\clearscrheadings
\setheadwidth[1pt]{textwithmarginpar}%volle Breitseite ;-)
\setheadsepline{0.4pt}
\chead{\leftmark }
\automark{section}
 %\ihead[Titel]{links}
\clearscrplain
\ofoot[\pagemark]{\pagemark}
\usepackage{graphicx} % Bilder
\usepackage{color} % Farben
\graphicspath{{images/}}
\DeclareGraphicsExtensions{.pdf,.png,.jpg} 
\usepackage{float}
\floatstyle{ruled}
\newfloat{program}{h}{lop}[chapter]
\floatname{program}{Kode} 
\usepackage{listings}
\lstloadlanguages{Matlab,C} 
\begin{document}
lablablab
\end

hat jemand mir hilfen traurig

Bitte Code-Tags verwenden
Calvin Auf diesen Beitrag antworten »
RE: mein Latex
Was soll man denn damit anfangen? "Geht nicht" ist keine Fehlerbeschreibung. Wie genau hast du es versucht? Welche Fehlermeldung kommt?

Und weißt du, was die ganzen Pakete und Befehle in deiner Präamebel machen? Ich vermute mal, dass du 90% davon gar nicht brauchst. Zumal auch ein paar veraltete Pakete dabei sind (siehe http://www.mrunix.de/forums/showthread.php?t=52211)

Mache das nächste mal bitte ein vollständig kompilierfähiges Minimalbeispiel, das deinen Fehler zeigt (siehe auch [Tip] "Fehlersuche im LaTeX-Quellcode" oder "Wie erstelle ich ein Minimalbeispiel?")

Hier mal ein Beispiel, das funktioniert (mit dem angehängten Bild "screenshot.png", das im Unterordner images abgelegt werden muss.

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
\documentclass[ngerman]{scrreprt}
\usepackage[latin1]{inputenc}   
\usepackage{babel}
\usepackage[T1]{fontenc}
\usepackage{graphicx} % Bilder
\graphicspath{{images/}}
\usepackage{listings}
\lstloadlanguages{Matlab,C} 
\begin{document}
\includegraphics{screenshot}
\begin{lstlisting}
f(x) = x+3
\end{lstlisting}
\end{document}
Neue Frage »
Antworten »



Verwandte Themen

Die Beliebtesten »
Die Größten »
Die Neuesten »