I wanted to install Latex for windows 10. I have installed Tex Studio and tried to install the full version of MikTex. I use the website http://www.miktex.org/2.9/setup to install MikTex, but I see there are different options. The basic one which is 175.76 MB which says (To install a basic TeX/LaTeX system…) and the option of "…allows you download all packages… " which is 11.13 MB. I read that I need to install the second one but when I want to give a default path for reading and installing the software, it gives me an error (The directory is not a valid installation source source). I installed the first one successfully but when I want to run some LaTex files containing some packages, it asks to install that packages manually. Any idea that how can I fix this problem?
[Tex/LaTex] I can not install LaTex
installing
Related Solutions
Firstly, check README files, available documentation of the package, perhaps the beginning of the .dtx
file to get installation information.
Installing a package available as dtx/ins bundle:
Download the content of the package directory.
dtx
is the extension of a documented source file,ins
is the extension of an installation file. Put this in a temporary directory.If there's nothing differently written in a README file run LaTeX (or TeX) on the
.ins
file. This is best done using the command prompt (latex packagename.ins
), but you may use your TeX editor in LaTeX/DVI-LaTeX mode or what it is called there. This would usually produce one or more files ending with.sty
, perhaps some additional files. As you now have cls or sty files or the like, the remaining steps are the same like in the next alternative way:
Installing sty or cls files:
Create a new directory with the package name in your local texmf directory structure, see also Create a local texmf tree in MiKTeX. Why not to choose the main MiKTeX texmf tree see in Purpose of local texmf trees.
Copy the package files (
*.sty
,*.cls
etc.) into this directory.Make the new package known to MiKTeX: refresh the MiKTeX filename database. To do this, click "Start/ Programs/ MiKTeX 2.x/ Maintenance/ Settings" (or similar) to get to the MiKTeX options, click the button "Refresh FNDB". The installation is complete.
If you did not download the documentation already, you could get it by running pdfLaTeX or LaTeX on the
.dtx
file. Compile twice to get correct references.
Obtaining and installing packaged universal archives:
Perhaps you could get a file with the extension .tds.zip
. Such files are archives fitting to your TeX directory structure. Open it, check the content structure. You could extract it to the right place. Also here, as after any installation, refresh the MiKTeX filename database.
Installing a font package
Installing a font package, especially for Type1 fonts, requires additonal steps. See Manual font installation.
Links with further information:
Integrating Local Additions on MiKTeX.org
What are documented LaTeX sources (.dtx files) in the UK TeX FAQ
Installing things on a (La)TeX system with detailed general instructions in the UK TeX FAQ
Downloading and Installing Packages by Nicola L. C. Talbot
The dtx format by Joseph Wright
A different and very effective way, using a local repository:
(works only for all in the MiKTeX package repository available packages)
Use the MiKTeX net installer to download the complete MiKTeX repository to a USB drive.
On a MiKTeX system, choose this directory as the local package repository in the package manager.
Use this local repository for installation and updates.
You may update that local repository later using the net installer: it loads the database from the server, compares and downloads new or updated packages.
You don't need any extra binaries to install such a package. Since you have the files run tex (or latex) on pbox.ins
this will input pbox.dtx
and generate pbox.sty
which is the package file you are after. If it is in the current directory it should just work with your document.
You can latex pbox.dtx
to get the documentation if you do not already have it (the ready made pdf is already on ctan).
Best Answer
The basic installer does only install some packages and the basic tex system. Therefore if you run TeX code using packages which are not installed the system asks to install them or does it if you have allowed that while the installation process.
In my opinion it is better to install the complete distribution. That needs more time, okay, but you can use your TeX distribution without the need to be always online ...
Your message
simply means that you are not allowed to install there files. Could it be that you have not the right for that (user account instead of admin account)?
Please add the complete path you used to your question.