Math & Science"Improper \spacefactor" error after updating hyperref packag

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
RiW
Posts: 29
Joined: Wed Sep 01, 2010 12:11 am

"Improper \spacefactor" error after updating hyperref packag

Post by RiW »

Hi,

I built a complete working report using the hyperref package for adding dynamic links. I then routinely updated MikTex and downloaded all updated packages (my last update was about a month ago). However, my document will no longer compile, claiming "improper \spacefactor" amongst other new errors. I have produced an MWE below, and all errors disappear when I comment out the hyperref package.

Code: Select all

\documentclass[11pt]{report}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{hyperref}

\begin{document}
The amplitude of a wave, A, as a function of distance from source, x, can be expressed as follows:
\begin{equation}
\label{eqn:sound_att}
A=A_{0}e^{-\alpha x}
\end{equation}
where $A_{0}$ is the initial amplitude and $\alpha$ is the attenuation coefficient for the given medium. It is therefore possible to distinguish between materials based on their attenuation coefficients. However, it should be noted that attenuation is also related to wave frequency: higher frequency waves suffer from increased scattering etc.
\end{document}
Does anyone know a reason for this new error please?

Additionally, as a side comment. The last two times I have updated MikTex new errors have been introduced. The first update broke the lastpage package and this one has further complicated things. Is this common and thus might one recommend simply not updating for a good while?

Thanks!
Last edited by RiW on Sun Sep 12, 2010 10:05 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: "Improper \spacefactor" error after updating hyperref pa

Post by gmedina »

Hi,

I don't use MiKTeX but TeX Live2010 and your example compiles with no errors on my system. Have you tried updating again? (perhaps some packages were broken when you updated but surely the problem has been already solved and a fresh update could help).
1,1,2,3,5,8,13,21,34,55,89,144,233,...
RiW
Posts: 29
Joined: Wed Sep 01, 2010 12:11 am

Re: "Improper \spacefactor" error after updating hyperref pa

Post by RiW »

Thanks!

I've searched for updates and none were found.

I'll try downloading hyperref now and reinstalling...
Last edited by RiW on Sun Sep 12, 2010 7:53 pm, edited 1 time in total.
RiW
Posts: 29
Joined: Wed Sep 01, 2010 12:11 am

Re: "Improper \spacefactor" error after updating hyperref pa

Post by RiW »

Nope, reinstalled using the UK Oxford mirror and encountered the same problem. Does anyone have any other ideas please?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

"Improper \spacefactor" error after updating hyperref packag

Post by localghost »

I can confirm this problem in MiKTeX with the most recent version 6.81j of hyperref. Either send a report to the package maintainers or wait for the next update.


Best regards
Thorsten
RiW
Posts: 29
Joined: Wed Sep 01, 2010 12:11 am

"Improper \spacefactor" error after updating hyperref packag

Post by RiW »

I can confirm this problem in MiKTeX with the most recent version 6.81k of hyperref. Either send a report to the package maintainers or wait for the next update.
Thanks, is it possible to download the old working version? Or is that likely to cause problems with other packages?
RiW
Posts: 29
Joined: Wed Sep 01, 2010 12:11 am

Re: "Improper \spacefactor" error after updating hyperref pa

Post by RiW »

Update: Downloaded a new hyperref package today and it worked fine.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

"Improper \spacefactor" error after updating hyperref packag

Post by localghost »

RiW wrote:Update: Downloaded a new hyperref package today and it worked fine.
The MiKTeX update from 14 September to version 6.81k fixes the problem.
Post Reply