Where to get latex packages




















The first step is to download your package file. Users can download their LaTeX package files from here. Then choose the destination for the extracted files. Return to the folder where the files were originally extracted. There should now be a. Navigate to the folder where the files were extracted. For example, the code for using the amsmath package would resemble:. As you can see, installing and using packages in LaTeX is a relatively straightforward process.

These packages offer additional functionality or customization options for your LaTeX document. You should create a custom folder for your LaTeX packages. These folders can be placed in any drive as long as you can navigate to them when you run MikTeX Settings. Community News. What are LaTeX Packages? There is an extremely broad range of packages available, but they generally fall into two categories: Packages that allow you to change the layout or structure of your document, like multicol Packages that allow you to include new or enhanced content within your document itself, like amsmath Packages required by a document are called in the preamble of your LaTeX document, i.

Below is a screen capture of a LaTeX preamble that includes packages: The orange text surrounded by square brackets in the above example are options for the package being called. Installing the geometry package, for example, can be done using the following commands: tlmgr install geometry with TeX Live Linux sudo tlmgr install geometry with MacTeX Mac Additional information can be found below:. Examples of General-Purpose Packages The packages listed below are likely to be of use regardless of discipline or motivation for using LaTeX.

Multiple Columns with multicol By default LaTeX only allows one or two columns; multicol allows for more columns and provides some extra functionality with the formatting of columns. Document Dimensions with geometry The geometry package controls the size of the document, its margins, and other aspects of layout with more options than LaTeX on its own.

Enhanced Image Support with graphicx The graphicx package provides extra functionality for including images into a document. Most packages are somewhat vague about where files need to be moved to. In the case of MiKTeX, this means put those files in a subdirectory of texmftexlatex or localtexmftexlatex if you are using the localtexmf directory for local customizations. Note that the exact location of the texmf and localtexmf directories will depend on your installation.

Generally, any other files with the package are documentation files, often with the extension. Running latex on these, eg. These documentation files can go anywhere that makes sense to you.



0コメント

  • 1000 / 1000