1 | # AMC-TXT source
|
2 | # SIUnits : sudo apt -y install texlive-science
|
3 | # tikz-cd : sudo apt-get install texlive-pictures
|
4 | # pstricks : sudo apt-get install -y texlive-pstricks
|
5 | # PythonTex : sudo apt install python3-pygments python3-sympy python3-scipy python3-matplotlib
|
6 | # compiler puis dans un terminal :
|
7 | python3 ~/Téléchargements/pythontex/pythontex3.py amc-compiled.tex puis compile again again
|
8 |
|
9 | PaperSize: A4
|
10 | Lang: FR
|
11 | LaTeX-Preambule:
|
12 | \geometry{hmargin=1.5cm,headheight=3cm,headsep=0.3cm,footskip=1cm,top=2.5cm,bottom=2cm,heightrounded}
|
13 | # \usepackage{siunitx}
|
14 | \usepackage{amsmath}
|
15 | \usepackage{booktabs}
|
16 | \usepackage{wrapfig}
|
17 | \usepackage{multido}
|
18 | \usepackage{../pythontex}
|
19 | \usepackage{pst-eucl}
|
20 |
|
21 | # \DeclareSIUnit
|
22 | # \flop{Flops}
|
23 | # \DeclareSIUnit\octet{o}
|
24 |
|
25 | Title: C4.1.Arithmétique
|
26 | Columns: 1
|
27 | Code: 4
|
28 | NameFieldLines: 1
|
29 | L-Student: N° étudiant
|
30 | L-Name: Nom, Prénom et Classe
|
31 | Presentation:
|
32 | [[\vspace{-0.75cm}]]
|
33 | Il faut noircir avec un stylo bleu ou noir. Si tu te trompes, efface toute la case avec du blanco mais ne la redessine pas. Les questions marquées d'un "♣" ont plusieures bonnes réponses !
|
34 | ShuffleQuestions:0
|
35 | CompleteMulti: 0
|
36 | QuestionBlocks:1
|
37 | LaTeX-BeginDocument:
|
38 | #\sisetup{locale = FR,mode = math,group-separator = \text{\ }, group-minimum-digits = 3}
|
39 | \def\multiSymbole{♣}
|
40 | \def\AMCbeginQuestion#1#2{
|
41 | \par
|
42 | \noindent{
|
43 | \bf Q#1
|
44 | }
|
45 | }
|
46 | \newcommand{\Pointilles}[2][3]{
|
47 | \dotfill
|
48 | \noindent
|
49 | \rule{0pt}{1.5\baselineskip}
|
50 | \multido{}{#2}{
|
51 | \noindent
|
52 | \makebox[\linewidth]{
|
53 | \rule{0pt}{#1\baselineskip}
|
54 | \dotfill
|
55 | }
|
56 | \endgraf
|
57 | }
|
58 | }
|
59 |
|
60 | \begin{pycode}
|
61 | import numpy as np
|
62 | from math import *
|
63 | from random import *
|
64 |
|
65 | np.random.seed(12346)
|
66 |
|
67 | def alea(x,y) :
|
68 | return randrange(x,y)
|
69 |
|
70 | def aleal(letters) :
|
71 | return choice(letters)
|
72 |
|
73 | def mod(a,b) :
|
74 | return a%b
|
75 |
|
76 | \end{pycode}
|
77 | #######################################################################################################
|
78 |
|
79 |
|
80 | *([group=AF1,shuffle=true,numquestions=3,columns=2] Je connais les tables de multiplications.
|
81 | ################################
|
82 | IncludeFile: ../Bank/AF1.txt
|
83 | *)
|
84 |
|
85 | *([group=NC1,shuffle=true,numquestions=3,columns=2] Je connais les priorités des opérations
|
86 | ################################
|
87 | IncludeFile: ../Bank/NC1.txt
|
88 | *)
|
89 |
|
90 | *([group=CL1,shuffle=true,numquestions=3,columns=2] Je connais le calcul littéral
|
91 | ################################
|
92 | IncludeFile: ../Bank/CL1.txt
|
93 | *)
|
94 |
|
95 |
|
96 | *([group=F1,shuffle=true,numquestions=2,columns=2] Je connais les programmes de calculs
|
97 | ################################
|
98 | IncludeFile: ../Bank/F1.txt
|
99 | *)
|
100 |
|
101 | *([group=GM1,shuffle=true,numquestions=2,columns=2] Je sais convertir
|
102 | #################################
|
103 | IncludeFile: ../Bank/GM1.txt
|
104 | *)
|
105 |
|
106 | *([group=P1,shuffle=true,numquestions=1,columns=2] Je sais convertir
|
107 | #################################
|
108 | IncludeFile: ../Bank/P1.txt
|
109 | *)
|
110 |
|
111 |
|