Skip to content
Snippets Groups Projects
Commit 41d8f208 authored by Jan Maximilian Michal's avatar Jan Maximilian Michal
Browse files

Different latex delimiter

parent d209b4b5
No related branches found
No related tags found
No related merge requests found
......@@ -5,4 +5,5 @@ __pycache__/
output/*
notes.html
.DS_Store
\ No newline at end of file
.DS_Store
*.sublime-workspace
......@@ -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 `[[\\suam_{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'`).
......@@ -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:
......
......@@ -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]].
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment