diff --git a/jrpie-yaref.sty b/jrpie-yaref.sty index d7cad52..d7347cd 100644 --- a/jrpie-yaref.sty +++ b/jrpie-yaref.sty @@ -3,6 +3,7 @@ \RequirePackage{hyperref} \RequirePackage{amstext} +\RequirePackage{xspace} \newcommand{\yaref@text@large}[1]{% \ifcsname yaref@longlabel@#1\endcsname% @@ -44,14 +45,14 @@ {\yaref@math@small{#1}} % script style {\yaref@math@verysmall{#1}} % scriptscript style \else% - \yaref@text@large{#1}% + \yaref@text@large{#1}\xspace% \fi% } % Force a small reference \newcommand{\yarefs}[1]{% \relax\ifmmode% - \yaref@math@verysmall{#1} % scriptscript style + \yaref@math@verysmall{#1}% scriptscript style \else% - \yaref@text@small{#1} % + \yaref@text@small{#1}\xspace% \fi% }