Sunday, May 5, 2024
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 65825  / 3 Years ago, fri, june 11, 2021, 12:37:00

Apparently I am using Tex Live as my LaTeX distribution:



martin@martin-XPS-8300:~$ pdflatex -v

pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian) kpathsea version
6.1.0 Copyright 2012 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and the Lesser GNU
General Public License. For more information about these matters, see
the file named COPYING and the pdfTeX source. Primary author of
pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). Compiled
with libpng 1.2.49; using libpng 1.2.49 Compiled with zlib 1.2.7;
using zlib 1.2.7 Compiled with poppler version 0.20.5


I would like to install additional packages using this guide.



They say:




With TeX Live manually installed, use tlmgr to manage packages
individually.




tlmgr install <package1> <package2> ... 
tlmgr remove <package1> <package2> ...


But when I try:



tlmgr install algorithm2e


I get:



tlmgr: command not found


I also do not seem to have a ~/texmf folder, only a ~/.texmf-var folder. Is my installation corrupt or am I doing something wrong?



EDIT:



I found that I actually have a



/usr/local/share/texmf


EDIT2:



The command:



apt-cache policy texlive


results in:



texlive:
Installed: 2012.20120611-5
Candidate: 2012.20120611-5
Version table:
*** 2012.20120611-5 0
500 http://jp.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
100 /var/lib/dpkg/status


folder.


More From » software-installation

 Answers
2

If you install TeXLive from the ubuntu repositories (Ubuntu software Center). Then tlmgr isn't installed, because all packages should use the system package management system 'apt-get'. Hence you get the error:


tlmgr: command not found

So you will have to install the package manually:


Download algorithm2e.sty here


Then, go to the folder ~/texmf or ~/.texmf it depends, if it doesn't exist create it:


mkdir ~/texmf

and copy algorithm2e.sty to it. Then run:


sudo texhash

put in root password when requested.


unfortunately, the TexLive packages in Ubuntu are not very often updated so some errors might come up.


The alternative is manually installing the entire TexLive distribution and following the guide you posted.


Hope that helps


[#28555] Saturday, June 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
peratingcit

Total Points: 253
Total Questions: 122
Total Answers: 94

Location: Botswana
Member since Sat, Jan 7, 2023
1 Year ago
;