Skip to content

Instantly share code, notes, and snippets.

@mkempe mkempe/table.tex
Last active Aug 29, 2015

Embed
What would you like to do?
Table with „tabulary“ and line breaks
%\usepackage{longtable}
%\usepackage{tabulary}
\newcommand{\cellOneOne}{ \textbf{Foobar} }
\newcommand{\cellOneTwo}{ \textbf{Foobar} }
\newcommand{\cellOneThree}{ \textbf{Foobar} }
% ----- ----- ----- ----- ----- ----- ----- ----- -----
\newcommand{\cellTwoOne}{
Lorem ipsum dolor sit amet, consectetuer adipiscing elit,\\
sed diam nonummy nibh euismod tincidun
}
\newcommand{\cellTwoTwo}{
Lorem ipsum dolor sit amet, consectetuer adipiscing elit,\\
sed diam nonummy nibh euismod tincidun
}
\newcommand{\cellTwoThree}{
\vspace{-1.25cm}
\begin{itemize}[leftmargin=*]
\item Key
\item Key
\item Key
\end{itemize}
}
\begin{longtable}{ | p{0.3\textwidth} | p{0.3\textwidth} | p{0.3\textwidth} | }
\hline
\cellOneOne & \cellOneTwo & \cellOneThree \\
\hline
\cellTwoOne & \cellTwoTwo & \cellTwoThree \\
\hline
\caption{Foobar}
\end{longtable}
\begin{tabulary}{\textwidth}{ | p{0.3\textwidth} | p{0.3\textwidth} | p{0.3\textwidth} | }
\hline
\cellOneOne & \cellOneTwo & \cellOneThree \\
\hline
\cellTwoOne & \cellTwoTwo & \cellTwoThree \\
\hline
\end{tabulary}
@mkempe

This comment has been minimized.

Copy link
Owner Author

mkempe commented Mar 24, 2014

@mkempe

This comment has been minimized.

Copy link
Owner Author

mkempe commented Mar 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.