# Place square bracket around a cross-reference

Is possible to instruct LaTeX to surround all cross-references with square brackets? For example when I write a command like some text \ref{some label} then when compiled I would like the output to be some text [12] without manually placing square brackets in the LaTeX input, as though I had entered some text [\ref{some label}].

• Welcome to TeX.SE. Do you want all cross-references to be surrounded by square brackets? Or just selected ones? And, do you load any cross-referencing packages (such as as varioref, hyperref, and cleveref)? – Mico Jul 3 '18 at 5:58