In my report I would like to make a glossary for commonly used index that are usually placed in subscripts. This works just fine with the glossaries package - but when I want to improve the document for pdf-reading by adding the hyperref package the sizes and the fonts are changed.
Here a mini example:
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage[pdfborder={0 0 0 0}]{hyperref}\usepackage{glossaries}\makeglossaries\newglossaryentry{u}{name={u},description={some commonly used index}}\newglossaryentry{m}{name=\ensuremath{m}, description={another index}}\begin{document}% outside math mode hyperref doesn't change anything:u \gls{u} m \gls{m}\\% inside math mode the output looks different when hyperlink is used to when it's not$u \gls{u}$ $m \gls{m}$\\$a_u=a_{\gls{u}}\qquad a_{\gls{u}u}$\end{document}
The goal is, that the glossary subscripts should be linked but not visibly different from non-glossary subscripts. So, how can I get the layout to stay the same whether I use the hyperref package or not?
Is this just a problem with my compiler? I'm using TexnicCenter and the glossaries.bat file to compile and I do get the message "couldn't find input index file" but until now this didn't cause any problems.
Or is there a set of options or any other way to achieve that hyperref doesn't change the text formating?
Any help on this would be very much welcome
Best regards
Martin