Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
manuals
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMGloM
manuals
Commits
fb2cb611
Commit
fb2cb611
authored
9 years ago
by
Michael Kohlhase
Browse files
Options
Downloads
Patches
Plain Diff
draining
parent
0c550300
Branches
master
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
primer/primer.pdf
+0
-0
0 additions, 0 deletions
primer/primer.pdf
primer/primer.tex
+19
-1
19 additions, 1 deletion
primer/primer.tex
with
19 additions
and
1 deletion
primer/primer.pdf
+
0
−
0
View file @
fb2cb611
No preview for this file type
This diff is collapsed.
Click to expand it.
primer/primer.tex
+
19
−
1
View file @
fb2cb611
...
...
@@ -69,6 +69,8 @@ elsewhere~\cite{Kohlhase:tsmgs13,Kohlhase:cmsmglom14,KohJuc:edsmglom14,Kohlhase:
(consult them for details and further discussion). In this primer, we want to give a
hands-on introduction for the
\smglom
author and curator.
\section
{
\smglom
Concepts
}
\label
{
sec:terminology
}
Before we can understand the workflow details and how-tos, we first need to get an
...
...
@@ -329,7 +331,9 @@ notation in line 2.
\begin{lstlisting}
[label=lst:binom,caption=Alternative Notation Definitions]
\symdef
[name=binomial-coefficient]
{
binom
}
[2]
{
\left
(#1
\atop
#2
\right
)
}
\symtest
{
binomcoeff
}{
\binomcoeff
{
n
}
k
}
\symvariant
{
binom
}
[2]
{
c
}{
\mathcal
{
C
}^{
#1
}_{
#2
}}
\symtest
[variant=c]
{
binomcoeff
}{
\binomcoeff
[c]
{
n
}
k
}
\end{lstlisting}
The call pattern
...
...
@@ -344,9 +348,23 @@ Listing~\ref{lst:binom} |\binom{n}k| expands to $\left(n\atop k\right)$ and
Finally, we can use |
\symtest
| to test the newly defined macros:
|
\symtest
[|\meta{keys}|]
{
|
\meta
{
cs
}
|
}{
|
\meta
{
test
}
|
}
| will generate a phrase describing
the test
\ednote
{
MK: complete this
}
.
the test. For instance, the |
\symtest
| macros in the listing above will generate the test
output:
\begin{quote}
Symbol |binomcoeff| with semantic macro |
\binomcoeff
|: used e.g. in
$
\left
(
n
\atop
k
\right
)
$
Symbol |binomcoeff| (variant |c|) with semantic macro |
\binomcoeff
[c]
|: used e.g. in
$
\mathcal
{
C
}^
n
_
k
$
.
\end{quote}
\subsection
{
Specifying Presentation Declaratively
}
The notations in the semantics macros are somewhat unrealistic, since they use
{
\TeX
}
primitives directly to express the layout of the basic mathematical operators. In
\smglom
we usually use the more sophisticated facilities of the |presentation| package from
\sTeX
instead. In a nutshell -- see~
\cite
{
Kohlhase:ipsmsl:svn
}
for details -- provides
primitites for mixfix (infix, prefix, postfix,
\ldots
) notations with precedences.
\ednote
{
MK: need to talk about the presentation package.
}
\section
{
Authoring and Managing
\smglom
content in
\mathhub
}
\label
{
sec:mathhub
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment