von Bruce » Di 15. Mai 2012, 18:21
Hallo,
kann mir mal jemand erklären, warum angeblich ein { und ein } in folgendem Bsp. fehlen?
\documentclass{article}
\usepackage{amsmath}
\newcommand{\sevcases}[1]{
\ensuremath{
\left[
\begin{tabular}{c}
\text{#1}
\end{tabular}
\right]
}
}
\begin{document}
I slowly turned \sevcases{my head\\my camera}.
\end{document}
Fehlermeldung mit TeXmaker:
! Missing } inserted.
<inserted text>
}
l.18 I slowly turned \sevcases{my head\\my camera}
I've put in what seems to be necessary to fix
the current column of the current alignment.
Try to go on, since this might almost work.
! Missing { inserted.
<inserted text>
{
l.18 I slowly turned \sevcases{my head\\my camera}
I've put in what seems to be necessary to fix
the current column of the current alignment.
Try to go on, since this might almost work.
Dabei wird die Datei auch kompiliert und macht genau das, was ich auch möchte...
Danke,
Bruce
Hallo,
kann mir mal jemand erklären, warum angeblich ein { und ein } in folgendem Bsp. fehlen?
[code]
\documentclass{article}
\usepackage{amsmath}
\newcommand{\sevcases}[1]{
\ensuremath{
\left[
\begin{tabular}{c}
\text{#1}
\end{tabular}
\right]
}
}
\begin{document}
I slowly turned \sevcases{my head\\my camera}.
\end{document}
[/code]
Fehlermeldung mit TeXmaker:
[code]! Missing } inserted.
<inserted text>
}
l.18 I slowly turned \sevcases{my head\\my camera}
I've put in what seems to be necessary to fix
the current column of the current alignment.
Try to go on, since this might almost work.
! Missing { inserted.
<inserted text>
{
l.18 I slowly turned \sevcases{my head\\my camera}
I've put in what seems to be necessary to fix
the current column of the current alignment.
Try to go on, since this might almost work.[/code]
Dabei wird die Datei auch kompiliert und macht genau das, was ich auch möchte...
Danke,
Bruce