GeneralHyperref causing long compilation pause

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
MW99
Posts: 1
Joined: Sun Feb 06, 2011 3:16 am

Hyperref causing long compilation pause

Post by MW99 »

Help, I think I broke hyperref! or maybe amslatex! or even MikTex itself! (I don't have any particular reason to think this is a MikTex problem, and although it's about amstex, it doesn't involve formulas, so I'm putting this in the general Latex forum. If it should go in the MikTex or Math/Science forum anyway then someone let me know and I'll move it).

I am suddenly getting a roughly minute-long pause every time I compile anything with hyperref. This is happening after I did some fooling around with things I didn't fully understand the other day (yeah, I know, that's probably a violation on the Evil Overlord List). It's getting to be a problem, since there are times when I really need to make a lot of small changes and do a lot of compiling and recompiling (and multiple combiling anyway for bibtex), so the pauses add up. At the very least, it's aggravating.

First I'll describe the problem, then give some possibly relevant information. I apologize for the length - I just want to be thorough.


The problem:
--------------------------------
Today, I can't compile anything without a long pause when the hyperref package is used. Not in the article, amsart, or proc-l classes. Removing the hyperref package solves the problem. Changing the editor doesn't seem to help - TeXnicCenter and TexWorks both do the same thing.

Here is a fairly minimal working example:

Code: Select all

\documentclass{article}
\usepackage{hyperref}

\begin{document}
To: hyperref\\
CC: amstex, miktex
Suject:  Persistent pausing.\\

Hi hyperref\\

What's up with all the compilation pause BS?  Have I hurt you in some way?\\

MW99

\end{document}

It seems to pause for about a full minute precisely with the following consecutive statements/commands/whatever you call them in the output section:
("C:\Program Files\MiKTeX 2.8\tex\generic\oberdiek\pdfescape.sty")
("C:\Program Files\MiKTeX 2.8\tex\generic\oberdiek\ifvtex.sty")
(It stops right between the two lines in TeXNicCenter, and right after the second line in TeXworks, for what that's worth)

When you remove hyperref, the problem goes away. Like I said, changing documentclass doesn't change things.




Possibly relevant information:

A) If I go to the "MikTex options (Admin)" and select "packages", then I get the error message "unknown package: amslatex". It then lets me copy the following error report:
MiKTeX Problem Report
Message: Unknown package.
Data: amslatex
Source: Libraries\MiKTeX\PackageManager\PackageManager.cpp
Line: 994
MiKTeX: 2.8
OS: Microsoft Windows XP Professional Service Pack 3 (build 2600)
SystemAdmin: yes
PowerUser: no
Root0: C:\Documents and Settings\Marshall Williams\Application Data\MiKTeX\2.8
Root1: C:\Documents and Settings\Marshall Williams\Local Settings\Application Data\MiKTeX\2.8
Root2: C:\Documents and Settings\All Users.WINDOWS\Application Data\MiKTeX\2.8
Root3: C:\Program Files\MiKTeX 2.8
UserInstall: C:\Documents and Settings\Marshall Williams\Application Data\MiKTeX\2.8
UserConfig: C:\Documents and Settings\Marshall Williams\Application Data\MiKTeX\2.8
UserData: C:\Documents and Settings\Marshall Williams\Local Settings\Application Data\MiKTeX\2.8
CommonInstall: C:\Program Files\MiKTeX 2.8
CommonConfig: C:\Documents and Settings\All Users.WINDOWS\Application Data\MiKTeX\2.8
CommonData: C:\Documents and Settings\All Users.WINDOWS\Application Data\MiKTeX\2.8

B) Yesterday, I was trying to format an article in the AMS "proc-l" documentclass, but was very inept at installing the class file, which I'd downloaded from their site. Whenever I tried to compile, it said it couldn't find the proc-l class file. Finally, after googling around and trying (probably incorrectly) various things recommended by random strangers on the internet, I saw something that looked like something that might work, that I could do from a dos command prompt window thingy, which worked.

Here are the things I did. I did B1 and B2, but I'm not sure which I did first. B3 I did last.

B1) I typed:

Code: Select all

> initexmf --update-fndb
from a dos command prompt. It didn't give me any error message, or any message at all. But I still couldn't


B2) At some point, I went and tried to install amslatex, which I seemed to already have installed earlier, using the following directions, obtained from

