summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ednotes/emathtst.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/ednotes/emathtst.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/ednotes/emathtst.tex')
-rw-r--r--macros/latex/contrib/ednotes/emathtst.tex53
1 files changed, 53 insertions, 0 deletions
diff --git a/macros/latex/contrib/ednotes/emathtst.tex b/macros/latex/contrib/ednotes/emathtst.tex
new file mode 100644
index 0000000000..527d360295
--- /dev/null
+++ b/macros/latex/contrib/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}
+
+