Menu

#2422 Log confused by mathtools and unicode-math (links to wrong file)

open
nobody
None
1
2019-02-27
2019-02-27
Anonymous
No

When using both mathtools and unicode-math, TeXstudio can get confused as to in which file an issue has occured. See the MWE below. At a guess, unicode-math's use of 'AtBeginDocument' is what confuses TeXstudio.

Tested with TeXstudio 2.12.14 and TexLive 2018 on Windows 10 (compiling with both XeTeX and LuaTeX). For comparison, Texmaker doesn't exhibit this issue and always correctly links to line 7 in the MWE.

\documentclass[12pt,a4paper]{report}

\usepackage{mathtools, unicode-math}        % Requires XeTeX or LuaTeX

\begin{document}

This paragraph is incorrectly terminated, causing an underfull hbox.\\

The error is on line 7 of this document, however TeXstudio's log incorrectly lists this as being line 7 of some other file, e.g. unicode-math-luatex.sty (if I compile with LuaTeX), and clicking on the log entry will take you to line 7 of this incorrect file. Despite this error being caused by mathtools and unicode-math both being loaded, the error can be reproduced such that the log links to any file (e.g. a blank user-created file), not just a unicode-math style file (as in this example).

\end{document}

Discussion


Log in to post a comment.