Table and graph

hjay's picture

Hi, all:

  I inserted a table in the file and realize that the table contains many columns, without wrapping because of output from estimation and without using landscape, the only way to solve this is to reduce size of font?


I have used script, but there are still abundant space within each cell. I check the HELP and notice {tabularx*} ?

What does it mean by X in {tabular}{|x|x...|}? Do I change it for colunm number?


Another problem is with EPS graph. I notice that after I import EPS graph, some of the graph is lost,specifically the first portion of long caption is lost . It seems that the graph is cropped in the center. What's wrong with this?


Thanks in advance

The tabularx environment has

The tabularx environment has two parameters, the first is the overall width of the table being created and the second contains a list of column specifications.  These are the same column specifications used by tabular with the addition of X to specify a column that will be width adjusted depending on the space taken up by the remaining columns.  Here is a sample table that is four inches wide.  Place the following inside an encapsulated TeX field and compile in a document with the tabularx package added.

\multicolumn{2}{|c|}{Multicolumn entry!}&
\arraybackslash The width of this column depends on the
width of the table.&
\arraybackslash Column four will act in the same way as
column two, with the same width.\\

Most graphics go through the third party graphics filters included with SW, so the particular graphics you are working with might be causing problems for the graphics filters.  See if you can recreate the same graphics in a different form, for example if you can specify using an earlier EPS standard.

hjay's picture

Thanks for explanation. I

Thanks for explanation.

I still have questions about using {tabularx}. I have inserted the table and input everything. Then where do I put this LaTex Field?


What does it mean by

Sorry I am a beginner lever user and not familiar with LaTex. I thought it would be convenient to use SWP
but end up with problems for even adjusting the width of the table.....

If you created your table in

If you created your table in SW, then you would need to directly edit the .tex file, find the table, change the \begin{tabular} and \end{tabular} lines to appropriate \begin{tabularx} and \end{tabularx} and then place the entire tabularx environment inside an encapsulated TeX field, replacing the existing table in SW.

If this doesn't help, then create a small document that contains your table and add it as an attachment to the forum (use the File attachments link below the text entry area when adding your comment).

hjay's picture

I tried to view .tex in

I tried to view .tex in source, but I did not find what part of SWP would allow me to view source together with truth.

I happened to install TeXworks and it can be viewed over there.

I change the \begin{tabular} and \end{tabular} lines to appropriate \begin{tabularx} and \end{tabularx}.

But the next step is failing.....

SW doesn't let you view the

SW doesn't let you view the source, you have to use some other editor like NotePad to view the LaTeX code.

I'm not sure that the table in your example benefits from tabularx, but in any case, the attached document is your table and then a \vfill to give some vertical separation when typesetting the document, then the tabularx environment.  I created the tabularx environment by copying the existing tabular, changing tabular to tabularx, adding the width parameter, and changing the formatting parameter to use X instead of c for each column.

pviton's picture

tabularx is just a new

tabularx is just a new environment (and the "x" is not, as you might think, some sort of argument to "tabular"), which in this case provides some features not in the tabular environment.  You might want to check out for some explanation of what's going on.