summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/ednotes/emathtst.tex
blob: 527d3602955280d870be8414851e07aa827c1a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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}