3
$\begingroup$

I'm trying to export a Grid table to pdf. When I display the table in the notebook, it has a very long aspect ratio, which I want to preserve in the pdf. However, when I export using Export["table.pdf",table], the result has square dimensions, and Mathematica has word wrapped some of the table elements. Adding the option ImageSize->{x,y} seems to have no effect.

Below is the desired output (what I see in the notebook): Notebook output

Below is the output that Mathematica produces on export: PDF output

Any suggestions?

$\endgroup$
2
$\begingroup$

You can use LineBreakWithin->False to fix this:

Style[Grid[ConstantArray["blah blah blah", {5, 20}], Dividers -> All], LineBreakWithin -> False]
Export["test.pdf", %]

table output

$\endgroup$
0
$\begingroup$

If you have few of these, you can try "Save Selection As" as see in the following picture:

enter image description here

$\endgroup$
  • $\begingroup$ Not quite the solution I was after, but it is sufficient for my issue, as I do only have a handful of these tables. $\endgroup$ – aslanides Apr 24 '15 at 1:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.