{"id":1004,"date":"2013-01-18T11:38:36","date_gmt":"2013-01-18T03:38:36","guid":{"rendered":"http:\/\/blog.hoyo.idv.tw\/?p=1004"},"modified":"2014-01-28T00:02:25","modified_gmt":"2014-01-27T16:02:25","slug":"freebsd-%e5%ae%89%e8%a3%9d-texlive-latex-%e5%9c%96%e6%96%87%e5%9e%82%e7%9b%b4%e5%b0%8d%e9%bd%8a","status":"publish","type":"post","link":"https:\/\/blog.hoyo.idv.tw\/?p=1004","title":{"rendered":"FreeBSD \u5b89\u88dd TexLive, LaTeX \u5716\u6587\u5782\u76f4\u5c0d\u9f4a, TexLive 2012 CJK, \u81ea\u8a02 Apache \u8def\u5f91\u6307\u5b9a\u5230 TexLive"},"content":{"rendered":"<h2>FreeBSD \u5b89\u88dd TexLive<\/h2>\n<p>\u653e\u68c4\u4f7f\u7528 \/usr\/ports \u5427\uff0c\u76f4\u63a5\u5230 TexLive \u5b98\u7db2\u4e0b\u8f09 install \u6216\u662f ISO \u5b89\u88dd\u5373\u53ef<\/p>\n<p><a href=\"http:\/\/www.tug.org\/texlive\/\">TeX Live - TeX Users Group<\/a><\/p>\n<ul>\n<li>\u4e0b\u8f09\u7dda\u4e0a\u5b89\u88dd\u6279\u6b21\u6a94<a href=\"http:\/\/www.tug.org\/texlive\/\">\u00a0<\/a><a href=\"http:\/\/www.tug.org\/texlive\/acquire-netinstall.html\" target=\"_blank\">Installing TeX Live over the Internet - TeX Users Group<\/a><\/li>\n<li>\u4e0b\u8f09 ISO\u00a0<a href=\"http:\/\/mirror.ctan.org\/systems\/texlive\/Images\/\" target=\"_blank\">DOWNLOAD FROM A NEARBY CTAN MIRROR<\/a><\/li>\n<\/ul>\n<h3>FreeBSD \u639b\u8f09 ISO \u6a94\u6848<\/h3>\n<p><a href=\"http:\/\/blog.up-link.ro\/how-to-mount-iso-images-in-freebsd-and-linux\/\">How To mount ISO images in FreeBSD and Linux | Tips And Tricks | blog.up-link.ro<\/a><\/p>\n<pre class=\"brush: bash; gutter: true\">First you have to create virtual device, using this command:\r\n\r\n# mdconfig -a -t vnode -f \/path\/to\/image.iso -u 1\r\n\r\nThe \"mdconfig\" command creates a device and prints the name. Just append that to \"\/dev\/\" and mount:\r\n\r\n# mount -t cd9660 \/dev\/md1 \/media\r\n\r\nTo unmount the image use command:\r\n\r\n# umount \/media\r\n\r\nOnce unmounted, you can unconfigure the device with\r\n\r\n# mdconfig -d -u 1<\/pre>\n<h2 class=\"brush: bash; gutter: true\">LaTeX \u5716\u6587\u5c0d\u9f4a<\/h2>\n<p class=\"brush: bash; gutter: true\"><a href=\"http:\/\/taiwanliu.blogspot.tw\/2011\/09\/top-aligning-imported-graphics.html\">Born to explore: top-aligning imported graphics<\/a><\/p>\n<pre class=\"brush: latex; gutter: true\">\\vtop{%\r\n \\vskip0pt\r\n \\hbox{%\r\n   \\includegraphics{figure}%\r\n }%\r\n}<\/pre>\n<h2 class=\"brush: latex; gutter: true\">TexLive 2012 CJK<\/h2>\n<p class=\"brush: latex; gutter: true\"><a href=\"https:\/\/wiki.archlinux.org\/index.php\/TeX_Live_and_CJK\">TeX Live and CJK - ArchWiki<\/a><\/p>\n<pre class=\"brush: latex; gutter: true\">\\usepackage[encapsulated]{CJK}\r\n\\usepackage{ucs}\r\n\\usepackage[utf8x]{inputenc}\r\n% use one of bsmi(trad Chinese), gbsn(simp Chinese), min(Japanese), mj(Korean); see:\r\n% \/usr\/share\/texmf-dist\/tex\/latex\/cjk\/texinput\/UTF8\/*.fd\r\n\\newcommand{\\cntext}[1]{\\begin{CJK}{UTF8}{gbsn}#1\\end{CJK}}\r\n\r\n\\cntext{\u6211\u7684\u4e2d\u6587\u5beb\u5f97\u5f88\u597d\u3002}<\/pre>\n<h2 class=\"brush: latex; gutter: true\">\u81ea\u8a02 Apache \u8def\u5f91\u6307\u5b9a\u5230 TexLive<\/h2>\n<p class=\"brush: latex; gutter: true\">\u5f9e\u7db2\u9801\u4e0a\u57f7\u884c\u6307\u4ee4\u5e38\u5e38\u90fd\u6703\u767c\u751f\u627e\u4e0d\u5230\u7684\u60c5\u6cc1\u3002\u539f\u56e0\u662f Apache \u4e26\u4e0d\u6703\u76f4\u63a5\u4f7f\u7528\u7cfb\u7d71\u7684 path \u8a2d\u5b9a\uff0c\u9019\u4e5f\u5c0e\u81f4\u7576 php \u5728\u7db2\u9801\u57f7\u884c\u6642\u4e00\u5b9a\u6703\u767c\u751f\u627e\u4e0d\u5230\u6307\u4ee4\u7684\u554f\u984c\u3002<\/p>\n<p class=\"brush: latex; gutter: true\">\u9019\u500b\u554f\u984c\u5728 Apache2.2 \u5df2\u7d93\u89e3\u6c7a\uff0c\u5728 \/usr\/local\/etc\/apache22 \u5167\u6709\u4e00\u500b\u00a0envvars.d \u7684\u76ee\u9304\u5c31\u662f\u5728\u8a2d\u5b9a\u74b0\u5883\u6240\u7528\u3002<\/p>\n<p class=\"brush: latex; gutter: true\"><a href=\"http:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2013\/01\/\u5716\u7247-031.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1008\" title=\"\" alt=\"\" src=\"http:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2013\/01\/\u5716\u7247-031.png\" width=\"699\" height=\"152\" srcset=\"https:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2013\/01\/\u5716\u7247-031.png 699w, https:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2013\/01\/\u5716\u7247-031-300x65.png 300w, https:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2013\/01\/\u5716\u7247-031-500x108.png 500w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/a><\/p>\n<pre class=\"brush: bash; gutter: true\">cd \/usr\/local\/etc\/apache22\/envvars.d\r\nee texlive.env\r\nPATH=$PATH:\/usr\/local\/texlive\/2012\/bin\/amd64-freebsd;<\/pre>\n<p class=\"brush: latex; gutter: true\"><a href=\"http:\/\/ubuntuforums.org\/archive\/index.php\/t-639803.html\">how to allow apache run sudo commands [Archive] - Ubuntu Forums<\/a><\/p>\n<p class=\"brush: latex; gutter: true\"><a href=\"http:\/\/www.chair.im\/?p=579#sthash.GQrhkORF.d2Ztf5Vd.dpbs\">FreeBSD \u4e2d SSH \u7684 su \u4e0d\u80fd\u767b\u5165\u548c\u8a2d\u7f6e | \u7b46\u8a18\u8207\u7a0b\u5f0f<\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"1004\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;1,522&nbsp;total views, &nbsp;1&nbsp;views today<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD \u5b89\u88dd TexL...<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"1004\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;1,522&nbsp;total views, &nbsp;1&nbsp;views today<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[31],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/1004"}],"collection":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1004"}],"version-history":[{"count":7,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/1004\/revisions"}],"predecessor-version":[{"id":1667,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/1004\/revisions\/1667"}],"wp:attachment":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}