Math & Science ⇒ Higher position of indexes with double underlining
Higher position of indexes with double underlining
is there a way to lift the indexes a bit up when the are put right next to a double underlined symbol?
- Attachments
-
- double-underline-index.tex
- (297 Bytes) Downloaded 268 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Higher position of indexes with double underlining
Code: Select all
\newcommand{\uli}[1]{\smash{\underline{#1}}}
\newcommand{\dund}[1]{\smash{\underline{\underline{#1}}}}
Personally, I prefer to use the \uuline command from the ulem package for double underlining, and then you could use:
Code: Select all
\usepackage[normalem]{ulem}
\newcommand{\uli}[1]{\smash{\underline{#1}}}
\newcommand{\dund}[1]{\smash{\uuline{#1}}}
If, however, you like the lowering of the script for the single-underlining, but only wanted it lowered the same amount for double overlining, then it gets a little more complicated, e.g. (without ulem):
Code: Select all
\newcommand{\uli}[1]{\underline{#1}}
\newcommand{\dund}[1]{{\smash{\underline{\underline{#1}}}\vphantom{\underline{#1}}}}
Or with ulem:
Code: Select all
\usepackage[normalem]{ulem}
\newcommand{\uli}[1]{\underline{#1}}
\newcommand{\dund}[1]{{\smash{\uuline{#1}}\vphantom{\underline{#1}}}}
Re: Higher position of indexes with double underlining
Out of curiousity, why do you prefer ulem's \uuline?