General ⇒ table and itemize
table and itemize
I have an alignment problem when using a too long sentence (as itemize) in a table. I have attached my code and would be very thankful if anyone could help me. The code shows my table two times ..the second table shows the problem ....
Cheers!!
\documentclass[final,5p,times,twocolumn,authoryear]{elsarticle}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{color}
\usepackage{longtable}
\usepackage{hyperref}
\usepackage{stfloats}
\newenvironment{zenumerate}{\newcounter{zitem}\setcounter{zitem}{0}}
{}
\newcommand\zitem{\refstepcounter{zitem}\thezitem. }
\usepackage{natbib}
\journal{Coastal and Marine Management}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\onecolumn
\begin{longtable}{p{0.4\textwidth}p{0.6\textwidth}}
\hline \hline\\
\begin{enumerate}[A.]
\item The sun is
\begin{enumerate}[1.]
\item The ocean is
\item Snow is?
\end{enumerate}
\item Coffee is
\end{enumerate} &
\begin{enumerate}[ ]
\item yellow
\begin{enumerate}[ ]
\item blue
\item white
\end{enumerate}
\item yammie
\end{enumerate}
\end{longtable}
%%%%%%%%%%%%%%%%%%%%%%%%
\begin{longtable}{p{0.4\textwidth}p{0.6\textwidth}}
\hline \hline\\
\begin{enumerate}[A.]
\item The sun is?
\begin{enumerate}[1.]
\item The ocean is
\item Snow is?
\end{enumerate}
\item Coffee is
\end{enumerate} &
\begin{enumerate}[ ]
\item yellow
\begin{enumerate}[ ]
\item blue
\item white! And when too many people walk on it, or cars drive over and over its really baehhhhhhh
\end{enumerate}
\item yammie
\end{enumerate}
\end{longtable}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: table and itemize
Re: table and itemize
So it says in the table
left side: right side:
Snow is? white
Coffee is? yammie
now lets say there is a long answer:
Snow is ? white! And when too many people walk on it, or cars drive over and its
Coffee is ? really baehhhhhhh
yammie
I tried with "&" and all sort off other stuff..but I'm running out of ideas....thanks!
Re: table and itemize
Hope this makes sense...
Thanks in advance!
Re: table and itemize
http://en.wikibooks.org/wiki/LaTeX/Tabl ... _in_tables
Re: table and itemize
I love Latex, but this is so frustrating....
Thanks so much for your help though
