LyXCaption for inserted PDF

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
CarlosFiyero
Posts: 1
Joined: Thu Jul 19, 2012 10:49 am

Caption for inserted PDF

Post by CarlosFiyero »

Hi,

I have a big problem. I want to insert some excel-tables in my master-thesis. I know CSV-import, excel2latex,... But then I have to manually make a new layout and I need the Excel-layout. Or a table don't fit on one page anymore, etc.

Because they have to look exactly like they look in excel and it's not needed to edit them, I choosed to save them as PDF in Excel. Then I insert a PDF as external source in Lyx. That looks exactly as I wanted it. But I can't make any caption to this inserted PDF.

And if I place the PDF into a floating-element, I can make a caption, but this appears in the middle of the inserted PDF-table (like a second layer above it).

Can anybody please help me and explain, how I insert a PDF-table in Lyx and give it a caption?

Thanks so much for any help.
Carlos

Recommended reading 2024:

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

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Caption for inserted PDF

Post by kaiserkarl13 »

Without seeing the PDF with caption "in the middle", I can't be certain, but it sounds as though your table overflows the margins at the bottom of the page (meaning PDFTeX tries to generate the caption but puts it at the "bottom" of the image, even though the image itself extends below that).

You might check to make sure your PDF is cropped to eliminate whitespace at the edges of the table. Also, I assume you're inserting it as a graphic (using the graphicx package's \includegraphics command), not as a page (using the pdfpages package's \includepdf command).

If you include an Infominimal working example, we're much more likely to get to the root of the problem.
Post Reply