LyXTitle and footnotes in tables

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Matias
Posts: 20
Joined: Sun Jan 17, 2010 11:40 pm

Title and footnotes in tables

Post by Matias »

Thank you very much for your efforts.

I was wondering: In LyX you have the option to rotate a float (table) sideways by just using the interface. I did this but was not able to figure out how to scale the table to my needs (I was able to scale the table itself but not the title and footnotes). Is this approach possible?

I'm currently working with your method, and I'm trying to figure out how to scale it so it doesn't exceed the page margins (as it does now). I tried this from the graphicx package with no luck (gives me an error):

Code: Select all

resizebox{\textwidth}{\textheight}{%
All of the other code
}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Title and footnotes in tables

Post by meho_r »

Yes, you can use LyX's table option for rotating the table (actually, it is the same as in the example I provided, it uses \begin{sidewaystable}...\end{sidewaystable}, so there shouldn't be any problems. And it is much more convenient to use than using raw code. However, in the Preamble, remove option clockwise from rotating package.

For table size issue, can you provide an example? If you cannot provide original data, just replace them with some dummy text with same size.
Matias
Posts: 20
Joined: Sun Jan 17, 2010 11:40 pm

Re: Title and footnotes in tables

Post by Matias »

Table is in attachment. As you can see it exceeds my left and right page margin of 4 cm. I want it to be the size of textwidth and textheight.
Attachments
table.rar
(2.27 KiB) Downloaded 206 times
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Re: Title and footnotes in tables

Post by meho_r »

Well, that's a big table :-) Column widths can be set as percents of textwidth. As for row heights, I don't know what to say, maybe to try using a smaller font. It is difficult to manipulate with row heights. Generally, if you have a table with too many rows, you use longtable.
Matias
Posts: 20
Joined: Sun Jan 17, 2010 11:40 pm

Title and footnotes in tables

Post by Matias »

I have cut down on the size of the table material now, so it should be easier. Now I'm working on moving the position of the float. I notice something strange, and it is that you can't use floatrow package when using a sideways float table in LyX. You get an error saying you can't use float package with floatrow. It does however seem to work when using the earlier example you provided. I find this strange, since you said LyX also just uses \begin{sidewaystable}...\end{sidewaystable}. I liked having it all inside a LyX float, but seems I have do it the other way.
Post Reply