5

This question already has an answer here:

I wish to write a pure-text square root symbol, like √. The purpose is to write an instruction as it is displayed on a simple calculator, i.e. something like √(2+3). I am aware of $\sqrt{}$, but I don't want to use this because with an empty argument, the square root-sign is too low compared to the surrounding text. I could fix the position of the symbol using something like $\sqrt{\color{white}{|}}$ (provided I have xcolor loaded) but the result isn't beautiful.

Is there a command to produce the √-symbol (such as we have \$ for $)? Apparently \√ doesn't exist.

Detexify suggests

  • $\surd$, which is exactly a math-mode square root sign without argument.
  • \textsurd (provided the package textcomp) comes close.

I wonder if there is an exact version of √, i.e. as one can use in other text-editors.

marked as duplicate by Andrew Swann, Sean Allred, Jesse, Masroor, ChrisS Dec 16 '14 at 4:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    Try $\surd$... – Werner Dec 8 '14 at 14:21
  • Try also $\sqrt{\mathstrut}$ or $\sqrt{\vphantom{5}}$ .... – user11232 Dec 8 '14 at 14:28
  • How about any of the above suggestions with \newcommand\textsqrtsymbol{\mbox{$\sqrt{\mathstrut}$}} where $\sqrt{\mathstrut}$ can be replaced by whatever produces the symbol most to your liking. – A.Ellett Dec 8 '14 at 14:29
  • How you can use the symbol in word processing applications is outside the scope of this site. – egreg Dec 8 '14 at 14:30
  • Hmm, perhaps this is a bad question indeed. Shall I delete it? – Schneider Dec 8 '14 at 14:32
3

You can type the character directly if you load inputenc with the option utf8x.

MWE:

\documentclass{article}

\usepackage[utf8x]{inputenc}

\begin{document}

√(2+3)

\end{document} 

Output

enter image description here

  • 1
    Thanks. Is there any reason why one would not want to load inputenc with utf8x, i.e. does it conflict with other features? – Schneider Dec 8 '14 at 21:48

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