Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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!

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

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.

share|improve this answer
    
Thanks a lot! It works :-) –  Lars Schneider Nov 29 '10 at 17:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.