\overrightarrow not giving nice result

61 views
Skip to first unread message

Juan Carlos Bustamante

unread,
Aug 25, 2021, 2:45:27 PM8/25/21
to PreTeXt support

Hello to everyone,

I would like to know if there is something to have arrows on top of vectors that do not imply a larger interline space. See the figure below. It I was writing a purely latex document I would use the esvect package. Including it does not give the results I would like, though.

The .html output is not very nice, but the .pdf output is definitely ugly.

Any suggestion?

Thanks in advance


JC


Alex Jordan

unread,
Aug 25, 2021, 3:01:28 PM8/25/21
to pretext...@googlegroups.com
I think the actual interline space is not affected, but the line with the tall math is just a taller line giving the appearance of more interline space.

You could wrap the math in `\smash{}` (which seems to work in LaTeX and MathJax). That artificially makes it be height 0, so it won't contribute to a taller line. However, you may find that math content from one line is encroaching too much onto/over an adjacent line.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pretext-support/10804ac0-49ec-9b56-a297-48b680a56f56%40gmail.com.

Juan Carlos Bustamante

unread,
Aug 25, 2021, 3:13:30 PM8/25/21
to pretext...@googlegroups.com

Hi Alex,

You are right, \smashing is not a good option.

Thanks anyways, and any other suggestion is welcome!

JC

Michael Doob

unread,
Aug 29, 2021, 2:30:04 PM8/29/21
to PreTeXt support
I've been hesitant to suggest using \vec for the arrow since I personally feel that
it is not the best option, but if you want to try it  ...

Juan Carlos Bustamante

unread,
May 28, 2022, 1:42:09 PM5/28/22
to PreTeXt support
Hi all,
Right Michael, \vec does not a good job. What is the problem with esvect?  Also, this thread : https://tex.stackexchange.com/questions/114321/extensible-vec-instead-of-overrightarrow gives some other latex solutions, none of which works with pretext. Is this a MathJax issue? How come there are lots of web pages here and there with vectors and arrows on top of them done nivcely?

Kind regards,
JC

Michael Doob

unread,
May 29, 2022, 11:12:41 AM5/29/22
to PreTeXt support
The esvect package is quite old and uses metafont to generate arrowheads.
In the process there are tfm files generated that are needed for the typesetting.
Mathjax doesn't know about them and so can't proceed. 

Juan Carlos Bustamante

unread,
Aug 18, 2025, 3:04:15 PMAug 18
to PreTeXt support
Hello,

Is there something new on this one? 

JC

Rob Beezer

unread,
Aug 19, 2025, 12:14:20 PMAug 19
to pretext...@googlegroups.com
On 8/18/25 12:04, Juan Carlos Bustamante wrote:
> Is there something new on this one?

What are you expecting us to do? This is LaTeX syntax, interpreted by LaTeX
itself for a PDF and by MathJax for HTML. The design and maintenace of those
projects is not part of this project.

If I can marshal all the right people, we could move to MathJax 4, where maybe
you will like the look better? Have you tried toe string parameter that allows
you to experiment with version 4? See the GitHub issue where I think it is
detailed or search old threads here or on -dev.

Rob

Juan Carlos Bustamante

unread,
Aug 20, 2025, 10:12:51 AMAug 20
to PreTeXt support
Hello,

Sorry, I was just wondering, since that was an old issue and things tend to move fast. Will try to dig a bit.

JC
Reply all
Reply to author
Forward
0 new messages