Package mcexam random question from file The Next CEO of Stack OverflowWrite answers in the same line using package mcexamMultiple test versions in the same output pdf using mcexam packageObtaining the total number of questions from mcexammcexam a custom type questionUsing conditionals inside mcexam
A small doubt about the dominated convergence theorem
Unclear about dynamic binding
Solving system of ODEs with extra parameter
If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?
Would a completely good Muggle be able to use a wand?
Is it ever safe to open a suspicious HTML file (e.g. email attachment)?
What connection does MS Office have to Netscape Navigator?
I want to delete every two lines after 3rd lines in file contain very large number of lines :
Flying from Cape Town to England and return to another province
Grabbing quick drinks
Is it my responsibility to learn a new technology in my own time my employer wants to implement?
Is micro rebar a better way to reinforce concrete than rebar?
Is there a difference between "Fahrstuhl" and "Aufzug"
Why does standard notation not preserve intervals (visually)
How to get from Geneva Airport to Metabief, Doubs, France by public transport?
Do I need to write [sic] when a number is less than 10 but isn't written out?
Can MTA send mail via a relay without being told so?
What steps are necessary to read a Modern SSD in Medieval Europe?
The exact meaning of 'Mom made me a sandwich'
Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?
Newlines in BSD sed vs gsed
Is it professional to write unrelated content in an almost-empty email?
Is it convenient to ask the journal's editor for two additional days to complete a review?
How to avoid supervisors with prejudiced views?
Package mcexam random question from file
The Next CEO of Stack OverflowWrite answers in the same line using package mcexamMultiple test versions in the same output pdf using mcexam packageObtaining the total number of questions from mcexammcexam a custom type questionUsing conditionals inside mcexam
It has a file of multiple choice questions with 50 questions that wanted to generate evaluations with different questions, for each evaluation limit the number by 10 questions, generating 5 files with different questions.
documentclass[a4paper]article
usepackage[output=exam
,numberofversions=4
,version=1
,seed=1
,randomizequestions=true
,randomizeanswers=true
,writeRfile=false
]mcexam
% Packages used for special things
usepackagetikz,framed
usepackagefancyhdr,lastpage,totcount,xpatch
usepackagecalc
% Set headers and footers
pagestylefancy
fancyhf
renewcommandheadrulewidth0pt
renewcommandfootrulewidth1pt
lfootmctheversion
rfootPage thepage of pagerefLastPage
% Ensure each question+answers is printed entirely on the same page.
renewenvironmentsetmcquestion
beginminipage[t]linewidth-labelwidth
endminipagepar
newtogglequestionscounted
globaltogglefalsequestionscounted
makeatletter
newcommandpatch@mcquestions%
iftogglequestionscounted
%
setcounternumquestionsvaluemc@counter%
globaltoggletruequestionscounted
%
newcounternumquestions
regtotcounternumquestions
xpatchcmdenv@mcquestions@process
mc@setQuestionAndAnswerNumbers
mc@setQuestionAndAnswerNumberspatch@mcquestions
makeatother
begindocument
begincenter
bfseriesLARGE Midterm Exam
endcenter
beginframed
centeringbfseriesLargeMakeUppercasemctheversion
endframed
mcifoutputconcept,exam
bigskip
noindent Name: dotfill\[.5baselineskip]
noindent Student Number: dotfill\[.5baselineskip]
noindent Program: dotfill
vspace2baselineskip
noindenttextbfInstructions:
beginitemize[nosep]
item This exam has totalnumquestions questions. %THIS THROWS AN UNDEFINED CONTROL SEQUENCE ERROR
enditemize
beginmcquestions
question What is the color of the sky?
beginmcanswerslist[fixlast]
answer[correct] blue
answer green
answer red
answer yellow
answer none of the above
endmcanswerslist
beginmcexplanation
If you look up to the sky and there are no clouds, you'll see it is blue.
endmcexplanation
beginmcnotes
This question had a large proportion of good answers last year.
endmcnotes
question Which figure is a square?
beginmcanswers
begintabular@cccc
answer1tikzdraw (-0.66,0)--(0.66,0)--(0,1)--cycle;&
answer2tikzdraw (0,0)--(2,0)--(2,1)--(0,1)--cycle;&
answer[correct]3tikzdraw (0,0)--(1,0)--(1,1)--(0,1)--cycle;&
answer4tikzdraw (0,0) circle[radius=0.5];\
answernum1&answernum2&answernum3&answernum4\
endtabular
endmcanswers
endmcquestions
enddocument
mcexam
add a comment |
It has a file of multiple choice questions with 50 questions that wanted to generate evaluations with different questions, for each evaluation limit the number by 10 questions, generating 5 files with different questions.
documentclass[a4paper]article
usepackage[output=exam
,numberofversions=4
,version=1
,seed=1
,randomizequestions=true
,randomizeanswers=true
,writeRfile=false
]mcexam
% Packages used for special things
usepackagetikz,framed
usepackagefancyhdr,lastpage,totcount,xpatch
usepackagecalc
% Set headers and footers
pagestylefancy
fancyhf
renewcommandheadrulewidth0pt
renewcommandfootrulewidth1pt
lfootmctheversion
rfootPage thepage of pagerefLastPage
% Ensure each question+answers is printed entirely on the same page.
renewenvironmentsetmcquestion
beginminipage[t]linewidth-labelwidth
endminipagepar
newtogglequestionscounted
globaltogglefalsequestionscounted
makeatletter
newcommandpatch@mcquestions%
iftogglequestionscounted
%
setcounternumquestionsvaluemc@counter%
globaltoggletruequestionscounted
%
newcounternumquestions
regtotcounternumquestions
xpatchcmdenv@mcquestions@process
mc@setQuestionAndAnswerNumbers
mc@setQuestionAndAnswerNumberspatch@mcquestions
makeatother
begindocument
begincenter
bfseriesLARGE Midterm Exam
endcenter
beginframed
centeringbfseriesLargeMakeUppercasemctheversion
endframed
mcifoutputconcept,exam
bigskip
noindent Name: dotfill\[.5baselineskip]
noindent Student Number: dotfill\[.5baselineskip]
noindent Program: dotfill
vspace2baselineskip
noindenttextbfInstructions:
beginitemize[nosep]
item This exam has totalnumquestions questions. %THIS THROWS AN UNDEFINED CONTROL SEQUENCE ERROR
enditemize
beginmcquestions
question What is the color of the sky?
beginmcanswerslist[fixlast]
answer[correct] blue
answer green
answer red
answer yellow
answer none of the above
endmcanswerslist
beginmcexplanation
If you look up to the sky and there are no clouds, you'll see it is blue.
endmcexplanation
beginmcnotes
This question had a large proportion of good answers last year.
endmcnotes
question Which figure is a square?
beginmcanswers
begintabular@cccc
answer1tikzdraw (-0.66,0)--(0.66,0)--(0,1)--cycle;&
answer2tikzdraw (0,0)--(2,0)--(2,1)--(0,1)--cycle;&
answer[correct]3tikzdraw (0,0)--(1,0)--(1,1)--(0,1)--cycle;&
answer4tikzdraw (0,0) circle[radius=0.5];\
answernum1&answernum2&answernum3&answernum4\
endtabular
endmcanswers
endmcquestions
enddocument
mcexam
It looks like you've got two separate accounts, which means you cannot edit your original post or leave comments. The Stack Exchange staff can merge them together for you.
– Kurt
3 hours ago
@Kurt i am guess merge all accounts now. Thanks for observation
– Fabio Lima
2 hours ago
By my fileforeach i in 1,...,10 newpage setkeysmcexam.styversion=i,seed=123 beginmcquestions input../path1/file1 input../path2/file2 endmcquestions
Have error compilation used this mode.
– Fabio Lima
2 hours ago
Your given code in your question compiles without problems with current MiKTeX 2.9 ... Can you please add the complete error message you get and make sure the given code in your questions results in your error please.
– Kurt
2 hours ago
add a comment |
It has a file of multiple choice questions with 50 questions that wanted to generate evaluations with different questions, for each evaluation limit the number by 10 questions, generating 5 files with different questions.
documentclass[a4paper]article
usepackage[output=exam
,numberofversions=4
,version=1
,seed=1
,randomizequestions=true
,randomizeanswers=true
,writeRfile=false
]mcexam
% Packages used for special things
usepackagetikz,framed
usepackagefancyhdr,lastpage,totcount,xpatch
usepackagecalc
% Set headers and footers
pagestylefancy
fancyhf
renewcommandheadrulewidth0pt
renewcommandfootrulewidth1pt
lfootmctheversion
rfootPage thepage of pagerefLastPage
% Ensure each question+answers is printed entirely on the same page.
renewenvironmentsetmcquestion
beginminipage[t]linewidth-labelwidth
endminipagepar
newtogglequestionscounted
globaltogglefalsequestionscounted
makeatletter
newcommandpatch@mcquestions%
iftogglequestionscounted
%
setcounternumquestionsvaluemc@counter%
globaltoggletruequestionscounted
%
newcounternumquestions
regtotcounternumquestions
xpatchcmdenv@mcquestions@process
mc@setQuestionAndAnswerNumbers
mc@setQuestionAndAnswerNumberspatch@mcquestions
makeatother
begindocument
begincenter
bfseriesLARGE Midterm Exam
endcenter
beginframed
centeringbfseriesLargeMakeUppercasemctheversion
endframed
mcifoutputconcept,exam
bigskip
noindent Name: dotfill\[.5baselineskip]
noindent Student Number: dotfill\[.5baselineskip]
noindent Program: dotfill
vspace2baselineskip
noindenttextbfInstructions:
beginitemize[nosep]
item This exam has totalnumquestions questions. %THIS THROWS AN UNDEFINED CONTROL SEQUENCE ERROR
enditemize
beginmcquestions
question What is the color of the sky?
beginmcanswerslist[fixlast]
answer[correct] blue
answer green
answer red
answer yellow
answer none of the above
endmcanswerslist
beginmcexplanation
If you look up to the sky and there are no clouds, you'll see it is blue.
endmcexplanation
beginmcnotes
This question had a large proportion of good answers last year.
endmcnotes
question Which figure is a square?
beginmcanswers
begintabular@cccc
answer1tikzdraw (-0.66,0)--(0.66,0)--(0,1)--cycle;&
answer2tikzdraw (0,0)--(2,0)--(2,1)--(0,1)--cycle;&
answer[correct]3tikzdraw (0,0)--(1,0)--(1,1)--(0,1)--cycle;&
answer4tikzdraw (0,0) circle[radius=0.5];\
answernum1&answernum2&answernum3&answernum4\
endtabular
endmcanswers
endmcquestions
enddocument
mcexam
It has a file of multiple choice questions with 50 questions that wanted to generate evaluations with different questions, for each evaluation limit the number by 10 questions, generating 5 files with different questions.
documentclass[a4paper]article
usepackage[output=exam
,numberofversions=4
,version=1
,seed=1
,randomizequestions=true
,randomizeanswers=true
,writeRfile=false
]mcexam
% Packages used for special things
usepackagetikz,framed
usepackagefancyhdr,lastpage,totcount,xpatch
usepackagecalc
% Set headers and footers
pagestylefancy
fancyhf
renewcommandheadrulewidth0pt
renewcommandfootrulewidth1pt
lfootmctheversion
rfootPage thepage of pagerefLastPage
% Ensure each question+answers is printed entirely on the same page.
renewenvironmentsetmcquestion
beginminipage[t]linewidth-labelwidth
endminipagepar
newtogglequestionscounted
globaltogglefalsequestionscounted
makeatletter
newcommandpatch@mcquestions%
iftogglequestionscounted
%
setcounternumquestionsvaluemc@counter%
globaltoggletruequestionscounted
%
newcounternumquestions
regtotcounternumquestions
xpatchcmdenv@mcquestions@process
mc@setQuestionAndAnswerNumbers
mc@setQuestionAndAnswerNumberspatch@mcquestions
makeatother
begindocument
begincenter
bfseriesLARGE Midterm Exam
endcenter
beginframed
centeringbfseriesLargeMakeUppercasemctheversion
endframed
mcifoutputconcept,exam
bigskip
noindent Name: dotfill\[.5baselineskip]
noindent Student Number: dotfill\[.5baselineskip]
noindent Program: dotfill
vspace2baselineskip
noindenttextbfInstructions:
beginitemize[nosep]
item This exam has totalnumquestions questions. %THIS THROWS AN UNDEFINED CONTROL SEQUENCE ERROR
enditemize
beginmcquestions
question What is the color of the sky?
beginmcanswerslist[fixlast]
answer[correct] blue
answer green
answer red
answer yellow
answer none of the above
endmcanswerslist
beginmcexplanation
If you look up to the sky and there are no clouds, you'll see it is blue.
endmcexplanation
beginmcnotes
This question had a large proportion of good answers last year.
endmcnotes
question Which figure is a square?
beginmcanswers
begintabular@cccc
answer1tikzdraw (-0.66,0)--(0.66,0)--(0,1)--cycle;&
answer2tikzdraw (0,0)--(2,0)--(2,1)--(0,1)--cycle;&
answer[correct]3tikzdraw (0,0)--(1,0)--(1,1)--(0,1)--cycle;&
answer4tikzdraw (0,0) circle[radius=0.5];\
answernum1&answernum2&answernum3&answernum4\
endtabular
endmcanswers
endmcquestions
enddocument
mcexam
mcexam
edited 2 mins ago
Fabio Lima
133
133
asked 9 hours ago
Fabio LimaFabio Lima
485
485
It looks like you've got two separate accounts, which means you cannot edit your original post or leave comments. The Stack Exchange staff can merge them together for you.
– Kurt
3 hours ago
@Kurt i am guess merge all accounts now. Thanks for observation
– Fabio Lima
2 hours ago
By my fileforeach i in 1,...,10 newpage setkeysmcexam.styversion=i,seed=123 beginmcquestions input../path1/file1 input../path2/file2 endmcquestions
Have error compilation used this mode.
– Fabio Lima
2 hours ago
Your given code in your question compiles without problems with current MiKTeX 2.9 ... Can you please add the complete error message you get and make sure the given code in your questions results in your error please.
– Kurt
2 hours ago
add a comment |
It looks like you've got two separate accounts, which means you cannot edit your original post or leave comments. The Stack Exchange staff can merge them together for you.
– Kurt
3 hours ago
@Kurt i am guess merge all accounts now. Thanks for observation
– Fabio Lima
2 hours ago
By my fileforeach i in 1,...,10 newpage setkeysmcexam.styversion=i,seed=123 beginmcquestions input../path1/file1 input../path2/file2 endmcquestions
Have error compilation used this mode.
– Fabio Lima
2 hours ago
Your given code in your question compiles without problems with current MiKTeX 2.9 ... Can you please add the complete error message you get and make sure the given code in your questions results in your error please.
– Kurt
2 hours ago
It looks like you've got two separate accounts, which means you cannot edit your original post or leave comments. The Stack Exchange staff can merge them together for you.
– Kurt
3 hours ago
It looks like you've got two separate accounts, which means you cannot edit your original post or leave comments. The Stack Exchange staff can merge them together for you.
– Kurt
3 hours ago
@Kurt i am guess merge all accounts now. Thanks for observation
– Fabio Lima
2 hours ago
@Kurt i am guess merge all accounts now. Thanks for observation
– Fabio Lima
2 hours ago
By my file
foreach i in 1,...,10 newpage setkeysmcexam.styversion=i,seed=123 beginmcquestions input../path1/file1 input../path2/file2 endmcquestions
Have error compilation used this mode.– Fabio Lima
2 hours ago
By my file
foreach i in 1,...,10 newpage setkeysmcexam.styversion=i,seed=123 beginmcquestions input../path1/file1 input../path2/file2 endmcquestions
Have error compilation used this mode.– Fabio Lima
2 hours ago
Your given code in your question compiles without problems with current MiKTeX 2.9 ... Can you please add the complete error message you get and make sure the given code in your questions results in your error please.
– Kurt
2 hours ago
Your given code in your question compiles without problems with current MiKTeX 2.9 ... Can you please add the complete error message you get and make sure the given code in your questions results in your error please.
– Kurt
2 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482307%2fpackage-mcexam-random-question-from-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482307%2fpackage-mcexam-random-question-from-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It looks like you've got two separate accounts, which means you cannot edit your original post or leave comments. The Stack Exchange staff can merge them together for you.
– Kurt
3 hours ago
@Kurt i am guess merge all accounts now. Thanks for observation
– Fabio Lima
2 hours ago
By my file
foreach i in 1,...,10 newpage setkeysmcexam.styversion=i,seed=123 beginmcquestions input../path1/file1 input../path2/file2 endmcquestions
Have error compilation used this mode.– Fabio Lima
2 hours ago
Your given code in your question compiles without problems with current MiKTeX 2.9 ... Can you please add the complete error message you get and make sure the given code in your questions results in your error please.
– Kurt
2 hours ago