(Having investigated the original question, I'm taking the liberty of re-writing it as I've found a MWE and so isolated the problem, but I don't know a solution. Andrew Stacey.)
The scenario is as follows: a LaTeX document uses hyperref and, for some reason, has references as subscripts in some equation. When compiling to PDF, these are the correct size. When compiling to DVI, they come out normal size. They are still typeset in mathematics mode, just not in the right size. Here's a MWE. I'm using roman labels to better show that they are typeset in mathematics.
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\begin{enumerate}
\renewcommand{\theenumi}{\roman{enumi}}
\item \label{ab} First
\item \label{cd} Second
\end{enumerate}
\[
M_{\ref{ab}} + M_i + M_{\mathrm{i}} + N_{\ref{cd}} + N_{ii} + N_{\mathrm{ii}}
\]
\end{document}
This is from the DVI:
This is from the PDF:
This would appear to be a bug in the hdvips
driver and so the obvious answer is to fix this. However, the difficulty with that is that the problem was spotted with an upload to the arXiv which, according to the logs, uses TL2009. (The document above still exhibits the fault with TL2011, by the way.) So the questions:
- Is there some way to fix this from within the main document?
- If not, and the driver needs fixing, is there a simple fix, and how could that be applied to a file uploaded to the arXiv without getting the arXiv to do anything? (For those who don't know how the arXiv works, it is possible to upload auxilliary files with the submission.)
As this is a major rewrite of the question, the original question now follows.
When I compile my LaTeX, the size of all subscripts are smaller than the normal size of text (including reference subscripts), as expected.
However, when the arXiv compiles my LaTeX, reference subscripts are the same size as normal text.
When the subscript is not also a reference, the correct font size is used.
I include
- \usepackage{subfig}
- \usepackage{graphicx}
- \usepackage{hyperref}
- \usepackage{tikz}
- \usetikzlibrary{arrows,backgrounds,calc,fit}
- \usepackage{multirow}
- \usepackage{tyson.sty} % my personal style file
while the packages included by the arXiv LaTeX can be found in their log file from compiling my LaTeX.
Question: How can I force the arXiv to typeset reference subscripts in the correct font size?