2021-06-01 23:00:21 +02:00
|
|
|
\documentclass{article}
|
|
|
|
\usepackage{luamml-pdf}
|
|
|
|
|
2021-06-03 17:06:01 +02:00
|
|
|
\RegisterFamilyMapping\symsymbols{oms}
|
|
|
|
\RegisterFamilyMapping\symletters{oml}
|
|
|
|
\RegisterFamilyMapping\symlargesymbols{omx}
|
2021-06-01 23:00:21 +02:00
|
|
|
|
|
|
|
\ExplSyntaxOn
|
|
|
|
\cs_set_eq:NN \WriteoutFormula \luamml_pdf_write:
|
|
|
|
\NewDocumentCommand\AnnotateFormula{ o m m }{%
|
|
|
|
\IfValueTF{#1}{%
|
2021-06-26 19:49:28 +02:00
|
|
|
\luamml_annotate:nen{#1}%
|
2021-06-01 23:00:21 +02:00
|
|
|
}{
|
2021-06-26 19:49:28 +02:00
|
|
|
\luamml_annotate:en
|
2021-06-01 23:00:21 +02:00
|
|
|
}{#2}{#3}
|
|
|
|
}
|
|
|
|
\ExplSyntaxOff
|
|
|
|
|
2021-06-03 17:28:22 +02:00
|
|
|
\protected\edef\models{\AnnotateFormula{%
|
2021-06-01 23:17:29 +02:00
|
|
|
nucleus = true, core = {[0] = 'mi', '\noexpand\string\noexpand\u{22a7}'},
|
|
|
|
}{\unexpanded\expandafter{\models}}}
|
|
|
|
|
2021-06-01 23:00:21 +02:00
|
|
|
\begin{document}
|
|
|
|
\[
|
|
|
|
\emptyset\models((p\Rightarrow q)\Rightarrow(q\Rightarrow r))\Rightarrow (p\Rightarrow (q\Rightarrow r))
|
|
|
|
\WriteoutFormula
|
|
|
|
\]
|
|
|
|
|
|
|
|
%\begin{align}
|
|
|
|
% abc&=def & e^{\mathrm{i}\pi}&=-1\\
|
|
|
|
% \Big(1+2&=3\Big)\\
|
|
|
|
% &4\\
|
|
|
|
% 5
|
|
|
|
%\end{align}
|
|
|
|
|
|
|
|
Es gilt $\sin(x)-\sin(x+2\pi)=0\WriteoutFormula$.
|
|
|
|
\end{document}
|
|
|
|
|