<commit_before>
## Space for *anwers* using "streifenbegin" and "streifenend" {punkte=5}

Instead of using the TeX notation for starting a question you can use
a markdown header now. It will be transformed into a exam question. Add
the points as attribute `punkte` to the header.

A level 1 header will be translated into a question with an extra
`\clearpage` before.

That is, the following markdown code
```markdown
## Space for *anwers* using "streifenbegin" and "streifenend" {punkte=5}
```
will be transformed by the `exams.lua` filter into
```latex
\myQuestion[5]{{Space for \emph{anwers} using \enquote{streifenbegin}
and \enquote{streifenend}}
```

**Warning**: Don't do any fancy in the header! Results would be unpredictable!
(Emphasis and question marks should be OK, though. Inline code with backticks
does NOT work!)

\bigskip


Here goes the question ...


Using `\streifenbegin` and `\streifenend` we can separate the question part
and the answer part. The environment produces a gray bar on the left side,
which length depends on the amount of text within this environment.

Also we can use Markdown in there ...

To produce a sample solution, use `\x{...}` or `[...]{.answer}` and provide
the solution as parameter. This will not be printed in the normal exam :)


\streifenbegin

*   Zeile 19: \x{12}
    \bigskip
*   Zeile 20: \x{A}
    \bigskip
*   Zeile 21: \x{42}
    \bigskip
*   Zeile 22: \x{X}

\x{je 0.5P (Summe 2P)}

[**je 0.5P** (*Summe 2P*)]{.answer}

\streifenend


\clearpage


<commit_msg>add another example how to use `solution` div instead of `\streifenbegin` and `\streifenend`<commit_after>
## Space for *anwers* using "streifenbegin" and "streifenend" {punkte=5}

Instead of using the TeX notation for starting a question you can use
a markdown header now. It will be transformed into a exam question. Add
the points as attribute `punkte` to the header.

A level 1 header will be translated into a question with an extra
`\clearpage` before.

That is, the following markdown code
```markdown
## Space for *anwers* using "streifenbegin" and "streifenend" {punkte=5}
```
will be transformed by the `exams.lua` filter into
```latex
\myQuestion[5]{{Space for \emph{anwers} using \enquote{streifenbegin}
and \enquote{streifenend}}
```

**Warning**: Don't do any fancy in the header! Results would be unpredictable!
(Emphasis and question marks should be OK, though. Inline code with backticks
does NOT work!)

\bigskip


Here goes the question ...


Using `\streifenbegin` and `\streifenend` we can separate the question part
and the answer part. The environment produces a gray bar on the left side,
which length depends on the amount of text within this environment.

Also we can use Markdown in there ...

To produce a sample solution, use `\x{...}` or `[...]{.answer}` and provide
the solution as parameter. This will not be printed in the normal exam :)


\streifenbegin

*   Zeile 19: \x{12}
    \bigskip
*   Zeile 20: \x{A}
    \bigskip
*   Zeile 21: \x{42}
    \bigskip
*   Zeile 22: \x{X}
    \bigskip

\x{je 0.5P (Summe 2P)}

[**je 0.5P** (*Summe 2P*)]{.answer}

\streifenend



\Fortsetzung
\clearpage



### Fenced div with class "solution" without attributes {.unnumbered}

The same as above can be done now using a fenced div of class `solution`:

```markdown
::: solution
*   Zeile 19: \x{12}
    \bigskip
*   Zeile 20: \x{A}
    \bigskip
*   Zeile 21: \x{42}
    \bigskip
*   Zeile 22: \x{X}
    \bigskip

[**je 0.5P** (*Summe 2P*)]{.answer}
:::
```

::: solution
*   Zeile 19: \x{12}
    \bigskip
*   Zeile 20: \x{A}
    \bigskip
*   Zeile 21: \x{42}
    \bigskip
*   Zeile 22: \x{X}
    \bigskip

[**je 0.5P** (*Summe 2P*)]{.answer}
:::

\clearpage



{'fraction_non_alphanumeric': 0.11885467314964884, 'fraction_numerical': 0.019989195029713667, 'mean_word_length': 3.605721393034826, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6149328', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1226, 'n_words': 507}