- How to install new packages in texlive?
- 1 Answer 1
- You must log in to answer this question.
- Linked
- Related
- Hot Network Questions
- Subscribe to RSS
- Texlive install package linux
- 1. TeX provided by your operating system
- 2. Native TeX Live
- 2a. Supplementary packages from tlcontrib
- 2b. GnuPG (gpg) packages from tlgpg
- 2c. Archive of tlnet
- 3. TeX Live terminology
- How to install LaTeX packages for Tex Live?
- 4 Answers 4
- Best way to install packages for TeXLive in Ubuntu?
- 3 Answers 3
How to install new packages in texlive?
if you used a default installation novel would be installed already. to add it with tlmgr you would use tlmgr install novel (you don’t need the files from ctan, and don’t supply a path) or if you are using a system texlive you would use apt-get or whichever package manager you use.
as tlmgr is in /usr/bin I guess you are using the linux system tex in which case on debian/ubuntu etc you probably want sudo apt install texlive-extra not tlmgr
When you use texlive from debian/Ubuntu you cannot use tlmgr to install latex packages (debian disables it). You can use a tool like apt-file to figure out which Ubuntu package contains the latex package you wanted. Remember though, latex from a Linux dist is often not up to date
1 Answer 1
Thank you both for your comments, I figured it out. I installed both the Ubuntu Texlive distribution and the default installation from the Texlive tar.gz .
So what I did was simply removing every Texlive distribution available on my system, and then reinstalling the default and most up-to-date version of Texlive distribution from the Texlive website, and then just followed the full installation documentation.
Now everything works, and indeed the novel class is by default installed in the distribution; no need to reinstall it.
You must log in to answer this question.
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.12.43529
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Texlive install package linux
You may have installed TeX Live in one of two fundamentally different ways. The way to install and update packages depends on which way you got your installation.
1. TeX provided by your operating system
First, you may have gotten a TeX installation that was based on TeX Live but was packaged for your operating system. For instance, the free GNU/Linux distributions, and the distributions from Red Hat, Debian, Ubuntu, SUSE, etc., all make TeX installations derived from TeX Live available through their normal packaging system (rpm, apt-get, yum, etc.). If this is how you got your TeX, the timing and content of updates is entirely up to your operating system provider—contact them with any and all questions.
By the way, native TeX Live, which is typically installed under /usr/local, can happily coexist with a TeX from your operating system, each with their own completely independent trees and programs. It is only the PATH setting that determines which is used. (Do not try to merge them.) So you can install native TeX Live if your vendor is not keeping up.
2. Native TeX Live
The other case is that you installed the “native” TeX Live, e.g., from the DVD or over the net. Here, the first thing to try, both to install new packages and to update already installed ones, is to run (on a command line/system prompt) the command tlmgr update --all (tlmgr is the command name of the TeX Live package manager). To see what would be done before doing it, run tlmgr update --list.
If that doesn’t get the material that you want, then here is one possibility. When you installed your native version of TeX Live, the default was to include everything available for your platform. If you accepted this default, called scheme-full, then the above command gets you the freshest version of everything available. However, if you chose a smaller scheme than the default, then you will get only what is included in that scheme. Likewise, if you have manually removed collections or packages (terminology explanation), then those packages will not be automatically updated. In these cases, to manually (re)install a package, run tlmgr install pkgname.
More information is in the full tlmgr documentation.
2a. Supplementary packages from tlcontrib
Yet one more possibility for a package failing to be installed is that it is not in TeX Live; for instance, if it is non-free. The tlcontrib repository includes additional packages that can be legally distributed, but not included in TeX Live for whatever reason.
2b. GnuPG (gpg) packages from tlgpg
Our packages are signed with GnuPG. For convenience, you can get gpg packages for TL on Windows and Mac from the third-party tlgpg repository.
2c. Archive of tlnet
Native TL updates ultimately come from a directory named tlnet (on CTAN). An archive for tlnet is available, with daily updates since September 2019, and the final yearly release going back about to about 2010.
3. TeX Live terminology
To explain the terms schemes, collections, and packages used above: the general idea of native TL installation is to choose one of the available top-level schemes, each of which is defined as a set of collections and packages. A collection is a set of packages, and a package is what contains actual files. Each package is in exactly one collection, no more and no less.
How to install LaTeX packages for Tex Live?
I am sorry, but I really do not remember. I think it was through the command line or it was pre-installed. I did not use a package management tool.
If you put the package I linked to in /usr/local/share/texmf that should work too I think. Then run sudo texhash .
4 Answers 4
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:
So you will have to install the package manually:
Then, go to the folder ~/texmf or ~/.texmf it depends, if it doesn’t exist create it:
and copy algorithm2e.sty to it. Then run:
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.
Thank you! I tried both putting it into /usr/local/share/texmf as well as creating my own texmf folder in the home directory and running texhash , but it did not work. But when I include the algorithm2e.sty directly into the same folder as the .tex file that I am compiling, it works.
TeXLive is divided into collections. Every TeXLive package belongs to one (and only one) collection, for example the package algorithm2e belongs to the collection science . For simplicity, most distributions, including Ubuntu, do not have a package for every individual TeXLive package, but group together all the TeXLive packages in a given collection and distribute the entire collection as a single package.
In Ubuntu, the TeXLive collection foo is distributed as the Ubuntu package texlive-foo , so for example the collection science is distributed as the Ubuntu package texlive-science . Hence, the Ubuntu answer to your question about how to install the TeXLive package algorithm2e is that you need to install the Ubuntu package texlive-science . (Of course, a side effect is that it will also install all the other packages in the science collection.)
The standard way to determine which collection a TeXLive packages belongs to is to use tlmgr :
$ tlmgr info algorithm2e package: algorithm2e category: Package shortdesc: Floating algorithm environment with algorithmic keywords. longdesc: Algorithm2e is an environment for writing algorithms. An algorithm becomes a floating object (like figure, table, etc.). The package provides macros that allow you to create different keywords, and a set of predefined key words is provided; you can change the typography of the keywords. The package allows vertical lines delimiting a block of instructions in an algorithm, and defines different sorts of algorithms such as Procedure or Function; the name of these functions may be reused in the text or in other algorithms. installed: Yes revision: 28749 sizes: doc: 661k, run: 137k relocatable: Yes cat-version: 5.0 cat-date: 2013-01-06 21:16:44 +0100 cat-license: lppl collection: collection-science
But in Ubuntu, tlmgr is not installed. I like to use apt-file :
$ apt-file search algorithm2e.sty texlive-science: /usr/share/texlive/texmf-dist/tex/latex/algorithm2e/algorithm2e.sty
Best way to install packages for TeXLive in Ubuntu?
I want to install a package (specifically xlop ). I’m using TeXLive on Ubuntu, and I don’t really know my way around LaTeX. Can apt-get install or something similar be used?
As well as the question that Martin mentions, I’d like to point you to tex.stackexchange.com/q/13709/86 which might help you a bit.
I actually use WINE to run MiKTeX (or rather, Texmaker on top of MiKTeX), because I love the auto-installation feature of MiKTeX so much.
@Anton : That might be a bad idea if you’re on Ubuntu with a more recent version than the one that comes with Ubuntu. For instance, Ubuntu comes with a very outdated version of TeXLive (2009). If you manually install TeXLive 2012, the «texlive-full» is for the 2009 version ; you don’t wanna do that. But of course if you want the 2009 version coming with Ubuntu and you’re missing packages texlive-full is the way to go.
3 Answers 3
A lot of frequently used *TeX packages have been combined into Ubuntu packages. In this case a quick search in the Ubuntu Package Manager shows that xlop is part of the texlive-generic-extra package, which you can install using apt-get install or the GUI as preferred.
Having said that, it’s not particularly difficult to install *TeX packages manually once you’ve identified the right tree to put them in (CTAN has pre-zipped versions of a lot of packages, which makes it even easier — you just have to unzip them at the right place and run texhash ), and you then have the advantage of being sure you’re up-to-date. At the moment I believe the Ubuntu versions are lagging quite a way behind TeX Live releases (let alone any subsequent package updates).
I’m on Ubuntu 10.04 and just downloading the zip file, unzipping it, running make (in the case of the minted package) and running texhash was super easy.