# How to disable leading space from hyperref?

I defined the following command:

\newcommand{\reqWVSDataSource}[0]{
\hyperref[req:wvsDataSource]{\textit{Req01}}}


If I use it like this:

(\reqWVSDataSource)


hyperref adds a leading space. Thus the result is "( Req01)" instead of "(Req01)".

How can I disable this leading space?

Thanks!

-

## 1 Answer

Try the following (note the "%" at the end of the first line):

\newcommand{\reqWVSDataSource}[0]{%
\hyperref[req:wvsDataSource]{\textit{Req01}}}


EDIT: For an explanation see this entry in the UK TeX FAQ.

EDIT2: As your new command takes no argument, the optional count argument [0] in the definition may be omitted.

-
Thanks a lot! It works :-) – Lars Schneider Nov 29 '10 at 17:52