I use \url{} for linking whatever necessary, and it's pretty useful. The problem is that if the link is long, it's pretty ugly.
Is there any equivalent of <a href="goody">A</a> in LaTeX? I mean, even though I show 'A' in pdf file, the user can click it to visit "goody".
Text Formatting ⇒ <a href> equivalent in TeX?
<a href> equivalent in TeX?
Last edited by csmgroup on Tue Jul 20, 2010 1:44 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

<a href> equivalent in TeX?
Hi,
try the \href command from the hyperref package. A little example:
try the \href command from the hyperref package. A little example:
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage[breaklinks=true]{hyperref}\begin{document}\href{http://www.latex-community.org/}{L-C}\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
<a href> equivalent in TeX?
An according command is described in Section 4 (Additional user macros, p. 12ff) of the hyperref manual.
Thorsten
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: <a href> equivalent in TeX?
The hyperref package provides the command \href{URL}{text}.
EDIT: Ouch. Double ninja-ed.
EDIT: Ouch. Double ninja-ed.
Re: <a href> equivalent in TeX?
\href{}{} works fine with me. Thanks a lot.