Home Questions Tags Users Unanswered. Update your index Finally, run your TeX indexer program to update the package database. With TeX Live manually installed, use tlmgr to manage packages individually. The reason this process has not been automated widely is that there are still thousands of installations which do not conform to the TDS, such as old shared Unix systems and some Microsoft Windows systems, so there is no way for an installation program to guess where to put the files: When you try to typeset a document which requires a package which is not installed on your system, LaTeX will warn you with an error message that it is missing.
Compiled with libpng 1. With TeX Live manually installed, use tlmgr to manage packages individually. But when I try: RPi Awesomeness 6, 19 59 Martin Drozdik 1, 5 17 How did you installed 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. Then run sudo texhash. See Where do I place my own. Hence you get the error: Mohammad Hizzani 11 6. Minos 1, 7 But when I include the algorithm2e. The canonical answer is tex. The standard way to determine which collection a TeXLive packages belongs to is to use tlmgr: Floating algorithm environment with algorithmic keywords. 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. I like to use apt-file: This is correct in pointing to the Software Center for some packages at least - but the question was about any packages, not just fonts.
The best way to get the best out of Texlive is to install Telxlive vanilla by following these instructions: Sign up or log in Sign up using Google. You should of course read this file first. There are five steps to installing a LaTeX package. These steps can also be used on the pieces of a complicated package you wrote yourself; in this case, skip straight to Step 3. Extract the files Run LaTeX on the. That is, open the file in your editor and process it as if it were a LaTeX document which it is , or if you prefer, type latex followed by the.
This will extract all the files needed from the. Note down or print the names of the files created if there are a lot of them read the log file if you want to see their names again. Create the documentation Run LaTeX on the. You might need to run it twice or more, to get the cross-references right just like any other LaTeX document. This will create a. If you created a. If you want the index to be created properly, follow the steps in the indexing section.
Sometimes you will see that a. Run the following command instead:. Install the files While the documentation is printing, move or copy the package files from your temporary directory to the right place[s] in your TeX local installation directory tree. Packages installed by hand should always be placed in your "local" directory tree, not in the directory tree containing all the pre-installed packages.
This is done to a prevent your new package accidentally overwriting files in the main TeX directories; and b avoid your newly-installed files being overwritten when you next update your version of TeX. Its location depends on your system:. Often there is just a. For example, new BibTeX packages or font packages will typically have several files to install.
This is why it is a good idea to create a sub-directory for the package rather than dump the files into misc along with other unrelated stuff. If there are configuration or other files, read the documentation to find out if there is a special or preferred location to move them to. Update your index Finally, run your TeX indexer program to update the package database. This program comes with every modern version of TeX and has various names depending on the LaTeX distribution you use.
Read the documentation that came with your installation to find out which it is, or consult http: Update font maps If your package installed any TrueType or Type 1 fonts, you need to update the font mapping files in addition to updating the index. Your package author should have included a.
The map updating program is usually some variant on updmap , depending on your distribution:. The reason this process has not been automated widely is that there are still thousands of installations which do not conform to the TDS, such as old shared Unix systems and some Microsoft Windows systems, so there is no way for an installation program to guess where to put the files: There are also systems where the owner, user, or installer has chosen not to follow the recommended TDS directory structure, or is unable to do so for political or security reasons such as a shared system where the user cannot write to a protected directory.
The reason for having the texmf-local directory called texmf. You can also have a personal texmf subdirectory in your own login directory. Your installation must be configured to look in these directories first, however, so that any updates to standard packages will be found there before the superseded copies in the main texmf tree.
The universal way to check if a file is available to TeX compilers is the command-line tool kpsewhich. It returns the path to the file. For more details on a specific package use the command-line tool tlmgr TeX Live only:. To find out what commands a package provides and thus how to use it , you need to read the documentation.
This location is distribution-specific, but is typically found in:. Generally, most of the packages are in the latex subdirectory, although other packages such as BibTeX and font packages are found in other subdirectories in doc. The documentation directories have the same name of the package e.