Hallo,
gewöhne dir bitte an, die Code-Umgebung zu nutzen. Durch einfaches reinkopieren werden zusätzliche Leerzeichen eingefügt, so dass ein copy-paste des MB nicht möglich ist. Die Tatsache, dass du aber ein MB hast ist super.
Code:
\setcounter{errorcontextlines}{100}
\documentclass[11pt,twoside]{report}
\usepackage{amsmath}
\usepackage{xstring}
\usepackage{hyperref}
\renewenvironment{subequations}{%
\refstepcounter{equation}%
\def\theparentequation{\thechapter.\arabic{parentequation}}
\setcounter{parentequation}{\value{equation}}%
\setcounter{equation}{0}%
\def\theequation{\theparentequation\alph{equation}}%
\ignorespaces
}{%
\setcounter{equation}{\value{parentequation}}%
\ignorespacesafterend
}
\newcommand{\weiter}{\stepcounter{parentequation}\setcounter{equation}{-1}}
\newcommand{\einF}{\setcounter{equation}{5}}
\newcommand{\einT}{\setcounter{equation}{19}}
\newcommand{\nix}{\setcounter{equation}{-1}}
\makeatletter
\def\@setrefmd#1#2#3{% csname, extract group, refname
\ifx#1\relax
\protect\G@refundefinedtrue
\nfss@text{\reset@font\bfseries ??}%
\@latex@warning{%
Reference `#3' on page \thepage \space undefined%
}%
\else
\expandafter\Hy@setref@linkmd#1\@empty\@empty\@nil{#2}%
\fi
}
\def\Hy@setref@linkmd#1#2#3#4#5#6\@nil#7{%
\begingroup
\toks0={\hyper@@link{#5}{#4}}%
\toks1=\expandafter{#7{\StrGobbleRight{#1}{1}}{#2}{#3}{#4}{#5}}%
\edef\x{\endgroup
\the\toks0 {\the\toks1}%
}%
\x
}
\newcommand{\eqbasis}[1]{%
\Hy@safe@activestrue%
\expandafter\@setrefmd\csname r@#1\endcsname\@firstoffive{#1}%
\Hy@safe@activesfalse%
}
\makeatother
\begin{document}
\setcounter{equation}{10}
\begin{subequations}
\begin{align}
a=b \einF \label{a}\\
b=c \einT \label{b}
\end{align}
\end{subequations}
Punkt fehlt: \eqbasis{b} statt 0.11
\end{document}
Hier meine eigene Widerlegung :-)
Gruß
Marco
Lesezeichen