Re: mathtools (showonlyrefs) und autoref funktionieren nicht immer

Martin Sievers <[email protected]>
Newsgroups gmane.comp.tex.german
Message-ID <[email protected]>
Am 10.11.23 um 10:57 schrieb Uwe Brauer (via tex-d-l Mailing List):
> 
> Hallo
> 
> Ich bin jetzt dazu übergegangen \eqref durch \autoref zu ersetzen
> (cleverref wäre noch eine Alternative, funktioniert aber garantiert
> nicht mit mathtools, sondern mit autonum, aber auch nicht ganz
> fehlerfrei).
> 
> Wie dem auch sei, jetzt bereitet mir auch autoref mit mathtools probleme
> wie das angefügte minimal Beispiel zeigt, die Gleichung wird im pdf
> Dokument als section 1 dargestellt, was falsch ist.
> (TL 2023)
> Weiß jemand Rat?

Hallo Uwe,

schau mal hier: 
https://www.mrunix.de/forums/showthread.php?77140-Mathtools-quot-showonlyrefs-quot-mit-autoref-kompatibel-machen

Das dort empfohlene

\usepackage{xpatch}
\makeatletter
\xpretocmd\HyRef@autoref{\noeqref{#2}\unskip}{}{}% kleiner Hack
\makeatother

funktioniert bei mir.

Herzliche Grüße
Martin

-- 
FAQ: http://texfragen.de/
Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.