GeneralLine under the sqrt's index

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Neo_Prando
Posts: 1
Joined: Mon Feb 06, 2023 11:24 am

Line under the sqrt's index

Post by Neo_Prando »

Hi, I've just joined this beautiful forum and I have a question for you.
I'm a LaTeX's beginner and I want to modify how the \sqrt[] {} command is displayed adding a line under the root's index. My problem is this: when it is too long (like this: \(\sqrt[a long index 123456789] {some argument} \)) it just float above the blanck but to write complex formulas I need this line for a clearer reading.
I know I could write it using powers and a fraction as index, but I'd like to obtain it whit radicals.
Thank you all.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
MjK
Posts: 89
Joined: Fri Jan 28, 2022 6:09 pm

Line under the sqrt's index

Post by MjK »

You could use hacks like:

Code: Select all

\documentclass{article}

\usepackage{mathtools}

\begin{document}
\[ \sqrt[\leftroot{5}\uproot{2}\underline{a long index 123456789}] {some argument} \]
\end{document}
or draw the square root yourself using TikZ.
My main topics are KOMA-Script and other questions related to my packages. If I reply to any other topic or if you've not yet added a minimal working example, please do not expect any further response. And please don't forget to tag examples as code.
Post Reply