I'm fairly new to LaTeX, but have been using my own document template for a couple of years now to do basic typesetting. What I want to do is to add the package from PSTricks.I have never installed a new package before, but want it available to all of my projects. For the sake of completeness, I am running OSX10.6 and use TeXShop to edit text, however am slowly switching over to TextEdit.Anyway, I have googled and the results all say to use.dtx and.ins files (which I cannot find). If someone can give me some pointers as to what I need to install (do I need first?) and how to go about doing it, that would be great.Thanks. The first thing to do would be to check if your distribution doesn't already provide a way to add the package to your TeX installation. You didn't say which distribution you used (MacTeX?
TeX Live?) and that's actually the most important part. The editor you use for typing source files is unrelated, it's only the front-end to the actual TeX binaries and files.To answer your second question, you do need core PSTricks macros in order to use any PSTricks-related package, so do that first; all the major distributions ship PSTricks, so first try to figure out how to install it (and maybe it's there already). There really should be a way to do so, so only try the steps in the next paragraphs if all else fails.If installation is not possible via graphical applications shipped with your TeX distribution, you may have to install the files by hand. I outline the process briefly here, but you can read the manual for 'kpathsea' for more information (it's the library through which TeX and related programs find files).
First identify the main directory where your TeX files resides; it's usually called texmf-something. In TeX Live it's /usr/local/texlive/year/texmf-dist by default; in MacTeX it should be somewhere under /Library/TeX/Distributions.From there, look for a directory called texmf-local (or texmf.local, etc.); that's where you should drop the files; more precisely in texmf-local/tex/latex/pst-gantt. Then run 'texhash' from the command line in Terminal, and you should be done. The latter command may not be in your PATH environment variable, so you may have to set up this first.Hope this helps.Oh, and you don't need.dtx and.ins; they're just a LaTeXy way of packing all the files together for upstream distribution; what you really need is the.sty file, as well as, obviously, docs.
I am very new to Centos. I am using Centos 7.
So I installed Texlive and using texmaker for compiling my document. It cannot find a lot of packages and I am having a hard time to install all the new packages. I tried to find and install a latex package manager. From my search I found something called tlmgr but seems that there is no Centos version of it available. What is the best way to install new packages without having to install them one by one? And if there is no systematic way of doing it how should I install a package manually? Astronasrin wrote:So I installed TexliveHow did you install texlive?I (as a LaTeX package maintainer) strongly recommend not using the version from the repository but using the version from TUG instead:(Prerequisites for CentOS 7: yum install perl-Tk perl-Digest-MD5 )Yes, I recommend not using the CentOS repository here, which is clearly an exception since usually it's a very bad idea not using the repository.
Why I do this:- The version from the repository is outdated. When it comes to LaTeX this can lead to problems: First of all package maintainers usually only support the recent version. And when asking questions on they recommend to update your TeXlive first, but you cannot using the version from repository. When installing LaTeX packages manually you can get easily into dependency hell - The recent version of the package you try to install does not work with older versions of other packages, so you get strange error messages. If you install updated versions of LaTeX packages manually to solve this issue, they depend on newer versions of other packages as well, and so on.
In the end you lost 2 days just for updating half of the packages manually and resolving all the issues caused by incompatible versions of LaTeX packages.- There are some LaTeX packages missing when using the repository version.- You get no tlmgr for installing/removing/updating TeX packages.- TeXlive is a TeX distribution which uses a mixture of 'stable release' and 'rolling release' paradigms.The core components (for example TeX itself) has been tested by the TeXlive team, but very nearly everything else and especially all the LaTeX packages are just the very recent version. So the version of TeXlive in the CentOS repository is not a very good or stable or tested version. It's just a snapshot of a rolling release TeX distribution which was done when TeXlive was packaged for CentOS. So in this case you get no benefit in using the version from the CentOS repository, just the opposite. I am having a hard time to install all the new packages.Unfortunately the procedure for installing LaTeX package is not always the same. There is a recommended way but not all package maintainers follow this route.
Usually there is a file with the extension '.ins' (e.g. Packagename.ins), compiling this file with TeX will extract the package and will print a small instruction which files should now be copied to the corresponding location. For some packages there are 'just unzip and use it' archives located at.But when doing a full install of the TUG version of TeXlive you should have most of the package (if not all the packages) you need. If there is a specific package missing please name it so we can help.
Code: $ find /usr/local -name todonotes.sty -print/usr/local/texlive/2016/texmf-dist/tex/latex/todonotes/todonotes.sty$ find /usr/local -name lipsum.sty -print/usr/local/texlive/2016/texmf-dist/tex/latex/lipsum/lipsum.sty$ find /usr/local -name here.sty -print/usr/local/texlive/2016/texmf-dist/tex/latex/here/here.sty$ find /usr/local -name tabu.sty -print/usr/local/texlive/2016/texmf-dist/tex/latex/tabu/tabu.styI guess you are still using the TeX provided by CentOS. What is the output of 'which pdflatex'? It should be either.