e271
17-08-2010, 17:55
Hi,
folgendes Minimalbeispiel liefert mir mehrere Fehler:
\documentclass[11pt, a4paper]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{german}
\usepackage{amsmath}
\usepackage{amssymb}
\newenvironment{formel}[1][8cm]%
{\begin{center}
\begin{minipage}{#1}
\begin{align*}}%
{\end{align*}
\end{minipage}
\end{center}}
\begin{document}
\begin{formel}
f(x) &= x^2 \\ <= Zeile 18
g(x) &= 2x
\end{formel}
\end{document}
! LaTeX Error: \begin{align*} on input line 18 ended by \end{formel}.
...
! LaTeX Error: \begin{minipage} on input line 18 ended by \end{document}.
...
! You can't use `\end' in internal vertical mode.
Woran liegt das?
Viele Grüße
Wolfgang
folgendes Minimalbeispiel liefert mir mehrere Fehler:
\documentclass[11pt, a4paper]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{german}
\usepackage{amsmath}
\usepackage{amssymb}
\newenvironment{formel}[1][8cm]%
{\begin{center}
\begin{minipage}{#1}
\begin{align*}}%
{\end{align*}
\end{minipage}
\end{center}}
\begin{document}
\begin{formel}
f(x) &= x^2 \\ <= Zeile 18
g(x) &= 2x
\end{formel}
\end{document}
! LaTeX Error: \begin{align*} on input line 18 ended by \end{formel}.
...
! LaTeX Error: \begin{minipage} on input line 18 ended by \end{document}.
...
! You can't use `\end' in internal vertical mode.
Woran liegt das?
Viele Grüße
Wolfgang