summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/ednotes/emathtst.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/ednotes/emathtst.tex')
-rw-r--r--Master/texmf-dist/doc/latex/ednotes/emathtst.tex53
1 files changed, 53 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/ednotes/emathtst.tex b/Master/texmf-dist/doc/latex/ednotes/emathtst.tex
new file mode 100644
index 00000000000..527d3602955
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/ednotes/emathtst.tex
@@ -0,0 +1,53 @@
+%% EMathTst.tex for demonstrating EdnMath0.sty.
+%% Uwe L"uck, http://www.contact-ednotes.sty.de.vu, 2005/01/16.
+\documentclass[12pt]{article}
+\def\Anote#1#2{#1} \let\<\relax \let\>\relax
+% \usepackage{ednotes}
+\usepackage[mathrefs]{lineno}
+
+\begin{document}
+
+\begin{linenumbers}
+% \begin{NoNotesToMath}
+\linenumberdisplaymath
+\noindent
+\texttt{\string\ \unskip linelabel} and
+\texttt{\string\ \unskip Anote} in math mode?
+\begin{linenomath}
+$$
+% \begin{displaymath}
+% \begin{equation}
+x=\Anote{z}{$Z$}
+% {\makeatletter \typeout{\meaning\@EN@lemmatag}}
+\linelabel{Hm}
+% \end{equation}
+% \end{displaymath}
+$$
+\end{linenomath}
+% \end{NoNotesToMath}
+$a=\Anote{x\<y\>z}{$b$}
+% {\makeatletter \typeout{\meaning\@EN@lemmatag}}
+\linelabel{Hmm}
+$.
+Why not?
+\begin{NoNotesToMath}
+Line No.~\ref{Hm}.
+\Anote{No \<math\> here.}{Went wrong earlier.}
+% {\makeatletter \typeout{\meaning\@EN@lemmatag}}
+\end{NoNotesToMath}
+Line No.~\ref{Hmm}.
+\end{linenumbers}
+
+% \tracingonline=1
+% \showboxdepth=1
+% \showboxbreadth=30
+% \showlists
+
+% % These really get lost:
+% \linenumbers
+% \mbox{\Anote{Boxed}{where?}.\linelabel{Hu}}
+% Line No.~\ref{Hu}.
+
+\end{document}
+
+