GeneralProblem with hyperref, please help!

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
hasenkamp
Posts: 4
Joined: Fri Apr 17, 2009 10:41 am

Problem with hyperref, please help!

Post by hasenkamp »

Hey, I'm having problems with hyperref.
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}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with hyperref, please help!

Post by localghost »

hasenkamp wrote:[...] When I try to load the hyperref package it doesn't work. If I just take it out the compilation works perfectly. [...]
That's a statement without any validity. Please describes exactly what is going wrong and add the given error message. Build a minimal working example (MWE) that reproduces the undesired behaviour.

Please post larger source files as attachment. For short source code please use the code environment from the button list right above the input window.


Best regards and welcome to the board
Thorsten¹
hasenkamp
Posts: 4
Joined: Fri Apr 17, 2009 10:41 am

Problem with hyperref, please help!

Post by hasenkamp »

Ok, sorry...
Get the code below and compile it without the \usepackage[pdftex]{hyperref}

Code: Select all

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%	DOCUMENT CLASS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[pdftex,12pt,a4paper,oneside,titlepage]{book}

\usepackage[english]{babel}		% For English reports (can change language)

\usepackage{fancyhdr}
\setlength{\headheight}{15pt}
\pagestyle{fancy}				% fancy, plain
\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}

\usepackage{makeidx}
\makeindex

\usepackage{setspace}				% Anything other than single line spacing
\onehalfspace

\setlength{\parindent}{1cm}		% Set paragraph indent length

\usepackage[latin1]{inputenc}		% Accept european-encoded (latin1) characters.
\usepackage[T1]{fontenc}			% Serif fonts (Computer Modern as default)
\renewcommand*\familydefault{\sfdefault}	% Only if the base font of the document is to be sans serif (Computer Modern Sans Serif as default)
\usepackage[scaled]{helvet}

\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]

\usepackage{nomencl}
\renewcommand{\nomname}{List of Abbreviations}	% or it uses nomenclature title
\makenomenclature

\DeclareGraphicsExtensions{.pdf,.png,.jpg}	% compiling with pdflatex
\graphicspath{{./images}}							% Define where images are stored

%\usepackage[pdftex]{hyperref}   %<<<<<<<< HERE IS THE PROBLEM...
%\hypersetup{
%    colorlinks,%
%    citecolor=black,%
%    filecolor=black,%
%    linkcolor=black,%
%    urlcolor=black
%}
%\usepackage[all]{hypcap}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%	DOCUMENT STARTS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

\frontmatter				% Begin Roman style (i, ii, iii, iv...) page numbering

%------------------------------------------------------------------------------
%	TITLEPAGE - SIMPLE - Comment it if using the fancy one
%------------------------------------------------------------------------------
\title{TEST}
\author{None}
\date{\today}
\thispagestyle{empty}
\maketitle
\newpage

%==============================================================================
%	MAINMATTER
%==============================================================================
\mainmatter			% Begin normal, numeric (1,2,3...) page numbering

\chapter{TEST}
Here it goes... hyperref not working.
\newpage

%==============================================================================
%	BACKMATTER
%==============================================================================
\backmatter

