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










1















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









share|improve this question
























  • 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















1















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









share|improve this question
























  • 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













1












1








1








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









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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

















  • 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
















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










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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

How should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

152 Atala Notae | Nexus externi | Tabula navigationis"Discovery Circumstances: Numbered Minor Planets"2000152Small-Body Database

Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"