Compare two revisions of: Ansref

... ... @@ -1,8 +1,12 @@
1 1 In the context of generic problems or quickchecks you may want to add an input field inline to your question text.
2 2
3 3 Example:
4 -Given are $$a = 2, b = 3, c = 2, d = 1$$
5 -$$a + b = $$ <input field>, and $$c + d = $$ <input field>.
4 +Given are
5 +$$a = 2, b = 3, c = 2, d = 1$$
6 +
7 +$$a + b = $$ <input field>,
8 +
9 +and $$c + d = $$ <input field>.
6 10
7 11 For this purpose you can use the command `\ansref` in the question text. The placeholder will then be replaced by the answer defined in the answer environment. Make sure you define as many answers as the number of \ansref used.
8 12
9 13