von localghost » Mi 13. Jul 2011, 10:39
An dieser Stelle hat das ansonsten sehr gute Dokument einen kleinen Mangel. Es müssen ein paar Ergänzungen her, damit es fehlerfrei läuft.
\documentclass[ngerman]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{mathtools}
\newsavebox{\myendhook} % for the tabulars
\makeatletter
\def\tagform@#1{{(\maketag@@@{\ignorespaces#1\unskip\@@italiccorr)}
\makebox[0pt][r]{% after the equation number
\makebox[0.4\textwidth][l]{\usebox{\myendhook}}%
}%
\global\sbox{\myendhook}{}% clear box content
}
}
\makeatother
\begin{document}
\sbox{\myendhook}{%
\begin{footnotesize}%
\begin{tabular}{@{}ll}
$a_0$ & Bohrscher Radius ($\mathrm{= 0{,}53\,\mbox{\AA}}$)\\
$e$ & Elementarladung\\
$N_{si}$ & Anzahl der Siliziumatome\\
& pro Einheitsvolumen\\
$m$ & Atomgewicht\\
$Z$ & Kernladungszahl
\end{tabular}
\end{footnotesize}
}
%
\begin{equation}
\varepsilon=\frac{E\cdot 4\cdot\pi\cdot\varepsilon_{0}
\cdot a_0\cdot\left(Z_i^{\frac{2}{3}}+Z_{Si}^{\frac{2}{3}}
\right)^{-\frac{1}{2}}}{Z_i\cdot Z_{Si}\cdot e2\cdot\left(1+\frac{m_i}{m_{Si}}\right)}\,;
\end{equation}
%
\sbox{\myendhook}{abc}
\begin{equation}
a2+b2=c2
\end{equation}
%
\begin{equation}
z=9
\end{equation}
\end{document}
Aber irgendwie sieht das Ergebnis ganz und gar so aus wie es eigentlich sollte. Ich will gar nicht ausschließen, dass ich da einen Fehler mache. Ich erkenne ihn nur leider nicht.
An dieser Stelle hat das ansonsten sehr gute Dokument einen kleinen Mangel. Es müssen ein paar Ergänzungen her, damit es fehlerfrei läuft.
[code]\documentclass[ngerman]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{mathtools}
\newsavebox{\myendhook} % for the tabulars
\makeatletter
\def\tagform@#1{{(\maketag@@@{\ignorespaces#1\unskip\@@italiccorr)}
\makebox[0pt][r]{% after the equation number
\makebox[0.4\textwidth][l]{\usebox{\myendhook}}%
}%
\global\sbox{\myendhook}{}% clear box content
}
}
\makeatother
\begin{document}
\sbox{\myendhook}{%
\begin{footnotesize}%
\begin{tabular}{@{}ll}
$a_0$ & Bohrscher Radius ($\mathrm{= 0{,}53\,\mbox{\AA}}$)\\
$e$ & Elementarladung\\
$N_{si}$ & Anzahl der Siliziumatome\\
& pro Einheitsvolumen\\
$m$ & Atomgewicht\\
$Z$ & Kernladungszahl
\end{tabular}
\end{footnotesize}
}
%
\begin{equation}
\varepsilon=\frac{E\cdot 4\cdot\pi\cdot\varepsilon_{0}
\cdot a_0\cdot\left(Z_i^{\frac{2}{3}}+Z_{Si}^{\frac{2}{3}}
\right)^{-\frac{1}{2}}}{Z_i\cdot Z_{Si}\cdot e2\cdot\left(1+\frac{m_i}{m_{Si}}\right)}\,;
\end{equation}
%
\sbox{\myendhook}{abc}
\begin{equation}
a2+b2=c2
\end{equation}
%
\begin{equation}
z=9
\end{equation}
\end{document}[/code]
Aber irgendwie sieht das Ergebnis ganz und gar so aus wie es eigentlich sollte. Ich will gar nicht ausschließen, dass ich da einen Fehler mache. Ich erkenne ihn nur leider nicht.