8

How would I go about naming a Doxygen @ref tag?

I have tried the following:

See @ref hello_world hello for more information

Which outputs this:

See hello_world hello for more information

Where hello_world is linked to hello_world. I am looking for this output:

See hello for more information

Where hello is linked to hello_world. The documentation for Doxygen only contains information about the LaTeX form of @ref (\ref), and I do not know how to apply that to the JavaDoc style @ref.

How would I go about changing the "text" value of the link?

2
  • From the documentation: nref <name> [”(text)”], so it looks like you missed the quotes: See @ref hello_world "hello for more information". Commented May 4, 2015 at 16:45
  • @albert That's it! @ref hello_world "hello" works. It'd be great if you could post that as an answer. Commented May 4, 2015 at 18:06

1 Answer 1

10

According to the documentation the syntax is: \ref <name> ["(text)"]

Were the [...] signs mean optional.

Hence it looks like you missed the quotes: See @ref hello_world "hello for more information".

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.