By the following code sample, I receive the error "undefined control sequence \href". Why?




\title{\textbf {Demography}}
\author{Jack Dov}




  • 2
    aside from the \color error your first two lines are contradictory. \documentclass[dvips,12pt]{article}\usepackage[pdftex]{graphicx} you only want dvips option if you are not using pdftex and you only want the pdftex option if you are using pdftex. delete both these options as the correct option will be automatically supplied in each case Oct 7 '17 at 20:20

the error message is

! Undefined control sequence.
<argument> ...toreSpaceFactor \Hy@LinkMath \color 
l.21 ...t-post-truth-politics}{\color{blue}recent}


which shows the undefined command is \color as you have not loaded the color or xcolor package.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.