Home > Justincase > Installing/Adding new latex packages in ubuntu environment

Installing/Adding new latex packages in ubuntu environment

Been using ubuntu for a while, here I made some notes on how to add/install new latex packages..

A. If the package in the sty format

1. create a new directory under tex tree

–> sudo mkdir /usr/share/texmf-texlive/tex/latex/<packagename>

2. copy the package inside the new directory

3, run the following command

–> sudo mktexlsr

B. if the package is not the sty format

1. Download <packagename>.ins and <packagename>.dtx (you need both)

2. Run the following command

–> latex  <packagename>.ins

3. You will get the package in the sty format and you can follow instructions in A.

I hope this helps. Thanks to this page.

Categories: Justincase Tags: , ,
  1. windy
    March 1, 2010 at 1:09 am | #1

    vanky… blognya serius sekali……….. penuh angka2 @-@…
    smangat btw…

    • ivanky
      March 1, 2010 at 3:16 am | #2

      hehehe windy, emang kewajiban nie, harus serius, ga boleh santai-santai.. smangath juga dikau

  2. mari
    January 6, 2011 at 1:20 pm | #3

    thx for this!!!!
    just what I needed!

  3. ivanky
    January 7, 2011 at 2:26 am | #4

    Glad that I can help

  4. Amit
    July 6, 2011 at 11:42 am | #5

    That was very helpful. Thanks.

    • ivanky
      July 7, 2011 at 11:33 am | #6

      your welcome
      cheers

  5. marbo
    November 16, 2011 at 9:38 am | #7

    but i still don’t have access to my new package !
    what do suggest ?

    thanks

    • ivanky
      November 16, 2011 at 3:17 pm | #8

      Hmmm thinking, normally once I have done the above step (correctly) I switch to my latex code and use the package I have installed, for instance: suppose I want to install a package called ‘geometry’ then in my latex code i would type
      \usepackage{geometry}

      I hope this helps

  6. Dimuthu
    February 5, 2012 at 2:49 pm | #9

    wow..it is working nicely…thanks…

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.