1

I'm trying to create a table which looks like this:

enter image description here

I can't seem to figure out how to wrap the text but also have the table itself the width=\textwidth. Any ideas how to achieve this?

  • Take a look at the tabularx package. For example as in \begin{tabularx}{\textwidth}{lX}. For the alternating row colors, you can use \rowcolors from the xcolor package (when loaded with the table option.) – leandriis Jan 18 at 21:57
1

enter image description here

With reference to the remarks @leandriis this may help the OP to get a head start

The complete MWE

\documentclass{article}
\usepackage{caption,tabularx,booktabs}
\usepackage[table]{xcolor}

\begin{document}
 \rowcolors{2}{gray!25}{white}

\begin{tabularx}{\textwidth}{lX}
  \rowcolor{green!20}
    \multicolumn{2}{c}{%
    Funktionale Anforderungen
                                              }\\
    Bezeichnung &Anforderung                    \\
    L00021-23-1 & Zuordnung zu Jobs              \\
                & Die Werkzeuge mussen fahig sein, Anwendungsfalle einem Job
                  zuzuordnen.    

    \end{tabularx}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.