izuzak / atom-pdf-view

Support for viewing PDF files in Atom.
https://atom.io/packages/pdf-view
MIT License
108 stars 30 forks source link

LaTeX math widehat displays offset #234

Open StHante opened 4 years ago

StHante commented 4 years ago

I use Atom with atom-pdf-view to write LaTeX code. I frequently use the \widehat command in math mode to add a wide hat over a variable. Consider the minimal example

\documentclass{article}

\begin{document}

$\widehat{v}$

\end{document}

which pdf-view displays as

image

In other viewers, the hat is correctly displayed exactly over the variable v. Other similar things, like \widetilde seem to get displayed correctly.

I know this is a pretty specific bug, but maybe fixing it will solve other displaying errors such as #131

aronWmn commented 3 years ago

I'm having the same issue (Feb 2021). Curiously, it is resolved by running XeLaTeX rather than the pdflatex or lualatex engines. I'm using the packlage latex 0.50.2 (https://github.com/thomasjo/atom-latex).