TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to LaTeX and trying to use hyperref, and having trouble with \usepackage{hyperref}.

As recommended in posts, I included \usepackage{hyperref} as the last \usepackage{} instruction. No other problem when I comment out \usepackage{hyperref}.

I've successfully compiled the testams.tex document that came with the hyperref download from TUG and uses


I am receiving this error:

!Latex Error: \RequirePackage or \LoadClass in Options Section

This is my preamble and document structure:

\geometry{letterpaper}                   % ... or a4paper or a5paper or ... 
%\geometry{landscape}                 % Activate for for rotated page geometry

\usepackage{amsmath, amsthm}
\usepackage{caption}    % Activate to format captions
\captionsetup[table]{font=bf}   % Make table captions bold
%\usepackage[format=hang,font={small,bf}]{caption}  %Makes all captions bold


\author{New Author}







\chapter{App 1}
\section{App 1.1}
Lots of tables.





share|improve this question

migrated from stackoverflow.com Jul 8 '13 at 16:07

This question came from our site for professional and enthusiast programmers.

Where do you get your \subtitle command from? Not that I think that's the problem, it's just that your example will get stuck there for me. – Ulrich Schwarz Jul 8 '13 at 16:17
If you want to use the command \subtitle you have to use a KOMA-Script document class, where it is defined. For example, substitute report with scrreprt: \documentclass[11pt,reqno]{scrreprt} – karlkoeller Jul 8 '13 at 16:25
BTW: Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – karlkoeller Jul 8 '13 at 16:29
Please update your example to show the real error message and not ! Undefined control sequence in line 22. Also post the full error message (e.g. from the .log file including the line number). If \listfiles is added at the begin of the TeX file, then LaTeX will print a version list at the end of the .log file (try pressing q for batch mode on the first error message to get a chance to reach \end{document}. If you are using older software, try updating your TeX distribution. – Heiko Oberdiek Jul 8 '13 at 18:17
I'm sure there are some packages on CTAN that you haven't included yet. Please create a minimal example that demonstrates your problem. And please include only those packages in your document that you know you need. – Martin Schröder Jul 8 '13 at 19:47
up vote 1 down vote accepted

Your code doesn't give any errors, except the \subtitle command. Commenting it out will solve the problem.


share|improve this answer
Exactly correct for the code I gave. My document had other code to format tables, etc. including a \newcommand{subtitle}(removed that cause using scrrprt). I discovered \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse} to be the conflict with \usepackage{hyperref}. Took it out, and all looks good now. Thank you for the help, and I hope my comment is useful for others. – user32097 Jul 8 '13 at 19:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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