TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a list

\item This is the first post
\item This is the second post

And I want to add hyperlinks to the numberings within a box.

The simplest approach can be using my own numbering (using a counter, or manually)

\boxed{ \href{www.google.com}{1} } This is the first post
\boxed{ \href{www.google.com}{2} } This is the first post

But with this structure, I lost the indentation that "enumerate" presents. How can I preserve the indentation

enter image description here

share|improve this question
With an enumerated environment, you can assign \labels to individual items and cross-reference them elsewhere via \ref statements. And, if hyperref is loaded these cross-references will be made into hyperlink targets automatically. – Mico Aug 18 '13 at 8:08
up vote 1 down vote accepted

If I got your problem right, this works for me:




\item This is the first post
\item[\boxed{\href{www.google.com}{2}}] This is the second post

share|improve this answer

Your Answer


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.