1
$\begingroup$
Grid[ArrayReshape[ Item[#, Background ->  If[FreeQ[IntegerDigits@#, 3], White, Yellow]] & /@  Range@1000, {34, 30}], Dividers -> All] Export["1000-3.pdf", %]

The Grid looks fine on the screen in MMA. But when exported, it became this

enter image description here

The rest of the cells are all good part from the "fat" 1000.

enter image description here

$\endgroup$
3
$\begingroup$

Easy with ItemSize:

gr = Grid[ArrayReshape[Item[#, Background -> If[FreeQ[IntegerDigits@#, 3], White, Yellow]] 
& /@ Range@1000, {34, 30}], Dividers -> All, ItemSize -> All]; 
Export["1000-3.pdf", gr]
$\endgroup$
2
$\begingroup$

Evaluating

SetOptions[$FrontEnd, LineBreakWithin -> False]

before your export should prevent automatic line breaking.

chart

$\endgroup$

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.