I just saw a post on a french Facebook LaTeX group saying this:
When using the french decimal separator (comma), the space between the number inside the radical is reduced.
The proposed MWE is (integer, english decimal, french decimal):
\documentclass{standalone}
\begin{document}
$\sqrt{1}, \sqrt{1.1}, \sqrt{1,1}$
\end{document}
which renders:
The problem seems to come from the height of the comma itself and the radical to not stretch as much as visually expected.
Three actions were proposed in the discussion:
- use of
\usepackage[locale=FR]{siunitx}
and\num{1.1}
- use of
{,}
as separator - use of
\displaystyle
Actions 1 and 2 doesn't change anything to the radical height problem but they do have the advantage of reducing the extra space after the comma, which was not the purpose of the question at first, but still of interest.
Action 3 actually solves it. 1 and 2, again, correct the horizontal extra space after the comma.
And the code for it:
\documentclass{article}
\usepackage[locale=FR]{siunitx}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{@{}llllll@{}}
\toprule
& integer & English & French & \{,\} & siunitx \\ \midrule
inline & $\sqrt{1}$ & $\sqrt{1.1}$ & $\sqrt{1,1}$ & $\sqrt{1{,}1}$ & $\sqrt{\num{1.1}}$ \\ \midrule
displaystyle & $\displaystyle{\sqrt{1}}$ & $\displaystyle{\sqrt{1.1}}$ & $\displaystyle{\sqrt{1,1}}$ & $\displaystyle{\sqrt{1{,}1}}$ & $\displaystyle{\sqrt{\num{1.1}}}$ \\ \bottomrule
\end{tabular}
\end{document}
Now I wonder: is there a way to have the proper radical height without using \displaystyle
?