{"id":1632,"date":"2012-04-20T11:23:50","date_gmt":"2012-04-20T03:23:50","guid":{"rendered":"http:\/\/vanabel.sinaapp.com\/?p=1632"},"modified":"2012-04-20T11:23:50","modified_gmt":"2012-04-20T03:23:50","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8latex%e4%b8%ad%e5%88%b6%e4%bd%9c%e5%8a%a8%e7%94%bb","status":"publish","type":"post","link":"https:\/\/lttt.vanabel.cn\/?p=1632","title":{"rendered":"\u5982\u4f55\u5728LaTeX\u4e2d\u5236\u4f5c\u52a8\u753b"},"content":{"rendered":"<p>\u5728\u8fd9\u91cc, \u6211\u5c06\u6f14\u793a\u5982\u4f55\u5229\u7528Mathemathica\u5728LaTeX\u4e2d\u5236\u4f5c\u52a8\u753b.<\/p>\n<p>\u539f\u7406: LaTeX\u52a8\u753b\u6709\u4e24\u4e2a\u6bd4\u8f83\u8457\u540d\u7684\u5b8f\u5305, \u4e00\u662fanimate, \u4e8c\u662fmovie15. \u5173\u4e8emovie15\u7684\u4f8b\u5b50\u53ef\u4ee5\u53c2\u8003<a href=\"http:\/\/wphooper.com\/code\/latex\/mathematica_movie\/\" target=\"_blank\">\u8fd9\u91cc<\/a>. \u539f\u7406\u5176\u5b9e\u5dee\u4e0d\u591a, \u53ea\u662f\u7528\u5230\u7684\u5de5\u5177\u4e0d\u540c.<br \/>\n1. \u5236\u4f5cframe, \u4e5f\u5c31\u662f\u5e27, \u6211\u4eec\u77e5\u9053\u52a8\u753b\u90fd\u662f\u8fde\u7eed\u64ad\u653e\u9759\u6001\u56fe\u7247\u800c\u8fd0\u52a8\u8d77\u6765\u7684. <!--more-->\u4e8e\u662f\u7b2c\u4e00\u6b65\u5c31\u662f\u7528<a href=\"www.wolfram.com\/mathematica\/\" target=\"_blank\">mathematica<\/a>\u5236\u4f5c\u4e00\u4e2a\u52a8\u753b\u7684frame;<br \/>\n2. \u5229\u7528animate.sty\u5c06\u8fd9\u4e9bframe\u5d4c\u5165\u5230pdf\u6587\u4ef6\u4e2d; \u8fd9\u6837\u5c31\u53ef\u4ee5\u5728acobat\u4e2d\u64ad\u653e\u4e86.<\/p>\n<p>\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b:<br \/>\n1. \u5728Mathematica\u4e0b\u8fd0\u884c\u5982\u4e0b\u4ee3\u7801:<\/p>\n<pre lang=\"matlab\" colla=\"+\">\nflist = Most[\n  Map[Graphics[{Red, Disk[{0, 0}, 2], White, \n      Disk[1.5 {Cos[#], Sin[#]}, 0.5]}] &, \n   Range[Pi\/2, -3 Pi\/2, -Pi\/6.]]]\n<\/pre>\n<p>\u5f97\u5230\u4e00\u5217\u6eda\u52a8\u7684\u5706.<br \/>\n<a href=\"http:\/\/i.imgur.com\/aRVrZ.png\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/i.imgur.com\/aRVrZ.png\" title=\"frame\" class=\"aligncenter\" width=\"61%\" \/><\/a><br \/>\n2. \u5229\u7528\u5982\u4e0b\u4ee3\u7801\u5c06\u6bcf\u5e45\u56fe\u7247\u63d0\u53d6\u5230\u5de5\u4f5c\u76ee\u5f55(\u53ef\u7528Directory[]\u67e5\u770b\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55)<\/p>\n<pre lang=\"matlab\" colla=\"+\">\nMapThread[\n Export[StringJoin[\"frame-\", ToString[#2], \".jpg\"], #] &, {flist, \n  Range[Length[flist]]}]\n<\/pre>\n<p>3. \u5728\u540c\u4e00\u76ee\u5f55\u4e0b\u65b0\u5efatest.tex\u5185\u5bb9\u5982\u4e0b<\/p>\n<pre lang=\"latex\" colla=\"+\">\n\\documentclass{beamer}\n\\usepackage{animate}\n\\begin{document}\n\\begin{frame}{Example of animated PDF}\n\\begin{figure}[htbp]\n\\animategraphics[width=0.5\\textwidth,\ncontrols,buttonsize=1em,buttonfg=0.5,\nloop]{5}{frame-}{1}{12}\n\\end{figure}\n\\end{frame}\n\\end{document}\n<\/pre>\n<p>\u5176\u4e2d\u7b2c2\u884c\u662f\u5b8f\u5305\u8f7d\u5165\u4ee3\u7801, \u5fc5\u987b\u7684. \u800c5-9\u662fframe\u7684\u4e3b\u8981\u5185\u5bb9, \u5b83\u5305\u62ec\u4e86\u4e00\u4e2afigure\u6765\u5c45\u4e2d\u653e\u7f6e\u52a8\u753b, \u800c6-8\u884c\u5c31\u662f\u52a8\u753b\u5d4c\u5165\u4ee3\u7801\u4e86. \u5b83\u7684\u57fa\u672c\u683c\u5f0f\u5982\u4e0b<\/p>\n<pre lang=\"latex\" colla=\"+\">\n\\animategraphics[<options>]{<frame rate\/>}{<file basename>}{<first>}{<last>}\n<\/last><\/first><\/file><\/options><\/pre>\n<p>\u5404\u9879\u53c2\u6570\u610f\u4e49\u662f\u660e\u663e\u7684:<br \/>\nwidth: \u534a\u4e2a\u6587\u7ae0\u5bbd\u5ea6<br \/>\ncontrols: \u663e\u793a\u63a7\u5236\u6309\u94ae<br \/>\nbuttonsize: \u6309\u94ae\u5927\u5c0f<br \/>\nbuttonfg: \u6309\u94ae\u900f\u660e\u5ea6<br \/>\nloop: \u5faa\u73af\u64ad\u653e.<br \/>\n\u66f4\u591a\u7684\u53ef\u53c2\u8003animate\u7684<a href=\"http:\/\/ftp.cvut.cz\/tex-archive\/macros\/latex\/contrib\/animate\/animate.pdf\">\u8bf4\u660e\u6587\u6863<\/a>.<br \/>\n4. \u8fd0\u884cpdflatex, \u5f97\u5230test.pdf \u7528acobat reader \u6253\u5f00\u5373\u53ef.<br \/>\n<a href=\"http:\/\/i.imgur.com\/EIelS.png\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/i.imgur.com\/EIelS.png\" title=\"animate\" class=\"aligncenter\" width=\"60%\" \/><\/a><br \/>\n5. \u53c2\u8003\u6587\u732e<br \/>\n    i. <a href=\"http:\/\/svidoli.wordpress.com\/2009\/07\/12\/pdf-embedded-animations-with-mathematica-and-latex-beamer\/\" target=\"_blank\">PDF embedded animations with Mathematica and Latex-beamer<\/a><br \/>\n    ii. <a href=\"http:\/\/ftp.cvut.cz\/tex-archive\/macros\/latex\/contrib\/animate\/animate.pdf\" target=\"_blank\">The animate package<\/a><br \/>\n6. \u9644\u4ef6<br \/>\n      <a href=\"http:\/\/storage.live.com\/items\/F9973480D35BD709!893?filename=test.pdf\" target=\"_blank\">\u6700\u7ec8\u7684pdf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u8fd9\u91cc, \u6211\u5c06\u6f14\u793a\u5982\u4f55\u5229\u7528Mathemathica\u5728LaTeX\u4e2d\u5236\u4f5c\u52a8\u753b. \u539f\u7406 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/lttt.vanabel.cn\/?p=1632\"> <span class=\"screen-reader-text\">\u5982\u4f55\u5728LaTeX\u4e2d\u5236\u4f5c\u52a8\u753b<\/span> \u9605\u8bfb\u66f4\u591a &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[33,227,532,548,38],"class_list":["post-1632","post","type-post","status-publish","format-standard","hentry","category-latex","tag-animate","tag-beamer","tag-latex-2","tag-mathematica","tag-38"],"_links":{"self":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/1632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1632"}],"version-history":[{"count":0,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/1632\/revisions"}],"wp:attachment":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}