diff options
Diffstat (limited to 'macros/latex/contrib/stex/example/background')
-rw-r--r-- | macros/latex/contrib/stex/example/background/Makefile | 9 | ||||
-rw-r--r-- | macros/latex/contrib/stex/example/background/all.pdf | bin | 0 -> 57294 bytes | |||
-rw-r--r-- | macros/latex/contrib/stex/example/background/all.tex | 12 | ||||
-rw-r--r-- | macros/latex/contrib/stex/example/background/functions.omdoc | 187 | ||||
-rw-r--r-- | macros/latex/contrib/stex/example/background/functions.pdf | bin | 0 -> 48605 bytes | |||
-rw-r--r-- | macros/latex/contrib/stex/example/background/functions.tex | 22 | ||||
-rw-r--r-- | macros/latex/contrib/stex/example/background/post.tex | 1 | ||||
-rw-r--r-- | macros/latex/contrib/stex/example/background/pre.tex | 8 | ||||
-rw-r--r-- | macros/latex/contrib/stex/example/background/reals.pdf | bin | 0 -> 53143 bytes | |||
-rw-r--r-- | macros/latex/contrib/stex/example/background/reals.tex | 20 |
10 files changed, 259 insertions, 0 deletions
diff --git a/macros/latex/contrib/stex/example/background/Makefile b/macros/latex/contrib/stex/example/background/Makefile new file mode 100644 index 0000000000..67b4dc3d18 --- /dev/null +++ b/macros/latex/contrib/stex/example/background/Makefile @@ -0,0 +1,9 @@ +STEXDIR = ../.. +TARGET = all.tex +BUTFILES = pre.tex post.tex +MODSLIBDIR = . +BIBINPUTS = $(PREFIX)/lib/bib: + +include $(STEXDIR)/lib/make/Makefile.vars +all: pdf mpdf +include $(STEXDIR)/lib/make/Makefile.in diff --git a/macros/latex/contrib/stex/example/background/all.pdf b/macros/latex/contrib/stex/example/background/all.pdf Binary files differnew file mode 100644 index 0000000000..debf135663 --- /dev/null +++ b/macros/latex/contrib/stex/example/background/all.pdf diff --git a/macros/latex/contrib/stex/example/background/all.tex b/macros/latex/contrib/stex/example/background/all.tex new file mode 100644 index 0000000000..27df61d1e6 --- /dev/null +++ b/macros/latex/contrib/stex/example/background/all.tex @@ -0,0 +1,12 @@ +\documentclass{omdoc} +\usepackage{stex} +\usepackage{hyperref,amssymb} +\defpath{backmods}{../background} +\begin{document} +\input{functions} +\input{reals} +\end{document} +%%% Local Variables: +%%% mode: LaTeX +%%% TeX-master: t +%%% End: diff --git a/macros/latex/contrib/stex/example/background/functions.omdoc b/macros/latex/contrib/stex/example/background/functions.omdoc new file mode 100644 index 0000000000..72adb2e3b2 --- /dev/null +++ b/macros/latex/contrib/stex/example/background/functions.omdoc @@ -0,0 +1,187 @@ +<?xml version="1.0"?> +<!--This OMDoc document is generated from an sTeX-encoded one via LaTeXML, you + may want to reconsider editing it.--> +<omdoc xmlns:omdoc="http://omdoc.org/ns" xmlns="http://omdoc.org/ns" xmlns:stex="http://kwarc.info/ns/sTeX" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:om="http://www.openmath.org/OpenMath" xmlns:m="http://www.w3.org/1998/Math/MathML" xml:id="omdoc1" about="#omdoc1" stex:srcref="Literal String \documentc#textrange(from=1;0,to=0;0)"> + <omdoc:omgroup layout="sectioning" xml:id="sec.functions" about="#sec.functions" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=1;0,to=18;13)"> + <omdoc:metadata xml:id="sec.functions.metadata1" about="#sec.functions.metadata1" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=1;0,to=18;13)"> + <dc:title xml:id="sec.functions.metadata1.title1" about="#sec.functions.metadata1.title1" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=1;0,to=18;13)">Functions</dc:title> + </omdoc:metadata> + <omdoc:theory xml:id="functions" about="#functions" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=2;0,to=17;12)"> + <omdoc:symbol name="cart" xml:id="functions.symbol1" about="#functions.symbol1" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=3;0,to=3;55)"/> + <omdoc:notation cd="functions" name="cart" stex:macro_name="cart" stex:nargs="1" xml:id="functions.notation2" about="#functions.notation2" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=3;0,to=3;55)"> + <omdoc:prototype> + <om:OMA> + <om:OMS cd="functions" cr="fun" name="cart"/> + <omdoc:exprlist name="args"> + <omdoc:expr name="arg"/> + </omdoc:exprlist> + </om:OMA> + </omdoc:prototype> + <omdoc:rendering precedence="500"> + <omdoc:iterate name="args"> + <omdoc:separator> + <m:mo cr="fun">×</m:mo> + </omdoc:separator> + <omdoc:render name="arg"/> + </omdoc:iterate> + </omdoc:rendering> + </omdoc:notation> + <omdoc:symbol name="fun" xml:id="functions.symbol3" about="#functions.symbol3" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=4;0,to=4;71)"/> + <omdoc:notation cd="functions" name="fun" stex:macro_name="fun" stex:nargs="3" xml:id="functions.notation4" about="#functions.notation4" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=4;0,to=4;71)"> + <omdoc:prototype> + <om:OMA> + <om:OMS cd="functions" cr="fun" name="fun"/> + <omdoc:expr name="arg1"/> + <omdoc:expr name="arg2"/> + <omdoc:expr name="arg3"/> + </om:OMA> + </omdoc:prototype> + <omdoc:rendering precedence="200"> + <omdoc:render name="arg1" precedence="200"/> + <m:mo cr="fun">:</m:mo> + <omdoc:render name="arg2" precedence="200"/> + <m:mo cr="fun">→</m:mo> + <omdoc:render name="arg3" precedence="200"/> + </omdoc:rendering> + </omdoc:notation> + <omdoc:symbol name="inset" xml:id="functions.symbol5" about="#functions.symbol5" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=5;0,to=5;45)"/> + <omdoc:notation cd="functions" name="inset" stex:macro_name="inset" stex:nargs="2" xml:id="functions.notation6" about="#functions.notation6" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=5;0,to=5;45)"> + <omdoc:prototype> + <om:OMA> + <om:OMS cd="functions" cr="fun" name="inset"/> + <omdoc:expr name="arg1"/> + <omdoc:expr name="arg2"/> + </om:OMA> + </omdoc:prototype> + <omdoc:rendering precedence="650"> + <omdoc:render name="arg1" precedence="650"/> + <m:mo cr="fun">∈</m:mo> + <omdoc:render name="arg2" precedence="650"/> + </omdoc:rendering> + </omdoc:notation> + <omdoc:symbol name="sseteq" xml:id="functions.symbol7" about="#functions.symbol7" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=6;0,to=6;41)"/> + <omdoc:notation cd="functions" name="sseteq" stex:macro_name="sseteqOp" stex:nargs="0" xml:id="functions.notation8" about="#functions.notation8" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=6;0,to=6;41)"> + <omdoc:prototype> + <om:OMS cd="functions" name="sseteq"/> + </omdoc:prototype> + <omdoc:rendering> + <m:mo>⊆</m:mo> + </omdoc:rendering> + </omdoc:notation> + <omdoc:symbol name="sseteq" xml:id="functions.symbol9" about="#functions.symbol9" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=7;0,to=7;50)"/> + <omdoc:notation cd="functions" name="sseteq" stex:macro_name="sseteq" stex:nargs="2" xml:id="functions.notation10" about="#functions.notation10" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=7;0,to=7;50)"> + <omdoc:prototype> + <om:OMA> + <om:OMS cd="functions" cr="fun" name="sseteq"/> + <omdoc:expr name="arg1"/> + <omdoc:expr name="arg2"/> + </om:OMA> + </omdoc:prototype> + <omdoc:rendering precedence="300"> + <omdoc:render name="arg1" precedence="300"/> + <m:mo cr="fun">⊆</m:mo> + <omdoc:render name="arg2" precedence="300"/> + </omdoc:rendering> + </omdoc:notation> + <omdoc:symbol name="tup" xml:id="functions.symbol11" about="#functions.symbol11" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=8;0,to=8;33)"/> + <omdoc:notation cd="functions" name="tup" stex:macro_name="tup" stex:nargs="1" xml:id="functions.notation12" about="#functions.notation12" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=8;0,to=8;33)"> + <omdoc:prototype> + <om:OMA> + <om:OMS cd="functions" cr="fun" name="tup"/> + <omdoc:expr name="arg1"/> + </om:OMA> + </omdoc:prototype> + <omdoc:rendering> + <m:mrow> + <m:mo stretchy="false">⟨</m:mo> + <omdoc:render name="arg1"/> + <m:mo stretchy="false">⟩</m:mo> + </m:mrow> + </omdoc:rendering> + </omdoc:notation> + <omdoc:notation cd="functions" name="cart" stex:macro_name="cart" stex:nargs="1" xml:id="functions.notation13" about="#functions.notation13" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=9;0,to=9;34)"> + <omdoc:prototype> + <om:OMA> + <om:OMS cd="functions" cr="fun" name="cart"/> + <omdoc:expr name="arg1"/> + </om:OMA> + </omdoc:prototype> + <omdoc:rendering> + <omdoc:iterate name="args"> + <omdoc:separator> + <m:mo cr="fun">×</m:mo> + </omdoc:separator> + <omdoc:render name="arg"/> + </omdoc:iterate> + </omdoc:rendering> + </omdoc:notation> + <omdoc:symbol name="setdiff" xml:id="functions.symbol14" about="#functions.symbol14" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=10;0,to=10;44)"/> + <omdoc:notation cd="functions" name="setdiff" stex:macro_name="setdiffOp" stex:nargs="0" xml:id="functions.notation15" about="#functions.notation15" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=10;0,to=10;44)"> + <omdoc:prototype> + <om:OMS cd="functions" name="setdiff"/> + </omdoc:prototype> + <omdoc:rendering> + <m:mo>\</m:mo> + </omdoc:rendering> + </omdoc:notation> + <omdoc:symbol name="setdiff" xml:id="functions.symbol16" about="#functions.symbol16" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=11;0,to=11;59)"/> + <omdoc:notation cd="functions" name="setdiff" stex:macro_name="setdiff" stex:nargs="2" xml:id="functions.notation17" about="#functions.notation17" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=11;0,to=11;59)"> + <omdoc:prototype> + <om:OMA> + <om:OMS cd="functions" cr="fun" name="setdiff"/> + <omdoc:expr name="arg1"/> + <omdoc:expr name="arg2"/> + </om:OMA> + </omdoc:prototype> + <omdoc:rendering precedence="600"> + <omdoc:render name="arg1" precedence="600"/> + <m:mo cr="fun">\</m:mo> + <omdoc:render name="arg2" precedence="600"/> + </omdoc:rendering> + </omdoc:notation> + <omdoc:symbol name="set" xml:id="functions.symbol18" about="#functions.symbol18" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=12;0,to=12;62)"/> + <omdoc:notation cd="functions" name="set" stex:macro_name="set" stex:nargs="1" xml:id="functions.notation19" about="#functions.notation19" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=12;0,to=12;62)"> + <omdoc:prototype> + <om:OMA> + <om:OMS cd="functions" cr="fun" name="set"/> + <omdoc:exprlist name="args"> + <omdoc:expr name="arg"/> + </omdoc:exprlist> + </om:OMA> + </omdoc:prototype> + <omdoc:rendering> + <m:mo cr="fun">{</m:mo> + <omdoc:iterate name="args" precedence="neginfty"> + <omdoc:separator> + <m:mo cr="fun">,</m:mo> + </omdoc:separator> + <omdoc:render name="arg" precedence="neginfty"/> + </omdoc:iterate> + <m:mo cr="fun">}</m:mo> + </omdoc:rendering> + </omdoc:notation> + <omdoc:symbol name="setst" xml:id="functions.symbol20" about="#functions.symbol20" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=13;0,to=13;66)"/> + <omdoc:notation cd="functions" name="setst" stex:macro_name="setst" stex:nargs="2" xml:id="functions.notation21" about="#functions.notation21" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=13;0,to=13;66)"> + <omdoc:prototype> + <om:OMA> + <om:OMS cd="functions" cr="fun" name="setst"/> + <omdoc:expr name="arg1"/> + <omdoc:expr name="arg2"/> + </om:OMA> + </omdoc:prototype> + <omdoc:rendering> + <m:mo cr="fun">{</m:mo> + <omdoc:render name="arg1" precedence="neginfty"/> + <m:mo cr="fun">∣</m:mo> + <omdoc:render name="arg2" precedence="neginfty"/> + <m:mo cr="fun">}</m:mo> + </omdoc:rendering> + </omdoc:notation> + <omdoc:symbol name="function" xml:id="function.def.sym" about="#function.def.sym" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=14;0,to=16;16)"/> + <omdoc:definition for="function" xml:id="functions.def" about="#functions.def" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=14;0,to=16;16)"> + <omdoc:CMP xml:id="functions.def.CMP1" about="#functions.def.CMP1" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=14;0,to=14;36)"> +<p xmlns="http://www.w3.org/1999/xhtml" id="functions.def.CMP1.p1" class="ltx_p" about="#functions.def.CMP1.p1" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=14;0,to=14;36)">A <omdoc:term cd="functions" name="function" role="definiendum" xml:id="functions.def.CMP1.p1.term1" about="#functions.def.CMP1.p1.term1" stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=14;67,to=15;20)">function</omdoc:term> <om:OMOBJ stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=14;61,to=15;32)"><om:OMA><om:OMS cd="functions" name="fun"/><om:OMV name="𝑓"/><om:OMV name="𝐴"/><om:OMV name="𝐵"/></om:OMA></om:OMOBJ> is a left-total, right-unique relation in <om:OMOBJ stex:srcref="/Users/kohlhase/localmh/ext/sTeX/example/background/functions.tex#textrange(from=14;6,to=15;87)"><om:OMA><om:OMS cd="functions" name="cart"/><om:OMV name="𝐴"/><om:OMV name="𝐵"/></om:OMA></om:OMOBJ></p></omdoc:CMP> + </omdoc:definition> + </omdoc:theory> + </omdoc:omgroup> +</omdoc> diff --git a/macros/latex/contrib/stex/example/background/functions.pdf b/macros/latex/contrib/stex/example/background/functions.pdf Binary files differnew file mode 100644 index 0000000000..50567084b3 --- /dev/null +++ b/macros/latex/contrib/stex/example/background/functions.pdf diff --git a/macros/latex/contrib/stex/example/background/functions.tex b/macros/latex/contrib/stex/example/background/functions.tex new file mode 100644 index 0000000000..d4ac497685 --- /dev/null +++ b/macros/latex/contrib/stex/example/background/functions.tex @@ -0,0 +1,22 @@ +\begin{omgroup}[id=sec.functions,creators=miko]{Functions} +\begin{module}[id=functions] +\symdef[assocarg=1]{cart}[1]{\assoc[p=500]{\times}{#1}} +\symdef{fun}[3]{\mixfixiii[p=200]{}{#1}{\colon}{#2}{\rightarrow}{#3}{}} +\symdef{inset}[2]{\infix[p=650]{\in}{#1}{#2}} +\symdef[name=sseteq]{sseteqOp}{\subseteq} +\symdef{sseteq}[2]{\infix[p=300]\sseteqOp{#1}{#2}} +\symdef{tup}[1]{\langle#1\rangle} +\symdef{cart}[1]{\assoc\times{#1}} +\symdef[name=setdiff]{setdiffOp}{\backslash} +\symdef{setdiff}[2]{\mixfixii[p=600]{}{#1}\setdiffOp{#2}{}} +\symdef[assocarg=1]{set}[1]{\mixfixa[nobrackets]{\{}{#1}{\}},} +\symdef{setst}[2]{\mixfixii[nobrackets]{\{}{#1}{\,\mid\,}{#2}{\}}} +\begin{definition}[id=functions.def] + A {\defi{function}} $\fun{f}AB$ is a left-total, right-unique relation in $\cart{A,B}$ +\end{definition} +\end{module} +\end{omgroup} +%%% Local Variables: +%%% mode: LaTeX +%%% TeX-master: "all" +%%% End: diff --git a/macros/latex/contrib/stex/example/background/post.tex b/macros/latex/contrib/stex/example/background/post.tex new file mode 100644 index 0000000000..6b47932f52 --- /dev/null +++ b/macros/latex/contrib/stex/example/background/post.tex @@ -0,0 +1 @@ +\end{document} diff --git a/macros/latex/contrib/stex/example/background/pre.tex b/macros/latex/contrib/stex/example/background/pre.tex new file mode 100644 index 0000000000..59f9473ea4 --- /dev/null +++ b/macros/latex/contrib/stex/example/background/pre.tex @@ -0,0 +1,8 @@ +\documentclass{omdoc} +\usepackage{stex,amssymb,lststex} +\usepackage{hyperref} +\def\omdoc{OMDoc} +\def\latexml{LaTeXML} +\defpath{backmods}{../background} +% \baseURI[\backmods{}]{http://linkeddata.tntbase.org/stex} +% \coolurion diff --git a/macros/latex/contrib/stex/example/background/reals.pdf b/macros/latex/contrib/stex/example/background/reals.pdf Binary files differnew file mode 100644 index 0000000000..4201a59ce1 --- /dev/null +++ b/macros/latex/contrib/stex/example/background/reals.pdf diff --git a/macros/latex/contrib/stex/example/background/reals.tex b/macros/latex/contrib/stex/example/background/reals.tex new file mode 100644 index 0000000000..9bcba08ab8 --- /dev/null +++ b/macros/latex/contrib/stex/example/background/reals.tex @@ -0,0 +1,20 @@ +\begin{omgroup}[id=sec.reals]{Real Numbers} +\begin{module}[id=reals] +\symdef{RealNumbers}{\mathbb{R}} +\symdef{absval}[1]{\mixfixi[p=2000]|{#1}|} +\symdef{rfrac}[2]{\frac{#1}{#2}} + +\begin{definition}[id=reals.def] + We denote the set of {\defii{real}{numbers}} we all know and love with + $\RealNumbers$. +\end{definition} + +\begin{definition}[id=absval.def] + The absolute value $\absval{r}$ of a real number $r$. +\end{definition} +\end{module} +\end{omgroup} +%%% Local Variables: +%%% mode: LaTeX +%%% TeX-master: "all" +%%% End: |