Skip to content

Instantly share code, notes, and snippets.

@mkempe
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkempe/9743611 to your computer and use it in GitHub Desktop.
Save mkempe/9743611 to your computer and use it in GitHub Desktop.
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
Copy link
Author

mkempe commented Mar 24, 2014

@mkempe
Copy link
Author

mkempe commented Mar 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment