Quantcast
Channel: Active questions tagged mathtools - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 122

Is that extra empty space below the `\xRightarrow`?

$
0
0

As I was browsing this excellent solution, it seemed that there exist extra empty space below the arrow:

result

Is this a small bug or feature designed intentionally? Or is that elegant method to balance these two space's height?

Here below is my test code:

\documentclass{article}\usepackage{mathtools}\begin{document}case1: $\xRightarrow[aeiou]{aeiou}$case2: $\xRightarrow[aeiou]{pqgqp}$case3: $\xRightarrow[hbdlf]{aeiou}$case4: $\xRightarrow[hbdlf]{pqgqp}$case5: $\xRightarrow[ABCDE]{FGHIJ}$\end{document}

add capital letters


Edited according to egreg's answer:

As egreg figured out that this issues is "font-specific", with fourier, the \xRightarrow would be vertically centered better(but still not exactly...) However, the = is still not centered.

result

Now I still wonder what is the best practice to tune the "below"part's height(mainly focus on the default Computer Modern Math/ with unicode-math's Latin Modern Math)?

\documentclass{article}\usepackage{mathtools}\usepackage{graphicx}\newcommand*\myxRightarrow[2][]{%    \xRightarrow[\raisebox{4pt}{\scalebox{.65}{{$#1$}}}]{#2}}%\begin{document}case1: $\xRightarrow[aeiou]{aeiou}$ \quad $\myxRightarrow[aeiou]{aeiou}$case2: $\xRightarrow[aeiou]{pqgqp}$case3: $\xRightarrow[hbdlf]{aeiou}$case4: $\xRightarrow[hbdlf]{pqgqp}$case5: $\xRightarrow[ABCDE]{FGHIJ}$\end{document}

result...


Viewing all articles
Browse latest Browse all 122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>