Document ClassesHyperref Colorlinks

Information and discussion about specific document classes and how to create your own document classes.
User avatar
renno
Posts: 54
Joined: Thu Jun 07, 2007 7:16 pm

Hyperref Colorlinks

Post by renno »

Hello everybody,

I am trying to use the "colorlinks=true" option of "hyperref" with "pdftex"... I am getting the following error:

!Too many }'s.
\color@endbox->\color@endgroup\egroup


I looked through the "hyperref" manual and "readme" files, but could not find anything to solve this problem...

Your help is appreciated...

Thanks,
If there is no way, we will make one...
Hanibal

Recommended reading 2024:

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

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

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

Hyperref Colorlinks

Post by localghost »

Please post a minimum working example (MWE) that reproduces the error and generate a list of the used files.

Code: Select all

Code, edit and compile here:
\listfiles
\documentclass{article}
…
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Copy the list of files from the LOG file and post it here, too.
User avatar
renno
Posts: 54
Joined: Thu Jun 07, 2007 7:16 pm

Hyperref Colorlinks

Post by renno »

Thanks for your help...

I have attached the requested file. I am using pdftex...

Thanks again...

The Log File is the following:

Code: Select all

This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=pdflatex 2007.5.18) 18 AUG 2007 08:33
entering extended mode
\write18 enabled.
%&-line parsing enabled.
**MWE.tex
(./MWE.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,
french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,
turkish, ukenglish, ukrainian, loaded.
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/report.cls
Document Class: report 2005/09/16 v1.4f Standard LaTeX document class
(/usr/local/texlive/2007/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
)
\c@part=\count79
\c@chapter=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/local/texlive/2007/texmf-dist/tex/latex/tools/hhline.sty
Package: hhline 1994/05/23 v2.03 Table rule package (DPC)
)
(/usr/local/texlive/2007/texmf-dist/tex/latex/subfig/subfig.sty
Package: subfig 2005/06/28 ver: 1.3 subfig package
(/usr/local/texlive/2007/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Attachments
vtthesis.sty
(35.8 KiB) Downloaded 371 times
MWE.tex
(6.8 KiB) Downloaded 354 times
Hubble.pdf
(101.9 KiB) Downloaded 329 times
If there is no way, we will make one...
Hanibal
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Hyperref Colorlinks

Post by localghost »

This is not what i expect to be a MWE. And your incomplete log file doesn't contain a file list generated by the \listfiles command, which should look like the following.

Code: Select all

*File List*
…
***********
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Search that passage in your log file and post it separately. There can be found all used files with their version number and a short description.
User avatar
renno
Posts: 54
Joined: Thu Jun 07, 2007 7:16 pm

Hyperref Colorlinks

Post by renno »

Thanks a million for your help. I apologize for the files, but I think the problem is in the style file I am using, as the hyperref produced colored links in other simple documents. The problem here is in the style file. The files list is below:

*File List*
report.cls 2005/09/16 v1.4f Standard LaTeX document class
size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
hhline.sty 1994/05/23 v2.03 Table rule package (DPC)
subfig.sty 2005/06/28 ver: 1.3 subfig package
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
caption.sty 2007/01/07 v3.0k Customising captions (AR)
caption3.sty 2007/01/07 v3.0k caption3 kernel (AR)
vtthesis.sty
natbib.sty 2007/02/05 8.0 (PWD)
lettrine.sty 2004/05/22 v1.6 (D. Flipo)
lettrine.cfg
multicol.sty 2006/05/18 v1.6g multicolumn formatting (FMi)
enumerate.sty 1999/03/05 v3.00 enumerate extensions (DPC)
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
pdftex.def 2007/01/08 v0.04d Graphics/color for pdfTeX
float.sty 2001/11/08 v1.3d Float enhancements (AL)
multirow.sty
amsmath.sty 2000/07/18 v2.13 AMS math features
amstext.sty 2000/06/29 v2.01
amsgen.sty 1999/11/30 v2.0
amsbsy.sty 1999/11/29 v1.2d
amsopn.sty 1999/12/14 v2.01 operator names
amssymb.sty 2002/01/22 v2.2d
amsfonts.sty 2001/10/25 v2.2f
palatino.sty 2005/04/12 PSNFSS-v9.2a (SPQR)
hyperref.sty 2007/02/07 v6.75r Hypertext links for LaTeX
pd1enc.def 2007/02/07 v6.75r Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
kvoptions.sty 2006/08/22 v2.4 Connects package keyval with LaTeX options (HO
)
url.sty 2005/06/27 ver 3.2 Verb mode for urls, etc.
hpdftex.def 2007/02/07 v6.75r Hyperref driver for pdfTeX
hypcap.sty 2006/02/20 v1.5 Adjusting anchors of captions (HO)
pdfsync.sty 2004/01/31 v0.6
ot1ppl.fd 2001/06/04 font definitions for OT1/ppl.
ragged2e.sty 2003/03/25 v2.04 ragged2e Package (MS)
everysel.sty 1999/06/08 v1.03 EverySelectfont Package (MS)
supp-pdf.tex
nameref.sty 2006/12/27 v2.28 Cross-referencing by name of section
refcount.sty 2006/02/20 v3.0 Data extraction from references (HO)
MWE.out
MWE.out
Hubble.pdf Graphic file (type pdf)
***********


Thanks a lot for your help...
If there is no way, we will make one...
Hanibal
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Hyperref Colorlinks

Post by localghost »

Your MWE produces 3 errors and 2 warnings when compiled with pdflatex and so it's not a MWE for me. You better try to get things work and present it another time.

Code: Select all

! Too many }'s.
\color@endbox ->\color@endgroup \egroup
l.163 \end{figure}
You've closed more groups than you opened.
Such booboos are generally harmless, so keep going.
! LaTeX Error: \begin{document} ended by \end{figure}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.163 \end{figure}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
! Extra \endgroup.
<recently read> \endgroup
l.163 \end{figure}
Things are pretty mixed up, but I think the worst is over.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
After a long search, i couldn't find out the cause for the problem. The critical code detected by the compiler seems to be correct. The main cause must be were else. So my efforts have to end here for the moment.
User avatar
renno
Posts: 54
Joined: Thu Jun 07, 2007 7:16 pm

Re: Hyperref Colorlinks

Post by renno »

Thank you for trying...

I cannot get an MWE except with using the style file I am using. I guess I will call off using colors for they hyperlinks, and keep the option "colorlinks=false"...

Thanks for your help, and I apologize for the trouble...
If there is no way, we will make one...
Hanibal
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Hyperref Colorlinks

Post by localghost »

renno wrote: […] I cannot get an MWE except with using the style file I am using. […]

Try to build a MWE with your class file. A MWE is not reduced to the standard classes. It only means that every code or package not needed for the reproduction of the error should be deleted or set as comment.
calogero
Posts: 1
Joined: Sat Aug 25, 2007 11:23 pm

Re: Hyperref Colorlinks

Post by calogero »

Seems you're using hyperref with natbib. Are you getting systematically urls for each bib entry in the References ? Actually myself I do. I just wanna get rid of, how could i do ?
Thanx
karthik
Posts: 4
Joined: Wed Jun 13, 2007 7:39 am

Hyperref Colorlinks

Post by karthik »

I have a feeling this is related to the redefinition of floats in the style used... since I am having a very similar problem.

Code: Select all

Code, edit and compile here:
% Redefine the macro used for floats (including figures and tables)
% so that single spacing is used.
% (Note \def\figure{\@float{figure}set single spacing} doesn't work
% because figure has an optional argument)
\def\@xfloat#1[#2]{\ifhmode \@bsphack\@floatpenalty -\@Mii\else
\@floatpenalty-\@Miii\fi\def\@captype{#1}\ifinner
\@parmoderr\@floatpenalty\z@
\else\@next\@currbox\@freelist{\@tempcnta\csname ftype@#1\endcsname
\multiply\@tempcnta\@xxxii\advance\@tempcnta\sixt@@n
\@tfor \@tempa :=#2\do
{\if\@tempa h\advance\@tempcnta \@ne\fi
\if\@tempa t\advance\@tempcnta \tw@\fi
\if\@tempa b\advance\@tempcnta 4\relax\fi
\if\@tempa p\advance\@tempcnta 8\relax\fi
}\global\count\@currbox\@tempcnta}\@fltovf\fi
\global\setbox\@currbox\vbox\bgroup
\def\baselinestretch{1}\small\normalsize
\boxmaxdepth\z@
\hsize\columnwidth \@parboxrestore}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
If I comment out the above piece of code from the sty file, I am able to compile without the endgroup problem. For some reason, however, I am not getting the link colours!!
Post Reply