{"id":835,"date":"2012-01-05T12:40:50","date_gmt":"2012-01-05T12:40:50","guid":{"rendered":"https:\/\/www.hannahdee.wales\/blog\/?p=835"},"modified":"2012-01-05T12:45:05","modified_gmt":"2012-01-05T12:45:05","slug":"adding-a-new-package-to-a-latex-install-on-linux","status":"publish","type":"post","link":"https:\/\/www.hannahdee.wales\/blog\/?p=835","title":{"rendered":"Adding a new package to a latex install on linux"},"content":{"rendered":"<p>Each time I reinstall linux or change machines, I find myself having to add a bunch of latex packages and style files. I quite often forget exactly how to do this, so here&#8217;s a quick guide to installing latex packages for anyone else struggling with the details and also for my future self, next time I upgrade.<\/p>\r\n\r\n<ol>\r\n<li>Get the package that you want from the Comprehensive Tex Archive Network CTAN <a href  =\"http:\/\/ctan.org\/\">http:\/\/ctan.org\/<\/a>; for example, if you want the remarkably useful package multibib (allows multiple bibliographies in one document) go here <a href = \"http:\/\/ctan.org\/tex-archive\/macros\/latex\/contrib\/multibib\">http:\/\/ctan.org\/tex-archive\/macros\/latex\/contrib\/multibib<\/a>.<\/li>\r\n<li>Download and unzip the zip file containing the entire package<\/li>\r\n<li>Run latex on the <i>.ins<\/i> file, which should create a file called .sty<br>\r\n<tt>hannah@pear $ latex multibib.ins<\/tt><\/li>\r\n <li>Make a directory for it to go in in your texmf tree<br>\r\n<tt>hannah@pear $ sudo mkdir \/usr\/share\/texmf\/tex\/latex\/multibib<\/TT><\/li>\r\n<li>Put it in that directory<br>\r\n<tt>hannah@pear $ sudo cp multibib.sty \/usr\/share\/texmf\/tex\/latex\/multibib<\/tt><\/li>\r\n<li>Run texhash to tell LaTeX to update itself so it finds the new package<br><tt>hannah@pear $ sudo texhash<\/tt><\/li>\r\n<\/ol>\r\n<p>Job done!<\/p>","protected":false},"excerpt":{"rendered":"<p>Each time I reinstall linux or change machines, I find myself having to add a bunch of latex packages and style files. I quite often forget exactly how to do this, so here&#8217;s a quick guide to installing latex packages for anyone else struggling with the details and also for my future self, next time I upgrade. Get the package that you want from the Comprehensive Tex Archive Network CTAN http:\/\/ctan.org\/; for example, if you want the remarkably useful package multibib (allows multiple bibliographies in one document) go here http:\/\/ctan.org\/tex-archive\/macros\/latex\/contrib\/multibib. Download and unzip the zip file containing the entire package Run latex on the .ins<span class=\"more-link\"><a href=\"https:\/\/www.hannahdee.wales\/blog\/?p=835\">Read More &rarr;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["entry","author-admin","post-835","post","type-post","status-publish","format-standard","category-geekiness"],"_links":{"self":[{"href":"https:\/\/www.hannahdee.wales\/blog\/index.php?rest_route=\/wp\/v2\/posts\/835","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hannahdee.wales\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hannahdee.wales\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hannahdee.wales\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hannahdee.wales\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=835"}],"version-history":[{"count":4,"href":"https:\/\/www.hannahdee.wales\/blog\/index.php?rest_route=\/wp\/v2\/posts\/835\/revisions"}],"predecessor-version":[{"id":839,"href":"https:\/\/www.hannahdee.wales\/blog\/index.php?rest_route=\/wp\/v2\/posts\/835\/revisions\/839"}],"wp:attachment":[{"href":"https:\/\/www.hannahdee.wales\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hannahdee.wales\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hannahdee.wales\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}