My thesis is being compiled with pdflatex using Led.
When I try to load the hyperref package it doesn't work. If I just take it out the compilation works perfectly.
Find bellow the main .tex file. In the line 139 you will find the the \usepackage[pdftex]{hyperref}. I put it in big red letters.
As I said, if i try to load it I will get an error and no pdf output.
Code: Select all
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PDFINFO - COMPILE WITH PDFLATEX
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pdfinfo{ % Info dictionary of PDF output;
% all keys are optional.
/Author (Willyan Hasenkamp)
%/CreationDate (D:20000012000000) % D:YYYYMMDDhhmmss (default: the actual date)
%/ModDate (D:20000012000000) % ModDate is similar
%/Creator (LaTeX) % default: "TeX"
%/Producer (pdfTeX) % default: "pdfTeX" + pdftex version
/Title (Electrodeposition and Characterization of Iridium Oxide as Electrode Material for Neural Recording and Stimulation) %
%/Subject (Electrodeposition) %
/Keywords (Neuroprosthetics, Electrodes, Electrodeposition, Iridium Oxide.) %
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DOCUMENT CLASS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[pdftex,12pt,a4paper,oneside,titlepage]{book}
%\documentclass[12pt,b5paper,twoside,titlepage]{book}
%==============================================================================
% USEPACKAGES
%==============================================================================
\usepackage[english]{babel} % For English reports (can change language)
%------------------------------------------------------------------------------
% PAGE LAYOUT
%------------------------------------------------------------------------------
%\usepackage{fullpage} % For somewhat standardized smaller margins
%\usepackage{a4wide} % For a page with A4 document size with smaller margins
%\usepackage[top=1cm, bottom=1cm, left=1cm, right=1cm]{geometry} % specify the 4 margins
%------------------------------------------------------------------------------
% FANCYHDR - Customize the header and footer lines of the document
%------------------------------------------------------------------------------
\usepackage{fancyhdr}
\setlength{\headheight}{15pt}
\pagestyle{fancy} % fancy, plain
% Left-hand side: section
% Right- hand side: chapter
% Note that \leftmark and \rightmark convert the names to uppercase, whichever was the formatting of the text. If you want them to print the actual name of the chapter without converting it to uppercase use the following command:
%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\fancyhf{} % clear all header and footer fields
\fancyhead[R]{\nouppercase{\rightmark}}
\fancyhead[L]{\nouppercase{\leftmark}}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
%------------------------------------------------------------------------------
% INDEXING
%------------------------------------------------------------------------------
\usepackage{makeidx}
\makeindex
% Add the command \printindex where you want to insert the index
% Use the command \index{blah} to index the word where it appears
% Use the MakeIndex buttom in the LEd to compile and produce the index
%------------------------------------------------------------------------------
% LINE SPACING
%------------------------------------------------------------------------------
\usepackage{setspace} % Anything other than single line spacing
%\doublespace
\onehalfspace
%\singlespace
\setlength{\parindent}{1cm} % Set paragraph indent length
%------------------------------------------------------------------------------
% FONTS
%------------------------------------------------------------------------------
\usepackage[latin1]{inputenc} % Accept european-encoded (latin1) characters.
\usepackage[T1]{fontenc} % Serif fonts (Computer Modern as default)
% (SANS) SERIF FONTS
%\usepackage{bookman}
%\usepackage{calligra}
%\usepackage[default]{frcursive}
%\usepackage{tgcursor}
%\usepackage{la}
%\usepackage{mathptmx} % Times
%\usepackage[math]{kurier}
%\usepackage{arev} % \textsc do not work
% SANS SERIF FONTS SPECIAL
\renewcommand*\familydefault{\sfdefault} % Only if the base font of the document is to be sans serif (Computer Modern Sans Serif as default)
%\usepackage[scaled]{uarial}
\usepackage[scaled]{helvet}
% TYPEWRITTER FONTS SPECIAL
%\renewcommand*\familydefault{\ttdefault} % Only if the base font of the document is to be typewriter style
%\usepackage{courier}
%------------------------------------------------------------------------------
% OTHERS
%------------------------------------------------------------------------------
\usepackage{amsmath} % Math environment
\usepackage{amssymb} % Adds new symbols in to be used in math mode.
\usepackage{amsthm} % Introduces proof environment and theoremstyle command
\usepackage{array} % Extends the possibility of LaTeX to handle tables
\usepackage{appendix}
\usepackage{color} % Typeset in colors
\usepackage{colortbl} % Make backgound colors on tables
\usepackage{epsfig} % Alternative package
\usepackage{graphicx} % To include graphics - just for eps figures
\usepackage{here} % To get figures, tables, etc... where you want them.
\usepackage{indentfirst} % The beginning of any chapter/section is indented
\usepackage{multirow} % To be able to use multirow command in tables
\usepackage{pdfpages} % \include{pdf} nice to appended publications
\usepackage{textcomp} % \texteuro, \textcelsius, ...
\usepackage{url} % It defines the \url{...}
\usepackage{verbatim} % "comment" environment to make LaTeX comments
\usepackage{vector} % "\bvec{}" and "\buvec{}" style bold vectors in maths
\usepackage[square, comma, sort&compress]{natbib} % multiple numerical citations are compressed as [1-3]
%------------------------------------------------------------------------------
% SPECIAL USEPACKAGE FOR LIST OF ABBREVIATIONS (NOMENCLATURE)
%------------------------------------------------------------------------------
% To be able to generate it we have to edit the "makeidx.bat" (which can be found in "%PROGRAMFILES%\LEd\batches\makeidx.bat") inserting the following command at the end of the file:
% makeindex.exe %2.nlo -s nomencl.ist -o %2.nls
\usepackage{nomencl}
\renewcommand{\nomname}{List of Abbreviations} % or it uses nomenclature title
\makenomenclature
% Add the command \printnomenclature where you want to insert this list
% Use the command \nomenclature{symbol}{description} the text introduces symbol
% Use the MakeIndex buttom in the LEd to compile and produce the index
%==============================================================================
% DECLARATIONS
%==============================================================================
\DeclareGraphicsExtensions{.pdf,.png,.jpg} % compiling with pdflatex
\graphicspath{{./images}} % Define where images are stored
[color=#FF0000]
%\usepackage[pdftex]{hyperref} % <<<<< Here's the problem
%\hypersetup{
% colorlinks,%
% citecolor=black,%
% filecolor=black,%
% linkcolor=black,%
% urlcolor=black
%}
%\usepackage[all]{hypcap}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DOCUMENT STARTS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%==============================================================================
% FRONTMATTER
%==============================================================================
\frontmatter % Begin Roman style (i, ii, iii, iv...) page numbering
%------------------------------------------------------------------------------
% TITLEPAGE - SIMPLE - Comment it if using the fancy one
%------------------------------------------------------------------------------
%\title{Electrodeposition and characterization of iridium oxide as electrode material for neural recording and stimulation}
%\author{Willyan Hasenkamp}
%\date{\today}
%\thispagestyle{empty}
%\maketitle
%\newpage
%------------------------------------------------------------------------------
% TITLEPAGE - SIMPLE
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% TITLEPAGE - FANCY
%------------------------------------------------------------------------------
\clearpage
\thispagestyle{empty}
\include{Titlepage} %*************************************** FILE TITLEPAGE.TEX
\newpage
%------------------------------------------------------------------------------
% TITLEPAGE - FANCY
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% COPYRIGHT
%------------------------------------------------------------------------------
\clearpage
\thispagestyle{empty}
\include{Copyright} %*************************************** FILE COPYRIGHT.TEX
\newpage
%------------------------------------------------------------------------------
% COPYRIGHT
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% DEDICATION
%------------------------------------------------------------------------------
\clearpage
\thispagestyle{empty}
\include{Dedication} %************************************* FILE DEDICATION.TEX
\newpage
%------------------------------------------------------------------------------
% DEDICATION
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% THE FUNNY QUOTE PAGE
%------------------------------------------------------------------------------
\clearpage
\thispagestyle{empty}
\include{FunnyQuote} %************************************* FILE FUNNYQUOTE.TEX
\newpage
%------------------------------------------------------------------------------
% THE FUNNY QUOTE PAGE
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% ABSTRACT
%------------------------------------------------------------------------------
\clearpage
\thispagestyle{empty} % no page number
%\thispagestyle{plain} % Page number at bottom
%\addcontentsline{toc}{chapter}{Abstract}
\include{Abstract} %***************************************** FILE ABSTRACT.TEX
\newpage
%------------------------------------------------------------------------------
% ABSTRACT
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% ACKNOWLEDGEMENTS
%------------------------------------------------------------------------------
\clearpage
\thispagestyle{empty}
%\addcontentsline{toc}{chapter}{Acknowledgments}
\include{Acknowledgments} %*************************** FILE ACKNOWLEDGMENTS.TEX
\newpage
%------------------------------------------------------------------------------
% ACKNOWLEDGEMENTS
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% TABLE OF CONTENTS
%------------------------------------------------------------------------------
\clearpage
\markboth{Contents}{Contents}
%\addcontentsline{toc}{chapter}{Contents}
\tableofcontents % Write out the Table of Contents
\newpage
%------------------------------------------------------------------------------
% TABLE OF CONTENTS
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% LIST OF FIGURES
%------------------------------------------------------------------------------
\clearpage
\markboth{List of Figures}{List of Figures}
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures % Write out the List of Figures
\newpage
%------------------------------------------------------------------------------
% LIST OF FIGURES
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% LIST OF TABLES
%------------------------------------------------------------------------------
\clearpage
\markboth{List of Tables}{List of Tables}
\addcontentsline{toc}{chapter}{List of Table}
\listoftables % Write out the List of Tables
\newpage
%------------------------------------------------------------------------------
% LIST OF TABLES
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% LIST OF ABBREVIATIONS - acronyms, initialisms, and pseudo-blends
%------------------------------------------------------------------------------
% If you want to create your abbreviation list by hand just comment the \printnomenclature line and uncomment the \include line.
% Edit Abbreviation.tex as you wish
\clearpage
\markboth{List of Abbreviations}{List of Abbreviations}
\addcontentsline{toc}{chapter}{List of Abbreviations}
%\include{Abbreviations} %******************************* FILE ABBREVIATIONS.TEX
\printnomenclature[2cm]
\newpage
%------------------------------------------------------------------------------
% LIST OF ABBREVIATIONS
%------------------------------------------------------------------------------
%==============================================================================
% MAINMATTER
%==============================================================================
\mainmatter % Begin normal, numeric (1,2,3...) page numbering
%------------------------------------------------------------------------------
% INTRODUCTION
%------------------------------------------------------------------------------
\input{Introduction} %*********************************** FILE INTRODUCTION.TEX
\newpage
%------------------------------------------------------------------------------
% INTRODUCTION
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% DEVELOPMENT
%------------------------------------------------------------------------------
\input{TheoryBackground} %*************************** FILE THEORYBACKGROUND.TEX
\input{Experimental} %*********************************** FILE EXPERIMENTAL.TEX
\input{Development} %************************************* FILE DEVELOPMENT.TEX
\newpage
%------------------------------------------------------------------------------
% DEVELOPMENT
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% CONCLUSION
%------------------------------------------------------------------------------
\input{Conclusion} %*************************************** FILE CONCLUSION.TEX
\newpage
%------------------------------------------------------------------------------
% CONCLUSION
%------------------------------------------------------------------------------
%==============================================================================
% BACKMATTER
%==============================================================================
\backmatter
%------------------------------------------------------------------------------
% APPENDIX
%------------------------------------------------------------------------------
\appendix
%\appendixpage
%\addappheadtotoc
\input{AppendixA} %****************************************** FILE APPENDIX.TEX
\newpage
%------------------------------------------------------------------------------
% APPENDIX
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% BIBLIOGRAPHY - in LEd use the BiBTEX
%------------------------------------------------------------------------------
\clearpage
\markboth{Bibliography}{Bibliography}
\addcontentsline{toc}{chapter}{Bibliography}
\label{Bibliography} % If comment this line it will be "References"
\bibliographystyle{ieeetr} % Styles (unsrt,plain,abbrv,alpha...)
\bibliography{MScThesisEMMNano}
\newpage
%------------------------------------------------------------------------------
% BIBLIOGRAPHY
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% BIOGRAPHY
%------------------------------------------------------------------------------
\clearpage
\markboth{Biography}{Biography}
\addcontentsline{toc}{chapter}{Biography}
\include{Biography} %************************************** FILE BIOGRAPHY.TEX
\newpage
%------------------------------------------------------------------------------
% BIOGRAPHY
%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
% INDEX - in LEd use the MakeIndex
%------------------------------------------------------------------------------
\clearpage
\addcontentsline{toc}{chapter}{Index}
\printindex
\newpage
%------------------------------------------------------------------------------
% INDEX
%------------------------------------------------------------------------------
\end{document}