\end{document}
Now if I try to compile the same thing just adding the \usepackage[pdftex]{hyperref}
It doesn't generate any output.
Below is the command line from Led (Latex editor) compiling with pdflatex.

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.8-beta-20080627 (MiKTeX 2.7)
entering extended mode
(test.tex
LaTeX2e <2005//12//01>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2008-06-18, ngerman-x-2008-06-18, french, loaded.
("C:\Program Files\MiKTeX 2.7\tex\latex\base\book.cls"
Document Class: book 2005//09//16 v1.4f Standard LaTeX document class
("C:\Program Files\MiKTeX 2.7\tex\latex\base\bk12.clo"))
("C:\Program Files\MiKTeX 2.7\tex\generic\babel\babel.sty"
*************************************
* Local config file bblopts.cfg used
*
("C:\Program Files\MiKTeX 2.7\tex\latex\00miktex\bblopts.cfg")
("C:\Program Files\MiKTeX 2.7\tex\generic\babel\english.ldf"
("C:\Program Files\MiKTeX 2.7\tex\generic\babel\babel.def")))
("C:\Program Files\MiKTeX 2.7\tex\latex\fancyhdr\fancyhdr.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\base\makeidx.sty")
Writing index file test.idx
("C:\Program Files\MiKTeX 2.7\tex\latex\setspace\setspace.sty"
Package: `setspace' 6.7 <2000//12//01>
) ("C:\Program Files\MiKTeX 2.7\tex\latex\base\inputenc.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\base\latin1.def"))
("C:\Program Files\MiKTeX 2.7\tex\latex\base\fontenc.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\base\t1enc.def"))
("C:\Program Files\MiKTeX 2.7\tex\latex\psnfss\helvet.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\keyval.sty"))
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsmath.sty"
For additional information on amsmath, use the `?' option.
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amstext.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsgen.sty"))
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsbsy.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\amsmath\amsopn.sty"))
("C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\amssymb.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\amsfonts\amsfonts.sty"))
("C:\Program Files\MiKTeX 2.7\tex\latex\amscls\amsthm.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\tools\array.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\appendix\appendix.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\color.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\00miktex\color.cfg")
("C:\Program Files\MiKTeX 2.7\tex\latex\pdftex-def\pdftex.def"))
("C:\Program Files\MiKTeX 2.7\tex\latex\colortbl\colortbl.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\epsfig.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\graphicx.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\graphics.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\graphics\trig.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\00miktex\graphics.cfg"))))
("C:\Program Files\MiKTeX 2.7\tex\latex\ltxmisc\here.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\tools\indentfirst.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\multirow\multirow.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\pdfpages\pdfpages.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\base\ifthen.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\tools\calc.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\eso-pic\eso-pic.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\ms\everyshi.sty"))
("C:\Program Files\MiKTeX 2.7\tex\latex\pdfpages\pppdftex.def"))
("C:\Program Files\MiKTeX 2.7\tex\latex\base\textcomp.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\base\ts1enc.def"))
("C:\Program Files\MiKTeX 2.7\tex\latex\ltxmisc\url.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\tools\verbatim.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\vector\vector.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\natbib\natbib.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\nomencl\nomencl.sty")
Writing nomenclature file test.nlo
("C:\Program Files\MiKTeX 2.7\tex\latex\hyperref\hyperref.sty"
("C:\Program Files\MiKTeX 2.7\tex\generic\oberdiek\ifpdf.sty")
("C:\Program Files\MiKTeX 2.7\tex\generic\oberdiek\ifvtex.sty")
("C:\Program Files\MiKTeX 2.7\tex\generic\ifxetex\ifxetex.sty")
("C:\Program Files\MiKTeX 2.7\tex\latex\oberdiek\hycolor.sty"
("C:\Program Files\MiKTeX 2.7\tex\latex\oberdiek\xcolor-patch.sty"))
("C:\Program Files\MiKTeX 2.7\tex\latex\hyperref\pd1enc.def")
("C:\Program Files\MiKTeX 2.7\tex\generic\oberdiek\etexcmds.sty"
("C:\Program Files\MiKTeX 2.7\tex\generic\oberdiek\infwarerr.sty"))
! TeX capacity exceeded, sorry [save size=5000].
\HyLang@DeclareLang ...and ##1}{\noexpand ##2}#3}}
                                                  \expandafter \x \csname ex...
l.2328 \HyLang@DeclareLang{naustrian}{german}{}
                                               
!  ==> Fatal /b/c9/cerror /b/c0/coccurred, no output PDF file produced!
Transcript written on test.log.
Compile result: /b/c9/c1 Error(s), /e/b0 Warning(s), /e/b0 Page(s).
17-04-2009 14:36:32: STOP
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Problem with hyperref, please help!

Post by Stefan Kottwitz »

Hi,

there seems to be a problem with setspace, try to comment out those two lines:

Code: Select all

%    \usepackage{setspace}
%    \onehalfspace
Stefan
LaTeX.org admin
hasenkamp
Posts: 4
Joined: Fri Apr 17, 2009 10:41 am

Re: Problem with hyperref, please help!

Post by hasenkamp »

Yes, but how can I set the document to be onehalfspace?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Problem with hyperref, please help!

Post by Stefan Kottwitz »

You could do it manually, for instance by

Code: Select all

\renewcommand*\baselinestretch{1.25}
Stefan
LaTeX.org admin
hasenkamp
Posts: 4
Joined: Fri Apr 17, 2009 10:41 am

Re: Problem with hyperref, please help!

Post by hasenkamp »

Thanks!
I also find \linestreach{1.3} helped.
Anther problem comes, the figures caption also have its lines streached.
I got several warnings and 1 error, but there is an output which seems to be ok.

By the way, how can I change the bibliography heading to references?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with hyperref, please help!

Post by localghost »

hasenkamp wrote:[...] Anther problem comes, the figures caption also have its lines streached. [...]
Perhaps it's better to find out which packages clash and see how to avoid that.
hasenkamp wrote:[...] I got several warnings and 1 error, but there is an output which seems to be ok. [...]
Once again be more precise and tell us the exact error. At first sight the output might be OK. But errors mostly have impacts.
hasenkamp wrote:[...] By the way, how can I change the bibliography heading to references?
In the case of using babel the new name has to be added to the according captions.

Code: Select all

\addto{\captionsenglish}{%
  \renewcommand{\bibname}{References}
}
Post Reply