PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : simple Matrix



-Maxl-
09-12-2012, 06:33
Hey,

ich schäme mich fast so eine doofe Frage zu stellen, jedoch schaffe ich es nicht eine simple Matrix zu erstellen....

Ich habe nutze Ubuntu 12.04 und verwende den TEXmaker. Ich habe mehrmals versucht das PDF zu erstellen (auch trotz der Fehlermeldung), jedoch klappt es nur wenn ich den angeblich fehlerhaften Code rausnehme. Ich habe auch nach offenen Klammern oder nichtgeschlossenen Mathemodi gesucht, doch der Rest des Codes ist wirklich nicht nicht das Problem. Ich habe keinerlei Pakete importiert.

Der Code:
$
\begin{pmatrix}
a_{1,1} & a_{1,2} & \dots & a_{1,n} \\
a_{2,1} & a_{2,2} & \dots & a_{1,n} \\
\vdots & \vdots & \vdots & \vdots \\
a_{m,1} & a_{m,2} & \dots & a_{m,n} \\
\end{pmatrix}
$

Die Fehlermeldung:
! Misplaced alignment tab character &.
l.39 a_{1,1} &
a_{1,2} & \dots & a_{1,n} \\
I can't figure out why you would want to use a tab mark
here. If you just want an ampersand, the remedy is
simple: Just type `I\&' now. But if some right brace
up above has ended a previous alignment prematurely,
you're probably due for more error messages, and you
might try typing `S' now just to see what is salvageable.


Ich bin für jede Hilfe dankbar.

jbecker
09-12-2012, 10:55
hallo

So funktionierts:



\documentclass{scrartcl}
\usepackage{amsmath}
\begin{document}
$
\begin{pmatrix}
a_{1,1} & a_{1,2} & \dots & a_{1,n} \\
a_{2,1} & a_{2,2} & \dots & a_{1,n} \\
\vdots & \vdots & \vdots & \vdots \\
a_{m,1} & a_{m,2} & \dots & a_{m,n} \\
\end{pmatrix}
$
\end{document}

-Maxl-
09-12-2012, 14:24
Danke :-) Mit dem Paket hat es geklappt.