Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I can't figure out where do I load the hyperref package. I know it sounds odd, but I scanned all my preamble and couldn't find a single \usepackage{hyperref}. I feel really stupid, but I don't know where to look for it. Is it possible that some other package I load loaded hyperref on it own? Any ideas are welcomed. I'm really puzzled.

share|improve this question
2  
Yes another package can load hyperref. Look in the log-file. It records the loaded packages. – Ulrike Fischer Apr 8 '11 at 8:21
1  
without a minimal no-one will be able to assist you. Many other packages look for it and if it is not loaded they will input it automatically. – Yiannis Lazarides Apr 8 '11 at 8:22
Beamer loads hyperref. – Seamus Apr 8 '11 at 8:22
@Yiannis: I value the importance of ME, but in this case I don't it is really hard to generate one, as it is involved. I'll try to add something. – Dror Apr 8 '11 at 8:25
4  
the point is that the process of creating the MWE will almost certainly solve your problem. – Seamus Apr 8 '11 at 10:42

2 Answers

up vote 6 down vote accepted

Look in the log file and you'll notice that included files are printed within parentheses. And if a file that you include includes another file, that file will appear within parentheses within the first parentheses. So each parenthetical group delimits a file.

(./a.tex
 % tex is now processing a.tex ...
 (./b.tex % a.tex requests b.tex be read
  % tex is now reading b.tex
  ) % tex is now done with b.tex and is reading
  % the rest of a.tex
 ) % done with a.tex

So search the log file for hyperref.sty. Find the parenthetical group that includes it, and the file at the beginning of that group is your culprit.

share|improve this answer
OH! So that's what the parentheses are for. They make sense now... – Seamus Apr 8 '11 at 11:50
Yes seems like the problem was in my personalized .sty file which was not updated. I guess I don't know how to use it... I reverted to self contained preamble :) – Dror Apr 8 '11 at 12:00

Use \listfiles in your document and then have a look into your log file. It shows the loading of all packages at the beginning and the end of the log file.

If this doesn't help, then copy your document source, delete all text and then uncomment the preamble line by line from the bottom to top, until hyperrefisn't loaded anymore.

Some document classes, like beamer and powerdot, load hyperref by default. And with PassOptionsToPackage{draft}{hyperref} you can disable all settings.

share|improve this answer
Thnx! This looks good. I'll try it. – Dror Apr 8 '11 at 8:36
I'm using a personal .sty file where I load most of the things. It lives in my home part of the latex directories. Is it possible, that I changed the file, but it was not really changed? I have to do something like texhash to it whenever I edit it? – Dror Apr 8 '11 at 8:47
@dror you shouldn't have to texhash if it's in your personal texmf directory... – Seamus Apr 8 '11 at 11:50
1  
@Dror: texhash is only needed for TEXMF and TEXMFLOCAL. TEXMFHOME is searched recursively by TeX. With kpsewhich <file> you can easily controll which file is used by TeX. – Herbert Apr 8 '11 at 11:59

Your Answer

 
discard

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.
http://tex.stackexchange.com/questions/15291/hyperref-mysteriously-enabled-or-who-loaded-hyperref
tex.stackexchange.com
crawl=CC-MAIN-2013-20
53160
application/http; msgtype=response
sha1:DS6QE5RPE5OINBQ2LKUICXWRNIOGOV5C
<urn:uuid:cfe62cf0-8fe5-4146-b1d9-a898eaa4d31a>
2013-05-20T13:19:29Z
198.252.206.16
sha1:JS3OH5FSZEMCKGE3ELESXQTKI7WUZUQF
<urn:uuid:25f92341-e10e-431e-a08d-0d669de2289b>
http://tex.stackexchange.com/questions/15291/hyperref-mysteriously-enabled-or-who-loaded-hyperref
response
<urn:uuid:e428126f-80d6-4438-a184-d9837ededfb6>
robots: classic
hostname: ip-10-60-113-184.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2013-20
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for Spring 2013
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf