Last active
August 29, 2015 13:57
-
-
Save mkempe/9743611 to your computer and use it in GitHub Desktop.
Table with „tabulary“ and line breaks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%\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} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.andy-roberts.net/writing/latex/tables