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

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

    • ivanky
      March 1, 2010 at 3:16 am

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

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

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

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

    Glad that I can help

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

    That was very helpful. Thanks.

    • ivanky
      July 7, 2011 at 11:33 am

      your welcome

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

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


    • ivanky
      November 16, 2011 at 3:17 pm

      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

      I hope this helps

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

    wow..it is working nicely…thanks…

  7. Waqar Saleem
    September 2, 2012 at 1:49 pm

    Terse and to the point. Thanks, this helped.

  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 )

Google+ photo

You are commenting using your Google+ 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

%d bloggers like this: