I'm new to LaTeX and and trying to add hyperlinks to my ToC using the hyperref package. I noticed that the footnotes became linked, what is normal then I tried to disable it using
hyperfootnotes=false
but it has no effect.I created a class file to hold all my definitions. I'm not sure if this is happening because of that. Does anybody have an idea why
hyperfootnotes
is not working? Please check the class code below.
Code: Select all
% Class definition
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{manuscript}[2013/03/23 Creative writing manuscripts class]
%
%String comparation
\usepackage{etoolbox}
%
% Use conditionals
\usepackage{ifthen}
%
% Parent class: book
\LoadClass[a4paper,12pt,oneside]{book}
% Necessary packages
%
% Sets the document to be UTF8 and allows specials chars (accents) to be used
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%
% Allows links inside document (only to toc)
\usepackage[linktocpage=true,hyperfootnotes=false]{hyperref}
%
% Change line size of TOC
\usepackage{tocloft}
\setlength\cftparskip{-2pt}
\setlength\cftbeforesecskip{1pt}
\setlength\cftaftertoctitleskip{2pt}
%
% Loads hyphenization and typographic rules for Portuguese
\usepackage[portuges]{babel}
%
% Better quality fonts for PS generation
\usepackage{ae,aecompl}
%
% Sets the document to use Latin Modern fonts
\usepackage{lmodern}
%
% Allows the document to use colors
\usepackage{color}
% Specific class settings
%
%Sets single line spacing
\usepackage[singlespacing]{setspace}
%\usepackage[onehalfspacing]{setspace}
%
% Disables paragraph identation
\setlength{\parindent}{0cm}
%
%
% Adds 0.5cm space after paragraph
\setlength{\parskip}{0.5cm}
%
% Sets the page to have only the page number
\pagestyle{plain}
% Generates a *dialogue* excert of text
%
% Parameters
% First: The aligment of the hyphen in lowercase (r, hyphen at the right side; b, hyphen at both sides; anything else left)
% The text to be changed into a dialog
\newcommand{\dialog}[2][l]{
\ifthenelse{\equal{#1}{r}}{\textit{#2} -- }{
\ifthenelse{\equal{#1}{b}}{ -- \textit{#2} -- }{ -- \textit{#2} }
}
% Generates a *thinking* excert of text
%
% Parameters
% First: The aligment of the hyphen in lowercase (r, hyphen at the right side; b, hyphen at both sides; anything else no hyphen)
% The text to be changed into a think
\newcommand{\think}[2][l]{
\ifthenelse{\equal{#1}{r}}{``\textit{#2}'' -- }{
\ifthenelse{\equal{#1}{b}}{ -- ``\textit{#2}'' -- }{``\textit{#2}'' }
}
% Formats a quotation
%
\newcommand{\quotes}[1]{``\textit{#1}''}
