Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
naomod
amc-latex-template
Commits
06686225
Commit
06686225
authored
Jan 27, 2022
by
Erwan BOUSSE
Browse files
Fix for AMC 1.5 formula default vars
parent
b35e2549
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/macros.tex
View file @
06686225
...
...
@@ -13,7 +13,17 @@
\newcommand
{
\myscoringopen
}
[1]
{
%
\setlength
{
\parskip
}{
.8
\baselineskip
}
%
\textit
{
(#1
\ifdim
#1pt < 1.01pt point
\else
points
\fi
)
}
\scoring
{
MAX=#1,formula= (P1+P2+P3+P4+P5+P6+P7) > #1 ? #1 : (P1+P2+P3+P4+P5+P6+P7)
}
\scoring
{
MAX=#1,
default.P1=0,
default.P2=0,
default.P3=0,
default.P4=0,
default.P5=0,
default.P6=0,
default.P7=0,
formula= (P1+P2+P3+P4+P5+P6+P7) > #1 ? #1 : (P1+P2+P3+P4+P5+P6+P7)
}
}
...
...
@@ -27,7 +37,7 @@
\correctchoice
{
\scriptsize
$
2
$}
\scoring
{
set.P5=2
}
\correctchoice
{
\scriptsize
$
3
$}
\scoring
{
set.P6=3
}
\correctchoice
{
\scriptsize
$
4
$}
\scoring
{
set.P7=4
}
}}
}}
\newcommand
{
\myanswerbox
}
[1]
{
\internalmyanswerbox
{
#1
}{
true
}}
\newcommand
{
\myanswerboxnodots
}
[1]
{
\internalmyanswerbox
{
#1
}{
false
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment