1

I'm having some trouble with this. I'm quite new to LaTeX, and I'm just trying to recreate a word document in LaTeX. Here's the full error:

E: c:/texlive/2016/texmf-dist/tex/latex/colordoc/colordoc.sty:155 Undefined control sequence \EnableCrossrefs

And here's my preamble if that helps at all:

\documentclass[letterpaper,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{titling}
\usepackage{blindtext}
\usepackage{subcaption}
\usepackage{placeins}
\usepackage[margin=1in]{geometry}
\usepackage{enumerate,amsfonts,amsmath,amssymb,multicol,amsthm,multirow}
\usepackage{graphicx,epsfig,dashrule,colordoc,fancyhdr}
\usepackage{tcolorbox} %% to put boxes 
\usepackage{float}
\cfoot{\thepage}

Thanks for any help.

1 Answers1

2

If you must use the colordoc package -- and you almost certainly need not -- you should also load the doc package, like this:

\usepackage{graphicx,dashrule,doc,colordoc,fancyhdr}

(The doc package defines the \EnableCrossrefs macro.) My recommendation, just in case it's not clear, is to load neither the doc nor the colordoc package.

Whatever else you do, don't load the epsfig package -- the more so since you're already loading the graphicx package.

Mico
  • 506,678
  • Thank you, that fixed it! I'm not sure why my prof. used colordoc. Why wouldn't you need it? – TheDetective Nov 29 '16 at 18:02
  • @TheDetective - The abstract of the package's user guide consists of the following statement: "The colordoc package builds on the doc package to provide color highlighting of TEX syntactical conventions, especially curly braces, \if...\fi pairs, and definitions." Unless your document is about documenting TeX and LaTeX code -- which, judging by the rest of the preamble, is exceedingly unlikely -- there should be absolutely no need or reason for loading the doc and colordoc packages. You should ask your professor what induced him (her?) to load the colordoc package... – Mico Nov 29 '16 at 18:12