Page LayoutLayout to fit tables/images etc

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
bluefoxicy
Posts: 5
Joined: Thu Jan 28, 2010 2:51 pm

Layout to fit tables/images etc

Post by bluefoxicy »

Is there a way to tell LaTeX to fit the page margins to a table? Mainly for producing PDF images to convert to PNG; certain publishing platforms (Kindle) ignore tables.

The only way to turn a LaTeX file into a proper book for this platform would be to have a newcommand that you either define to \input{figures/myfigure} or \includegraphics{figures/myfigure.png}. To produce a PDF, use the first definition; otherwise, use the second and run a script that turns all the figures into pdf, then uses ImageMagick to 'convert myfigure.pdf myfigure.png', then latex2html it.

Of course, in the second case I'd need some other monkeying. The short version is I can make it work IF I can make a single file that creates a table (\begin{tabular}...) and shrinks the page dimensions to the dimensions of that table.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply