我一直在尋找一種方法來更準確地「查看」圖片結合文本的結果。 當我創建一些形狀:圖形輸出和文本
g1 = Graphics[{White, EdgeForm[Directive[Thick, Black]] ,
Rectangle[{0, 0}, {19, 28}], LightGray,
Rectangle[{1, 19}, {9, 27}], Rectangle[{10, 19}, {18, 27}],
Rectangle[{1, 23}, {2, 27}]},
Epilog -> {
Inset[Text[Style["Information Here", FontSize -> 8]], {1,
25}, {Center, Top}, Automatic, {0, 1}],
Inset[Text[Style["some more stuff", FontSize -> 8]], {2,
25}, {Center, Bottom}, Automatic, {0, 1}]}]
它顯示了一個縮小版本,但文本不適合的矩形。 但是,當我將它移植到pdf中時,它適合放入矩形中。有沒有辦法更多地查看輸出 ?
編輯:
這裏的screenprint(與Windows截圖工具)後,我改變了環境的打印輸出。
在此之後我轉換G1到final1:
final1 = Show[g1, AspectRatio -> Automatic,
PlotRange -> {{-0.5, 19.5}, {-0.5, 28.5}}]
這顯示了同樣的結果,然後我導出爲PDF。
Export["final1.pdf", Show[final1, ImageSize -> {20 cm, 29 cm}]]
我打開PDF(Adobe reader 9)並縮放到40%(用於比較)。在這裏你可以看到它在雜技演員和紙上的樣子。
這是與Adobe在100%
正如你可以看到有明顯的差異。我甚至可以添加一行文字。
EDIT2:
Following Alexey suggestion with code:
In[27]:= SetOptions[$FrontEndSession,
PrintingStyleEnvironment -> "Printout"]
In[28]:= Export["finalprintout1.pdf",
Show[final1, ImageSize -> {20 cm, 29 cm}]]
Out[28]= "finalprintout1.pdf"
In[29]:= SetOptions[$FrontEndSession,
PrintingStyleEnvironment -> "Working"]
In[30]:= Export["finalworking.pdf",
Show[final1, ImageSize -> {20 cm, 29 cm}]]
Out[30]= "finalworking.pdf"
它會導致同一個PDF文件。我沒有區別?
要以更易讀的方式格式化代碼,請選擇代碼塊,然後按{}按鈕。我已經提交了一個編輯來做到這一點。 – 2011-06-06 15:36:44
@克里斯沃爾頓,Thx我開始了四個空間,但沒有奏效。就像使用IExplorer添加圖片一樣。儘管使用了Chrome瀏覽器! – Lou 2011-06-06 16:22:29
在Windows XP上使用Mathematica 7時,即使我導出爲PDF,文本也不適合框。 – 2011-06-06 17:38:12