Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hallgrim
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
Container Registry
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Maximilian Michal
hallgrim
Commits
41d8f208
Commit
41d8f208
authored
8 years ago
by
Jan Maximilian Michal
Browse files
Options
Downloads
Patches
Plain Diff
Different latex delimiter
parent
d209b4b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+2
-1
2 additions, 1 deletion
.gitignore
README.md
+1
-1
1 addition, 1 deletion
README.md
hallgrim/custom_markdown.py
+2
-1
2 additions, 1 deletion
hallgrim/custom_markdown.py
scripts/nur_sterne_sehen.py
+2
-1
2 additions, 1 deletion
scripts/nur_sterne_sehen.py
with
7 additions
and
4 deletions
.gitignore
+
2
−
1
View file @
41d8f208
...
...
@@ -5,4 +5,5 @@ __pycache__/
output/*
notes.html
.DS_Store
\ No newline at end of file
.DS_Store
*.sublime-workspace
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
41d8f208
...
...
@@ -41,5 +41,5 @@ data and assumes unknown properties)
### LaTeX Support
Hallgrim supports the native latex approach by ILIAS. To typeset a formula just
put it in brackets like this
`[[\\su
a
m_{i=1}^n i = \\frac{n(n+1)}{2}]]`
. Special
put it in brackets like this
`[[\\sum_{i=1}^n i = \\frac{n(n+1)}{2}]]`
. Special
caretakers (mostly
`\`) have to be escaped unless you use raw strings (`
r'a raw string'
`
).
This diff is collapsed.
Click to expand it.
hallgrim/custom_markdown.py
+
2
−
1
View file @
41d8f208
...
...
@@ -40,7 +40,8 @@ def markdown(value):
class
LaTeXRenderer
(
Renderer
):
def
latex
(
self
,
formula
):
return
'
<span class=
"
latex
"
>{}</span>
'
.
format
(
formula
)
return
r
'
\({}\)
'
.
format
(
formula
)
# alternative return '<span class="latex">{}</span>'.format(formula)
def
block_code
(
self
,
code
,
lang
):
if
not
lang
:
...
...
This diff is collapsed.
Click to expand it.
scripts/nur_sterne_sehen.py
+
2
−
1
View file @
41d8f208
...
...
@@ -30,7 +30,8 @@ choices = """
[ ] [[2^n]]
[ ] [[2n+1]]
"""
feedback
=
r
"""
Die erste Zeile ergibt genau die Ausgabe `1`. In jeder folgenden
feedback
=
r
"""
Die erste Zeile ergibt genau die Ausgabe `1`. In jeder folgenden
Zeile wird die Anzahl der Zahlen verdoppelt und um eine weitere Zahl ergänzt.
Die Anzahl der Zahlen [[a_n]] im Schritt [[n]] ist daher: [[a_n = 2a_{n-1} +
1]].
...
...
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