MiKTeX and proTeXt ⇒ pdflatex file.tex yields: xcolor.sty not found
-
- Posts: 51
- Joined: Wed Aug 06, 2014 6:59 pm
pdflatex file.tex yields: xcolor.sty not found
With administrator privaleges, I installed MikTex on my computer from a CD.
My question is how do I create a PDF version of my latex file (refman.tex). The refman.tex file was created by Doxgen via commands embedded in java source code.
Details:
I'm using MikTex version 2.95105-x64 on Windows.
I do have the "pdflatex" command installed. I know this because I ran "pdflatex -help" in a command prompt window and this gave me output.
I looked on the Internet and this led me to believe that I should run a Doxgen makefile in the newly created latex folder. The makefile, basically, only has the command pdflatex refman.tex in it.
(1) When I run "pdflatex refman.tex", I get the following error:
LaTeX Error: File 'xcolor.sty' not found.
Type X to quit or (RETURN) to proceed, or enter new name (Default extension: sty)
Enter file name:
...
(2) I tried to install MikTex in a different location but that did not help.
(3) 'xcolor.sty' is no where on my computer.
Does anyone have any ideas!
Thank you,
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: pdflatex file.tex yields: xcolor.sty not found
You can install missing packages using the package manager or on the fly. But if you don't want to think about stuff like that and have enough disk space, install the complete version of MikteX

-
- Posts: 51
- Joined: Wed Aug 06, 2014 6:59 pm
pdflatex file.tex yields: xcolor.sty not found
I have basic-miktex-2.95105_64.exe on a CD which I obtained from:
http://miktex.org/download
It's for a 64 bit Windows machine and is 158MB.
Given what you just said, I need a different executable on a CD. Can you tell me explicitly where and how I can get it.
Thank you,
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
pdflatex file.tex yields: xcolor.sty not found
Acquiring TeX Live as an ISO image. Texlive is maintained by the international Tex Users group.
MikTeX on the contrary is maintained by a single guy, doing a great job.
There are advantages to both systems, but having a look at TeX Live won't do any harm.
-
- Posts: 51
- Joined: Wed Aug 06, 2014 6:59 pm
pdflatex file.tex yields: xcolor.sty not found
Also, in doing this what sort of problems should I expect. What terminology will I encounter, and can you explain the terminolgy to me before I start.
(I should be running TeX Live only against output from Doxygen.)
Will Tex Live work well in converting files to PDF format?
Thank you,
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
pdflatex file.tex yields: xcolor.sty not found
here are step by step instructions: TeX Live guide. Most relevant for you:
- 4.3 ISO (or DVD) installations (nothing special, they say "... nothing changes compared to a normal hard disk installation")
- 3.1.3. Starting the installer (Windows) and the following information regarding running the installer.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: pdflatex file.tex yields: xcolor.sty not found
-
- Posts: 51
- Joined: Wed Aug 06, 2014 6:59 pm
pdflatex file.tex yields: xcolor.sty not found
At ftp://ftp.tex.ac.uk/tex-archive/systems/texlive/Images/
Code: Select all
06/14/2014 10:14PM 1,250 README12/16/2008 12:00AM 6 README.html06/15/2014 06:18PM Directory test05/24/2014 12:00AM 2,648,446,976 texlive2014-20140525.iso05/24/2014 12:00AM 59 texlive2014-20140525.iso.md505/24/2014 12:00AM 91 texlive2014-20140525.iso.sha25606/14/2014 01:56AM 24 texlive2014.iso05/24/2014 12:00AM 50 texlive2014.iso.md505/24/2014 12:00AM 82 texlive2014.iso.sha25606/16/2014 09:45PM 51,173 texlive2014.iso.torrent
Thanks,
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
pdflatex file.tex yields: xcolor.sty not found
Code: Select all
06/14/2014 01:56AM 24 texlive2014.iso
If Doxygen screws up, it will not be LaTeXs mistake

or in other words: As long as the code is ok, the program couldn't care less who or what provided it.
-
- Posts: 51
- Joined: Wed Aug 06, 2014 6:59 pm
pdflatex file.tex yields: xcolor.sty not found
Code: Select all
06/14/2014 01:56AM 24 texlive2014.iso
But, how do I install it. When I double click on the *.iso file nothing happens.
The TeX Live Guide section "Starting the installer" on Windows at:
ftp://ftp.tex.ac.uk/tex-archive/systems/texlive/Images/ basically says run the "install-tl-windows" command. I found a site to download "install-tl-windows.exe" from. It's
ftp://ftp.tex.ac.uk/tex-archive/systems/texlive/tlnet/.
But, when I run the install-tl-windowx executable it gives me a GUI that relies on mirror locations in Africa, ..., South America, etc.. Note: My laptop is not connected to the Internet. If I do not choose a mirror it uses a default. I then get an error message saying: Could not load remote TeX Live Database, Please go back and select a different mirror.
So, how do I install texlive2014.iso?
Using install-tl-advanced.bat (from the same site) put up a command prompt that went away by itself in less than a half second.
Here are all the downloads from the FTP site:
Code: Select all
06/14/2014 11:14PM 1,411 README08/07/2014 02:26AM Directory archive05/16/2014 12:00AM 80,297 install-tl04/19/2014 12:00AM 369 install-tl-advanced.bat08/07/2014 02:26AM 3,342,739 install-tl-unx.tar.gz08/07/2014 02:27AM 88 install-tl-unx.tar.gz.sha25601/16/2014 12:00AM 2,032 install-tl-windows.bat08/07/2014 02:27AM 12,658,637 install-tl-windows.exe08/07/2014 02:27AM 89 install-tl-windows.exe.sha25608/07/2014 02:26AM 16,771,237 install-tl.zip08/07/2014 02:27AM 81 install-tl.zip.sha25608/07/2014 02:27AM Directory tlpkg06/16/2014 03:12AM 23 update-tlmgr-latest.exe06/16/2014 03:12AM 30 update-tlmgr-latest.exe.sha25606/16/2014 03:12AM 22 update-tlmgr-latest.sh06/16/2014 03:12AM 29 update-tlmgr-latest.sh.sha25605/24/2014 12:00AM 1,466,072 update-tlmgr-r34227.exe05/24/2014 12:00AM 90 update-tlmgr-r34227.exe.sha25605/24/2014 12:00AM 4,796,359 update-tlmgr-r34251.sh05/24/2014 12:00AM 89 update-tlmgr-r34251.sh.sha256