Graphics, Figures & TablesTables Over Multiple Pages: Strange Error Seen

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Tables Over Multiple Pages: Strange Error Seen

Post by sw3quant »

I have a table stored in a tex file called data.tex. The table was made by GNUMERIC. It is more than 1 page of A4 long. I can compile data.tex by itself to a PDF and see its all fine.

I have a document I would like to include the table in. When input the table, it inputs as much of the table as it can onto the current page and then stops. Any text after the document is not complied into the PDF.

The whole thing works fine if it is a small table.

what i would like to do is insert my whole table into the document.

I have been reading up on longtable, but to no avail.

A second question is: My table has headers. Is there a clever way to be able to see the headers on the subsequent pages?

Please find attached my MWE.

many thanks for your kind help.
Attachments
mwe.rar
(91.71 KiB) Downloaded 229 times

Recommended reading 2024:

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

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

Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Tables Over Multiple Pages: Strange Error Seen

Post by Montag »

  1. The first words (wwwwww ...) are too long.
  2. You must put simple tex code into files which are used via \input, meaning only sth. similar to

    Code: Select all

    Text.\\
    NExt line. $\sin$.
    and not sth. similar to

    Code: Select all

    \usepackage[english]{babel}
    \begin{document}
    Text.
    \end{document}
    
    Meaning: Get rid of the preamble in the file data.tex.
  3. Since you already use TXC, you should also use its "Project" feature. That makes working with .tex-documents really comfortable.
  4. For creating a table with the same header over more than one page, you'll find, IIRC, all the necessary commands in section 3 of the longtable manual.
  5. Maybe read up on creating "nice" tables? :) => http://www.google.com/search?&q=latex+t ... te:tug.org
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Re: Tables Over Multiple Pages: Strange Error Seen

Post by sw3quant »

hi thanks for your reply.

Im afraid that im not too clear on parts of it. Could you elaborate:

1. the "wwwwwwww" stuff in the MWE was just there to replicate text. In my version it is actual words. This doesnt effect the table compiling.

2. you say only simple text can be input. This is not correct, as a smaller version of the table will input fine with all the same headers etc.

3. Sorry but what is TXC and what is its project feature? How would I use it?

4. I have looked at the longtable PDF with a view to multi-page headers but to no avail.

thanks
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Tables Over Multiple Pages: Strange Error Seen

Post by Montag »

Sorry but what is TXC and what is its project feature? How would I use it?
http://tinyurl.com/3vz7we9
=>
http://www.texniccenter.org/about/screenshots

If you want to create a project in TXC with this navigator view, click on "Project" and then "Create ... [etc.]". Yep, that simple. =)
I have looked at the longtable PDF with a view to multi-page headers but to no avail.
See the files
IEEE_SUPP_MATmwe.tex
(436 Bytes) Downloaded 322 times
and
data.tex
(5.93 KiB) Downloaded 281 times
.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Re: Tables Over Multiple Pages: Strange Error Seen

Post by sw3quant »

thanks for your reply.

I was confused when you said "Since you already use TXC". I did know TXC was for the TeXnic IDE, however I used WinEdt and have never used TeXnic. I assumed it was some WinEdt Add-on.

I got your example to compile. Thank you very much for your effort and kind work! Much appreciated.

I am still less clear on why GNUMERIC tables will not insert over multiple pages (but will happily over one page). It maybe the case of me not understanding something and making a mistake, or it maybe a bug with some package interactions etc.

For now the solution I will use is to generate from excel to GNUMERIC tex and then manually remove all the GNUMERIC headings that they place in.

thank you!
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Tables Over Multiple Pages: Strange Error Seen

Post by Montag »

Oh ... I'm sorry, I somehow made a stupid error when I assumed you are using TeXnicCenter. WinEdt is fine, too, AFAIK. Seriously, I apologize, my answers seem now pretty rude, I shouldn't have replied that way.

Well, about inputting a whole document, it's simply too much work regarding the whole process. It's much simpler the way I did it, isn't it? :)

About GNUMERIC tables, I simply ignored that issue because I've never heard of that before. But after googling it and reading up on it in 2 minutes, I strongly suggest using OpenOffice's Calc and then add-on called "Calc2LaTeX". This add-on generates a much better latex-code, especially because the cells of one row are in fact in one line.

Best regards,
Montag
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Re: Tables Over Multiple Pages: Strange Error Seen

Post by sw3quant »

no offence taken!!

yes your methodology worked well. I will use this in future.

I did have a fair look about before choosing GNUMERIC. I seem to remember Calc2LaTeX does not work anymore/ there are serious issues with it now, and hence I opted for GNUMERIC.

regards and thank you
Post Reply