ftp://ftp.ams.org/pub/tex/amslatex/install.txt

I. Installing the easy way.

1. Download the following archive file:

ftp://ftp.ams.org/pub/tex/amslatex.zip

For the amsrefs package, download also

ftp://ftp.ams.org/pub/tex/amsrefs.zip

and carry out step 4 (steps 2 and 3 can be skipped).

2. View the following files to assess the effects of the upgrade on
your system:

source/latex/amsmath/diffs-m.txt
source/latex/amscls/diffs-c.txt

3. Backup the old version of AMS-LaTeX, preferably by moving it out of
the TEXMF tree.

4. Extract files from the .zip archive using your favorite unzip tool, setting
the extraction target directory to the texmf root directory.

5. To check the end result, you should find that you now have amsmath.sty
in the following location

TEXMF/tex/latex/amsmath/amsmath.sty


I realize as I type this that I skipped steps 2 and 3, even though I was installing amslatex. I can't imagine what I was thinking, probably "steps 2 and 3 are for the hard way" or something. Obviously I wasn't reading very carefully that night. Just now, I looked in both the diffs-m and diffs-c files. The only instance of the word "hyperref" in either was in diffs-c, and it read:

Differences in upref 2.0 (July 2004)

---Package will now work with hyperref, regardless of package input
order.

which I think is irrelevant, since I don't use the "upref" package, but maybe there are other packages that I am using that are using it somehow? I don't know if packages invoke other packages, or how that works.


B3) Finally I entered something like this, again from a DOS command prompt:

Code: Select all

latex --include-directory="C:\Program Files\MiKTeX 2.8\tex\latex\ams\classes" proc-l.cls

I feel pretty strongly like that's exactly what I entered, but I'm not 100% sure. If I did do that, it was in an attempt to follow advice on this page: http://docs.miktex.org/faq/faq.html#missingpkg

(I wanted to use the graphical interface, but couldn't seem to MiKTeX Options from the start menu - I now realize I was being obtuse somehow, since going to "settings" brings up Miktex options, which is how I get the error in described above in part A)

Once I did that, everything worked out fine - the paper compiled successfully, I submitted it, and thank God at least that thing is out of my life.



I would guess that my mistakes in B2 have something to do with the error in A, but I'm not sure, and I don't know if that has to do with the problem with hyperref.

I'm afraid to try and uninstall/reinstall either hyperref or amstex manually at this point, given my track record. I'm a little unsure if I'm even competent enough to uninstall and reinstall MikTex itself (and that would be a bit of a hassle itself). I'd like to solve this problem without buying a new computer, or moving an academic discipline that doesn't use Tex. I don't want to write another dissertation.

Any assistance would be greatly appreciated.

MW99

Recommended reading 2024:

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

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

Zebeezoo
Posts: 2
Joined: Tue Aug 07, 2007 8:19 am

Hyperref causing long compilation pause

Post by Zebeezoo »

Hi,
I was experiencing the long pauses too. I found a solution on this page: http://babilonline.blogspot.com/2010/10 ... exsty.html
Repeated here:
MikTex 2.8 Downloading/Missing "ifxetex.sty" On Every Run
I debugged this problem after seeing my LyX on my Windows 7 machine taking so long to finish. I saw "latex" process was taking too long to finish. The I ran "latex" manually and the problem was obvious - "ifxetex" is being downloaded in every run.

This seems to be a bug in MikTex 2.8. The bug report can be found here: http://sourceforge.net/tracker/?func=de ... tid=110783

The solution is:

Copy ...
from: C:\Program Files (x86)\MikTeX 2.8\tex\generic\ifxetex\ifxetex.sy
to: C:\Program Files (x86)\MikTeX 2.8\tex\latex\ifxetex\ifxetex.sty
From Start-Menu > MikTex 2.8 > Maintenance (Admin), run "Update (Admin)" and update all pending update-able packages.
Start-Menu > MikTex 2.8 > Maintenance (Admin), run "Settings (Admin)". and Then from "General" tab, click "Refresh FNDB" and "Update Formats"

MikTex should not download "ifxetex.sty" in every run now ;-).

Read more: http://babilonline.blogspot.com/2010/10 ... z1RHGUPgig
I'm using Texniccenter and it worked a treat for me as the issue is with MikTex.

Goodluck. :)
Post Reply