Sunday, January 20, 2008

WYSWYG Tables in LaTeX
To enter a Table in Latex,
create it in MSWord,
convert Table to Text using "&" as separator,
copy paste it into WinEdt or your favority LaTeX editor,
add "\\" at the end of each line,
add the heading:
\begin{table}[h]\centering
\small
\caption{whatever_caption}
\label{whatever_label}%
\begin{tabular}
[c]{|l|c|c|c|c|}% adjust to accomodate the number of columns in your table
\hline%
%your table goes here
add the ending:
\hline%
\end{tabular}%
\normalsize
\end{table}%
If you want landscape, include this in the preface
\usepackage{lscape}
and surround your table with this:
\begin{landscape}
% your table goes here
\end{landscape}
Save your MSWord file. Your table will be saved as text with "&" separators. When you want to edit the Table, simply convert it back to table format (using "&" as separator), edit the table nicely in MSWord, then repeat the process.

No comments:

Post a Comment