From 1fbd08f65793f183d7f04742855d554e6995f329 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Sun, 18 Sep 2022 08:24:53 +0200 Subject: [PATCH] Feat: add question and multquestion for AMC --- nvim/.config/nvim/vsnips/tex.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/nvim/.config/nvim/vsnips/tex.json b/nvim/.config/nvim/vsnips/tex.json index 8c54491..1ffc385 100644 --- a/nvim/.config/nvim/vsnips/tex.json +++ b/nvim/.config/nvim/vsnips/tex.json @@ -102,5 +102,36 @@ "\\\\end{exercise}" ], "description": "exercise xsim" + }, + + "AMC_multquestion": { + "prefix": "multquestion", + "body": [ + "\\\\element{${1:group}}{", + "\\\\begin{questionmult}{${2:name}}\\\\bareme{b=0.5,m=0.5,p=0}", + "\t$3", + "\t\\\\begin{reponseshoriz}", + "\t\t\\\\bonne{$4}", + "\t\t\\\\mauvaise{$5}", + "\t\\\\end{reponseshoriz}", + "\\\\end{questionmult}", + "}" + ], + "description": "Question simple pour AMC" + }, + "AMC_question": { + "prefix": "question", + "body": [ + "\\\\element{${1:group}}{", + "\\\\begin{question}{${2:name}}", + "\t$3", + "\t\\\\begin{reponseshoriz}", + "\t\t\\\\bonne{$4}", + "\t\t\\\\mauvaise{$5}", + "\t\\\\end{reponseshoriz}", + "\\\\end{question}", + "}" + ], + "description": "Question multiple pour AMC" } }