{"id":135,"date":"2012-03-21T11:13:35","date_gmt":"2012-03-21T03:13:35","guid":{"rendered":"http:\/\/systemsci.org\/jinshanw\/?p=135"},"modified":"2017-11-03T14:09:38","modified_gmt":"2017-11-03T06:09:38","slug":"texlive%e4%b8%ad%e6%89%8b%e5%8a%a8%e5%ae%89%e8%a3%85latex%e5%8c%85","status":"publish","type":"post","link":"https:\/\/www.systemsci.org\/jinshanw\/2012\/03\/21\/texlive%e4%b8%ad%e6%89%8b%e5%8a%a8%e5%ae%89%e8%a3%85latex%e5%8c%85\/","title":{"rendered":"texlive\u4e2d\u624b\u52a8\u5b89\u88c5latex\u5305"},"content":{"rendered":"<p>\u6709tlmgr\u5c31\u7528\u5b83\uff0c<\/p>\n<p>\u6ca1\u6709\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u6e90\u6587\u4ef6\u5b89\u88c5\uff1a<br \/>\n1. download the package files, especially the ins and dtx file<br \/>\n2. compile the ins file (latex name.ins). that should result in a name.sty file.<br \/>\n3. create a directory for the new package: sudo mkdir \/usr\/share\/texmf-texlive\/tex\/latex\/name\/<br \/>\n4. copy name.sty to the latex directory: sudo cp \/usr\/share\/texmf-texlive\/tex\/latex\/name\/<br \/>\n(note, you can also store them in your home directory, but I haven&#8217;t tried that yet)<br \/>\n5. important: be sure the file has permissions: -rw-r&#8211;r&#8211;. If in doubt, run sudo chmod 644 name.sty<br \/>\n6. update latex to recognize the new package by running texhash \/usr\/share\/texmf-texlive<br \/>\n7. OPTIONAL &#8211; compile latex name.dtx to get the documentation<\/p>\n<p>\u8f6c\u81ea\uff1a<a href=\"http:\/\/judsonsnotes.com\/notes\/index.php?option=com_content&amp;view=article&amp;id=320:latex-in-linux&amp;catid=60:latex&amp;Itemid=84\">Judson&#8217;s Notes<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709tlmgr\u5c31\u7528\u5b83\uff0c \u6ca1\u6709\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u6e90\u6587\u4ef6\u5b89\u88c5\uff1a 1. download the package files, &hellip; <a href=\"https:\/\/www.systemsci.org\/jinshanw\/2012\/03\/21\/texlive%e4%b8%ad%e6%89%8b%e5%8a%a8%e5%ae%89%e8%a3%85latex%e5%8c%85\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201ctexlive\u4e2d\u624b\u52a8\u5b89\u88c5latex\u5305\u201d<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"_links":{"self":[{"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/posts\/135"}],"collection":[{"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/comments?post=135"}],"version-history":[{"count":1,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":4129,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/posts\/135\/revisions\/4129"}],"wp:attachment":[{"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/media?parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/categories?post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/tags?post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}