10

I'm having a problem where the line that runs the top length of my square root sign is discontinuous.

\begin{equation}
    N_t(\text{V})=\sqrt{\sum_{i=0}^{n}N_i^2}
\end{equation}

Yields this...Sad broken line

Any ideas what's causing that broken line on the top of my root symbol??

  • 6
    The left part is a character (or characters) from the font, the top part is a rule drawn by TeX, these are specified to be the same width but font hinting and pixel rounding and bad luck can mean that the join shows at some zoom levels. – David Carlisle Apr 1 '14 at 0:35
  • So, am I just out of luck? – slowaudio Apr 1 '14 at 0:55
  • @user2865011 In what sense? You are “out of luck”, but does it matter? As David pointed: “the join shows at some zoom levels”. – Manuel Apr 1 '14 at 1:06
  • Using the old \surd symbol would make the join less obvious. – John Kormylo Apr 1 '14 at 4:52
  • @JohnKormylo why? – David Carlisle Apr 1 '14 at 8:19
1

The idea is to overlay a thicker line over the two joined lines.

overlay

\documentclass{standalone}
\usepackage{mathtools}

\newsavebox{\mybox}
\newlength{\mywidth}
\newlength{\myheight}
\newlength{\myline}
\newlength{\myoffset}
\newcommand{\mysqrt}[1]%
{\setlength{\myline}{.1ex}%
\addtolength{\myline}{.06pt}%
\setlength{\myoffset}{.9em}
\addtolength{\myoffset}{-2pt}
\savebox{\mybox}{$\displaystyle\sqrt{#1}$}%
\settoheight{\myheight}{\usebox{\mybox}}%
\addtolength{\myheight}{-.2ex}
\settowidth{\mywidth}{\usebox{\mybox}}%
\addtolength{\mywidth}{-\myoffset}%
 \rlap{\usebox{\mybox}}\hspace{\myoffset}{\raisebox{\myheight}{\rule{\mywidth}{\myline}}}}

\begin{document}
\begin{minipage}{2in}
\begin{equation*}
\mysqrt{\sum_{k=0}^\infty} \quad {\huge\mysqrt{\sum_{k=0}^\infty}} \quad {\tiny\mysqrt{\sum_{k=0}^\infty}}
\end{equation*}
\end{minipage}
\end{document}
  • This kind of works, but now I get thin->thick line step, for a change. – MightyPork Apr 29 '16 at 16:40
  • So much work for a line! – vvy May 8 '17 at 14:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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