2
\begin{table}[htbp]
\centering
\caption{Zusammensetzung der Proben}
    \begin{tabular}{cccc}
        \toprule
    \multirow{2}{*}{Probe} &  [TRA-Puffer 2.5$\frac{\text{mg}}{\text{ml}}$ Lipase] & [Gummi-Arabicum-Lösung] & [Speiseöl]\\
    & = \si{\ml} & = \si{\ml} & = \si{\ml} \\
\midrule
1 & 5 & 20 & 0.03 \\
  \bottomrule
\end{tabular}%
  \label{tab:Zusammensetzung}%
\end{table}%

this renders just fine

\begin{table}[htbp]
\centering
\caption{Zusammensetzung der Proben}
\begin{tabular}{ccc}
        \toprule
[TRA-Puffer 2.5$\frac{\text{mg}}{\text{ml}}$ Lipase] & [Gummi-Arabicum-Lösung] & [Speiseöl]\\
     = \si{\ml} & = \si{\ml} & = \si{\ml} \\
\midrule
 5 & 20 & 0.03 \\
  \bottomrule
\end{tabular}%
  \label{tab:Zusammensetzung}%
\end{table}%

with this code I'm stuck at rendering the .tex that contains this table. Any ideas why?

1 Answer 1

2

Enclose the expression inside square brackets using braces to prevent it from being taken as an optional argument for a line changing command:

\documentclass{article}
\usepackage{booktabs,siunitx}

\begin{document}

\begin{table}[htbp]
\centering
\caption{Zusammensetzung der Proben}
\begin{tabular}{ccc}
        \toprule
{[TRA-Puffer 2.5$\frac{\text{mg}}{\text{ml}}$ Lipase]} & [Gummi-Arabicum-Lösung] & [Speiseöl]\\
     = \si{\ml} & = \si{\ml} & = \si{\ml} \\
\midrule
 5 & 20 & 0.03 \\
  \bottomrule
\end{tabular}%
  \label{tab:Zusammensetzung}%
\end{table}%
\end{document}

enter image description here

1
  • Thank you so much! From your answer I derive LaTeX expects the first [] to be filled with parameters? edit: saw your edit right now. Thanks! I can mark your answer as select after 5 minutes from now.
    – idkfa
    Commented Jan 21, 2014 at 17:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .