MiKTeX and proTeXtpdflatex file.tex yields: xcolor.sty not found

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

pdflatex file.tex yields: xcolor.sty not found

Post by Michael_590 »

Briefly:

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,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: pdflatex file.tex yields: xcolor.sty not found

Post by Johannes_B »

LaTeX is kind of modular, different packages giving different functionality. You said you installed MikTeX from a CD, i guess this was a basic install, meaning just the basic packages. A full install with all packages would take up about 3 or 4 GB (not sure).
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 ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

pdflatex file.tex yields: xcolor.sty not found

Post by Michael_590 »

I have to install some MikTex from a CD because the computer cannot be connected to the Internet.

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,
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

pdflatex file.tex yields: xcolor.sty not found

Post by Johannes_B »

I can point you to an alternative: TeX Live

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

pdflatex file.tex yields: xcolor.sty not found

Post by Michael_590 »

Can you give me step by step instructions on how to get TeX Live to a CD, and then to fully install TeX Live onto a Windows 64bit computer from that CD.

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,
Last edited by Michael_590 on Thu Aug 07, 2014 9:32 pm, edited 3 times in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

pdflatex file.tex yields: xcolor.sty not found

Post by Stefan Kottwitz »

Hi Michael,

here are step by step instructions: TeX Live guide. Most relevant for you: Stefan
LaTeX.org admin
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: pdflatex file.tex yields: xcolor.sty not found

Post by Johannes_B »

You can also place the iso on a usb-Stick and mount the iso on your computer if you don't want to burn a DVD.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

pdflatex file.tex yields: xcolor.sty not found

Post by Michael_590 »

Which one of these is best for Doxygen on a Windows 64 bit computer? My DVD has a capacity of 4.7GB.

At ftp://ftp.tex.ac.uk/tex-archive/systems/texlive/Images/

Code: Select all

06/14/2014 10:14PM          1,250 README
12/16/2008 12:00AM              6 README.html
06/15/2014 06:18PM      Directory test
05/24/2014 12:00AM  2,648,446,976 texlive2014-20140525.iso
05/24/2014 12:00AM             59 texlive2014-20140525.iso.md5
05/24/2014 12:00AM             91 texlive2014-20140525.iso.sha256
06/14/2014 01:56AM             24 texlive2014.iso
05/24/2014 12:00AM             50 texlive2014.iso.md5
05/24/2014 12:00AM             82 texlive2014.iso.sha256
06/16/2014 09:45PM         51,173 texlive2014.iso.torrent
Basically, do I just download one of these to a DVD and then on the desired computer double click on what I downloaded, take all the defaults, and I'm all set except for maybe the PATH environment variable?

Thanks,
Last edited by Michael_590 on Thu Aug 07, 2014 9:26 pm, edited 1 time in total.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

pdflatex file.tex yields: xcolor.sty not found

Post by Johannes_B »

Code: Select all

06/14/2014 01:56AM 24 texlive2014.iso
There is only one (recent) iso-file. After instaling you are able to compile any valent tex document to pdf.

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Michael_590
Posts: 51
Joined: Wed Aug 06, 2014 6:59 pm

pdflatex file.tex yields: xcolor.sty not found

Post by Michael_590 »

I downloaded the following:

Code: Select all

06/14/2014 01:56AM 24 texlive2014.iso
from ftp://ftp.tex.ac.uk/tex-archive/systems/texlive/Images/

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 README
08/07/2014 02:26AM      Directory archive
05/16/2014 12:00AM         80,297 install-tl
04/19/2014 12:00AM            369 install-tl-advanced.bat
08/07/2014 02:26AM      3,342,739 install-tl-unx.tar.gz
08/07/2014 02:27AM             88 install-tl-unx.tar.gz.sha256
01/16/2014 12:00AM          2,032 install-tl-windows.bat
08/07/2014 02:27AM     12,658,637 install-tl-windows.exe
08/07/2014 02:27AM             89 install-tl-windows.exe.sha256
08/07/2014 02:26AM     16,771,237 install-tl.zip
08/07/2014 02:27AM             81 install-tl.zip.sha256
08/07/2014 02:27AM      Directory tlpkg
06/16/2014 03:12AM             23 update-tlmgr-latest.exe
06/16/2014 03:12AM             30 update-tlmgr-latest.exe.sha256
06/16/2014 03:12AM             22 update-tlmgr-latest.sh
06/16/2014 03:12AM             29 update-tlmgr-latest.sh.sha256
05/24/2014 12:00AM      1,466,072 update-tlmgr-r34227.exe
05/24/2014 12:00AM             90 update-tlmgr-r34227.exe.sha256
05/24/2014 12:00AM      4,796,359 update-tlmgr-r34251.sh
05/24/2014 12:00AM             89 update-tlmgr-r34251.sh.sha256
Thank you,
Post Reply