Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15956
| From | "M.Roellig" <markus.roellig@googlemail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | How to export a large Grid/Table on a single PDF page? |
| Date | 2011-02-03 10:26 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <iidvt7$bgb$1@smc.vnet.net> (permalink) |
Dear group,
from time to time I would like to export a Grid or Table as PDF such
that the whole
thing is scaled to fit a single page (portrait or landscape). What is
the preferred way to
do this? The Options part in the "PDF" help page is somewhat sparse.
Right now I export the table to Excel and create the PDF there. If not
PDF, maybe another
Export format could be faciliated??
I attach an example for you to play around:
transs = {1, 3, 3, 49, 49, 1, 3, 15, 30};
species = {"A", "B", "C", "D", "E", "F", "G", "H", "I"};
parcolnum = 0;
poss = Drop[Accumulate[Prepend[transs, 1]] + parcolnum - 1, -1];
translist =
PadRight[#, Max[transs], ""] & /@
Table[Table[
species[[j]] <> " " <> ToString[i] <> "-" <> ToString[i - 1], {i,
1, transs[[j]]}], {j, 1, Length[transs]}];
collist =
PadRight[#, Max[transs], ""] & /@
Table[Table[poss[[i]] + j, {j, 1, transs[[i]]}], {i, 1,
Length[species]}];
grid = Grid[Transpose@Riffle[translist, collist],
Alignment -> {Left, Baseline}]
Export[<filename>,grid,"PDF"] (* gives a rather unreadable PDF*)
Any input is appreciated,
Markus
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
How to export a large Grid/Table on a single PDF page? "M.Roellig" <markus.roellig@googlemail.com> - 2011-02-03 10:26 +0000
csiph-web